Skip to content

Settings regrouped into seven tabs with search and a theme picker - #103

Merged
wogglesl-review[bot] merged 4 commits into
mainfrom
pr2-settings
Dec 3, 2026
Merged

wogglesl-review[bot] merged 4 commits into
mainfrom
pr2-settings

Conversation

@R3disme

@R3disme R3disme commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Builds on #100 (merge that first).

What and why

The settings window is regrouped by task into seven tabs: Utseende, Moderasjon, Flagging, Varsler, Autosvar, Tilkobling and Taster. Checkboxes are replaced by the new switch rows, each with a one-line hint, a "standard: på/av" marker and a badge where it matters ("Påvirker alle ban" for ChanServ, "Trenger ny tilkobling" for the Woggle marker and the connection tab). Language, whitelist/blacklist and word-list language use segmented controls; the cooldown is a number field with a unit and -/+ steps.

  • Search box at the top: filters rows from every tab by label and hint.
  • Unsaved changes: the footer counts them ("3 endringer ikke lagret"), tabs with edits get a dot, and Avbryt, Esc and a click outside ask "Forkaste endringene?" only when something changed.
  • Modal height follows the window (up to 80%) instead of a fixed 420 px.
  • Utseende has a theme picker: a preview card per theme (woggle-night, scoutlink-dark, scoutlink-light, ferra, then the themes in the themes folder), separate choice for dark and light mode, click applies live, closing without saving restores the saved theme, and a button opens the theme folder.
  • Varsler is a four-step checklist (install the app, pick a secret channel name with a "Lag tilfeldig" button, send a test, choose what to be notified about). Fields are hidden, not disabled, while it is off; server and token sit behind a disclosure.
  • Autosvar hides its options while off and shows a preview of the reply for "Nora".
  • Taster keeps its current content (PR 3 rebuilds it); lists stay where they are (PR 5).
  • The settings code is split into src/modal/scoutlink/{mod,appearance,moderation,flags,ntfy,autoreply,connection,keys,rows,themes}.rs. Config keys are unchanged, so old configs load as before.
  • PR 1 left the field, key_chip, segmented and switch widgets without pub mod lines in src/widget.rs; they are declared again here. tools/check_translations.py now also reads arms that rustfmt wraps in braces.

How it was tested

cargo clippy --workspace --all-targets -- -D warnings, cargo test --workspace (all pass), python3 tools/check_translations.py (347 keys, ok), python3 tools/check_fmt.py --fix. No GUI was started; the UI is not exercised beyond compiling.

Screenshots: rendered by the screenshot job

Wiki

Wiki: not needed - screenshots are retaken automatically after the redesign

Checklist

  • One change only, branched from pr1-foundations
  • Builds locally (python3 tools/build.py) and the CI builds pass
  • Tested on the local test server only
  • New interface text exists in no, da, sv and en
  • PRIVACY.md still matches what the code sends and stores
  • Bans, kicks, unbans and CTCP WOGGLE handling still follow the review rules in CONTRIBUTING.md
  • New flag entries have a meaning, the right severity and no false positives on ordinary words
  • Generated files were regenerated, not edited by hand
  • No real ScoutLink data (chat logs, nicks, hostnames, screenshots of real channels)

Part of #11

…d key registry

Adds the woggle-night (new default), scoutlink-dark and scoutlink-light
built-in themes, small shared widgets (switch, field, segmented, key chip,
badge), neutral tinted SVG icons replacing the hard-coded yellow and the
remaining symbol characters, tooltips with a key hint helper, a Woglog
count badge, and one registry of key combinations with a startup warning
for duplicates.
@R3disme
R3disme requested review from a team as code owners December 3, 2026 13:46
@R3disme R3disme added the In-Review Finished and waiting for a maintainer's review label Dec 3, 2026
Copilot AI balanced review requested due to automatic review settings December 3, 2026 13:46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

# Conflicts:
#	src/modal/scoutlink.rs
#	src/widget/switch.rs

@wogglesl-review wogglesl-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved by a maintainer on the review board.

Checks

  • ✅ Build linux-x86_64
  • ✅ Build windows-x86_64
  • ✅ retake screenshots (not required)
  • ✅ changes (not required)
  • ✅ codeql (actions) (not required)
  • ✅ wiki (not required)
  • ✅ changes (not required)
  • ✅ codeql (rust) (not required)
  • ❌ preview screenshots (not required)
  • ✅ screenshots out of date (not required)
  • ✅ Build macos-universal (not required)
  • ✅ secrets (not required)
  • ❌ typos (not required)
  • ✅ Build flatpak-x86_64 (not required)
  • ❌ fmt (not required)
  • ✅ Release (not required)
  • ✅ clippy (not required)
  • ✅ test (not required)
  • ✅ cargo-deny (not required)
  • ✅ unsafe (not required)
  • ✅ dependency-review (not required)
  • ✅ workflows (not required)
  • ✅ translations (not required)
  • ✅ flag-lists (not required)
  • ✅ CodeQL (not required)

Change: 21 files, +3126 / -1419, 4 commit(s) by @R3disme
Merges into: main without conflicts

WoggleSL Review · requested by a maintainer from the review board

@wogglesl-review
wogglesl-review Bot merged commit 2405aad into main Dec 3, 2026
22 of 25 checks passed
@wogglesl-review

Copy link
Copy Markdown

Squash-merged into main as 2405aad.

WoggleSL Review · requested by a maintainer from the review board

@wogglesl-review
wogglesl-review Bot deleted the pr2-settings branch December 3, 2026 14:05
@wogglesl-review wogglesl-review Bot removed the In-Review Finished and waiting for a maintainer's review label Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants