Repository navigation
Edit lists as text in a pane and browse the word lists - #111
Conversation
There was a problem hiding this comment.
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.
|
Queued for approval, waiting for the checks:
WoggleSL Review · requested by a maintainer from the review board |
There was a problem hiding this comment.
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
|
Squash-merged into WoggleSL Review · requested by a maintainer from the review board |
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.
Target::List(kind)next toTarget::Configinsrc/buffer/config_editor.rs, carried asInternal::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 withtoml_edit, so comments and other keys stay.word*/*wordinfo,re:regex,!2severity, duplicates amber, bad regex red. The footer says37 entries, 2 duplicates, 1 invalid regex (line 41); Save is blocked while a regex does not compile, duplicates only warn.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.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: cleancargo 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: passflag-viewer,flag-viewer:listandlist-editorare added for the preview screenshots job.Wiki
Wiki: not needed - screenshots are retaken automatically after the redesign
Checklist
main(includes the pending format commit from Format the settings modules and allow Scandinavian words #107)PRIVACY.mdstill matches what the code sends and storesCTCP WOGGLEhandling are untouched