refactor(ui): single source for diagnostics deck shortcuts; drop redundant .deck-menu.hidden #183
Labels
No labels
blocked
bug
enhancement
high-priority
low-priority
needs-info
needs-triage
ready-for-agent
ready-for-human
referenced
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gabogg/hikcentral#183
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up from review pass 2 on #173 (deferred P3 standards/smell findings).
Findings
DIAGNOSTICS_DECKS(app/static/js/src/ui/deck_menu.js:10-14) repeats the F-key-to-deck pairs fromKEY_DECK_MAP(app/static/js/app.js:44-53) (probes/F4,console/F6,logs/F7). Changing a shortcut means editing both files..deck-menu.hidden { display: none; }(app/static/css/tactical-telemetry.css:1386) repeats the global.hidden { display: none !important; }rule.Acceptance criteria
initDiagnosticsMenucould derive the menu item keys fromKEY_DECK_MAP..deck-menu.hiddenrule is removed, and the menu still hides.Not filed, because they match the existing deck-selector idiom: plain-text shortcuts instead of
<kbd>(§3.3), no 1px pressed offset (§5.4), and the button label naming only F4.