fix(settings): prevent double-highlight on Advanced Settings nav item #454

Merged
jmiller merged 1 commits from fix/advanced-settings-nav-highlight into dev 2026-06-04 12:52:56 +00:00
Owner

When visiting Advanced Settings, both "Repository" and "Advanced Settings" nav items were highlighted because SettingsCtxData middleware sets PageIsSettingsOptions=true for all settings routes.

Fix: override PageIsSettingsOptions=false in the advanced handler.

?? Generated with Claude Code

When visiting Advanced Settings, both "Repository" and "Advanced Settings" nav items were highlighted because `SettingsCtxData` middleware sets `PageIsSettingsOptions=true` for all settings routes. Fix: override `PageIsSettingsOptions=false` in the advanced handler. ?? Generated with [Claude Code](https://claude.com/claude-code)
jmiller added 1 commit 2026-06-04 12:52:50 +00:00
fix(settings): prevent double-highlight on Advanced Settings nav item
Generic: Repo Health / Site Health (push) Has been skipped
Generic: Repo Health / Access control (push) Successful in 1s
Branch Policy Check / Verify merge target (pull_request) Successful in 1s
Universal: PR Check / Branch Policy (pull_request) Successful in 1s
Generic: Repo Health / Site Health (pull_request) Has been skipped
PR RC Release / Build RC Release (pull_request) Successful in 2s
Generic: Repo Health / Access control (pull_request) Successful in 1s
Universal: PR Check / Validate PR (pull_request) Failing after 5s
Branch Cleanup / Delete merged branch (pull_request) Successful in 1s
Generic: Repo Health / Scripts governance (push) Has been cancelled
Generic: Repo Health / Repository health (push) Has been cancelled
Generic: Repo Health / Report Issues (push) Has been cancelled
Universal: PR Check / Build RC Package (pull_request) Has been cancelled
Universal: PR Check / Report Issues (pull_request) Has been cancelled
Generic: Repo Health / Scripts governance (pull_request) Has been cancelled
Generic: Repo Health / Repository health (pull_request) Has been cancelled
Generic: Repo Health / Report Issues (pull_request) Has been cancelled
c90edc3efc
SettingsCtxData middleware sets PageIsSettingsOptions=true for all
settings routes including /advanced. The advanced handler now explicitly
clears it so only the Advanced Settings nav item is highlighted.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
jmiller merged commit e088589af7 into dev 2026-06-04 12:52:56 +00:00
jmiller deleted branch fix/advanced-settings-nav-highlight 2026-06-04 12:52:57 +00:00
Sign in to join this conversation.
No Reviewers
No labels
Type
Status
Priority
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoGitea#454