Skip to content

Edit lists as text in a pane and browse the word lists - #111

Merged
wogglesl-review[bot] merged 3 commits into
mainfrom
pr5-lists
Dec 3, 2026
Merged

wogglesl-review[bot] merged 3 commits into
mainfrom
pr5-lists

Conversation

@R3disme

@R3disme R3disme commented Dec 3, 2026

Copy link
Copy Markdown
Member

What and why

Lists were edited as rows of tiny inputs, six different ways. They are plain text already, so they now open in the same pane as the config editor, and there is a read-only window for browsing the word lists. Part of #11.

  • List editor pane. Target::List(kind) next to Target::Config in src/buffer/config_editor.rs, carried as Internal::ListEditor(kind). Kinds: flag word lists (flags/<category>-<language>.txt), the local allow list, auto reply exempt nicks and lines, ntfy keywords, alternative nicks, auto-join channels. File-backed lists are written as they are; config.toml lists are one entry per line and written back with toml_edit, so comments and other keys stay.
  • Highlighting and checks. Comments and meanings grey, word* / *word info, re: regex, !2 severity, duplicates amber, bad regex red. The footer says 37 entries, 2 duplicates, 1 invalid regex (line 41); Save is blocked while a regex does not compile, duplicates only warn.
  • Find and reset. A find box jumps to the next matching line. "Reset to default" loads the built-in text (still needs Save).
  • Word lists window (src/modal/flag_viewer.rs, opened from the Flagging tab and the menu): categories x languages grid with counts and a dot for custom lists, click a number for a searchable table (word, meaning in your language, severity as glyph plus number), severity and language filters, a "Test a message" box that lists which entries hit and in which list, and a prominent "Edit in editor" button with a "Recommended" tag on every list.
  • Settings. The per-row editors for flag words, auto reply exempt/lines, ntfy keywords, alternative nicks and auto-join channels are replaced by a count and the "Edit in editor" button. If settings have unsaved changes they are saved first, then the pane opens.

Config files keep loading as before (no key changed). Every new string has NO/DA/SV/EN rows.

Not done: the ntfy channel filters (whitelist/blacklist with a mode) stay as they are, because they are not a plain list of strings.

How it was tested

  • cargo clippy --workspace --all-targets -- -D warnings: clean
  • cargo test --workspace: pass (new tests: config.toml list round trip keeps comments and muted channels, table creation, duplicate and bad-regex counting, viewer filtering)
  • python3 tools/check_translations.py, python3 tools/check_fmt.py --fix: pass
  • No GUI run on this machine. Scenes flag-viewer, flag-viewer:list and list-editor are added for the preview screenshots job.

Wiki

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

Checklist

  • One change only, branched from the latest main (includes the pending format commit from Format the settings modules and allow Scandinavian words #107)
  • Builds locally 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 are untouched
  • No real ScoutLink data

@R3disme
R3disme requested review from a team as code owners December 3, 2026 14:33
Copilot AI balanced review requested due to automatic review settings December 3, 2026 14:33
@R3disme R3disme added the In-Review Finished and waiting for a maintainer's review label Dec 3, 2026

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.

@wogglesl-review

Copy link
Copy Markdown

Queued for approval, waiting for the checks:

  • ⏳ Build linux-x86_64
  • ⏳ Build windows-x86_64
  • ⏳ codeql (actions) (not required)
  • ✅ retake screenshots (not required)
  • ✅ changes (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)
  • ⏳ 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)

WoggleSL Review · requested by a maintainer from the review board

@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: 24 files, +2070 / -371, 3 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 33c1433 into main Dec 3, 2026
23 of 25 checks passed
@wogglesl-review

Copy link
Copy Markdown

Squash-merged into main as 33c1433.

WoggleSL Review · requested by a maintainer from the review board

@wogglesl-review
wogglesl-review Bot deleted the pr5-lists branch December 3, 2026 14:44
@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