Skip to content

Config editor: restart list line numbers on new settings - #116

Merged
wogglesl-review[bot] merged 2 commits into
mainfrom
config-editor-line-reset
Dec 4, 2026
Merged

wogglesl-review[bot] merged 2 commits into
mainfrom
config-editor-line-reset

Conversation

@R3disme

@R3disme R3disme commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

What and why

Follow-up to #111/#113, left over in the list-editor branch. When a list is edited in the config editor pane, the editor sends new settings (duplicate and invalid line numbers) and highlights again from the first line. ConfigParser::update kept its own line counter, so duplicate/invalid highlights after an edit landed on the wrong lines. The counter now restarts at 0 on update, the same as iced's own highlighter.

Also:

  • Unit tests for the list highlighter (comments, meanings, severity, affixes, duplicates, plain lists), plus one for the reset that fails without the fix.
  • A config-editor screenshot scene (config-editor.png, mapped to the Config-Editor wiki page as well) so the pane has a picture on the wiki.

How it was tested

cargo test --bin woggle config_editor: 3 passed. With self.line = 0 removed, new_settings_restart_line_numbers fails. tools/check_fmt.py is clean, and clippy reports nothing in the changed files. No IRC involved.

Wiki

Wiki: https://github.com/WoggleSL/woggle/wiki/Config-Editor

The screenshot workflow pushes config-editor.png after merge, and then the picture gets added to that page. No behaviour change that users would read about.

Checklist

  • One change only, branched from the latest main
  • Builds locally (python3 tools/build.py) and the CI builds pass
  • Tested on the local test server only (unit tests, no server needed)
  • New interface text exists in no, da, sv and en (no new text)
  • 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)

@R3disme
R3disme requested review from a team as code owners December 4, 2026 11:12
Copilot AI balanced review requested due to automatic review settings December 4, 2026 11:12

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 wogglesl-review Bot added the In-Review Finished and waiting for a maintainer's review label Dec 4, 2026
@R3disme R3disme mentioned this pull request Dec 4, 2026
@R3disme

R3disme commented Dec 4, 2026

Copy link
Copy Markdown
Member Author

@WoggleSL/review run

@wogglesl-review

Copy link
Copy Markdown

Queued for approval, waiting for the checks:

  • ⏳ Build windows-x86_64
  • ⏳ Build linux-x86_64
  • ⏳ changes (not required)
  • ⏳ codeql (actions) (not required)
  • ⏳ wiki (not required)
  • ⏳ changes (not required)
  • ✅ retake screenshots (not required)
  • ⏳ codeql (rust) (not required)
  • ⏳ secrets (not required)
  • ⏳ preview screenshots (not required)
  • ✅ screenshots out of date (not required)
  • ✅ Build macos-universal (not required)
  • ⏳ typos (not required)

WoggleSL Review · requested by a maintainer from the review board

@wogglesl-review

Copy link
Copy Markdown

Queued for approval, waiting for the checks:

  • ⏳ Build linux-x86_64
  • ⏳ Build windows-x86_64
  • ⏳ changes (not required)
  • ⏳ codeql (actions) (not required)
  • ⏳ wiki (not required)
  • ⏳ changes (not required)
  • ✅ retake screenshots (not required)
  • ⏳ codeql (rust) (not required)
  • ⏳ secrets (not required)
  • ⏳ preview screenshots (not required)
  • ✅ screenshots out of date (not required)
  • ✅ Build macos-universal (not required)
  • ⏳ typos (not required)
  • ✅ Build flatpak-x86_64 (not required)

WoggleSL Review · requested by a maintainer from the review board

@wogglesl-review

Copy link
Copy Markdown

Ran the review queue for every approved PR:

  • woggle#117: merged
  • woggle#118: merged
  • wogglesl.github.io#8: merged

WoggleSL Review · requested by @R3disme from a comment

@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)
  • ✅ screenshots out of date (not required)
  • ✅ Build macos-universal (not required)
  • ⏳ secrets (not required)
  • ✅ preview screenshots (not required)
  • ✅ Build flatpak-x86_64 (not required)
  • ✅ typos (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: 4 files, +100 / -2, 2 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 851a610 into main Dec 4, 2026
25 checks passed
@wogglesl-review

Copy link
Copy Markdown

Squash-merged into main as 851a610.

WoggleSL Review · requested by a maintainer from the review board

@wogglesl-review
wogglesl-review Bot deleted the config-editor-line-reset branch December 4, 2026 11:37
@wogglesl-review wogglesl-review Bot removed the In-Review Finished and waiting for a maintainer's review label Dec 4, 2026
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

The wiki screenshots were retaken after this merge. Updated images:

  • flags.png
  • woglog.png
  • config-editor.png

Wiki: https://github.com/WoggleSL/woggle/wiki

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