feat(theme): Aurora routes — collapsible route groups (chevron + collapse-all) - #165
Merged
Merged
Conversation
…apse-all) Make the Aurora routes-list group headers collapsible so sub-routes can be hidden when not needed. Clicking a group header toggles its members via the shared [data-gtoggle] handler and the same persisted collapsedGroups localStorage set the default/pro card view already uses — so collapse state survives reloads and is consistent across themes. Adds a rotating chevron (aria-expanded reflects state) and a toolbar 'collapse all / expand all' toggle that auto-hides when no multi-route groups exist. Aurora-only: only the isAurora() render path + aurora.css + the aurora routes template are touched; default/pro renderTable and pro.css/app.css are unchanged. New i18n keys routes.collapse_all / routes.expand_all (en+de).
…atches The aurora_theme.test.js guard asserts the literal 'if (isAurora()) auroraInitTypeToggle'; split the two init calls into separate isAurora() lines instead of a braced block.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Wunsch
Gruppierte Routen auf der Aurora-
routes/-Seite sollen wieder ein-/ausklappbar sein, damit Unterpunkte ausgeblendet werden können, wenn sie nicht gebraucht werden.Umsetzung (Variante A — vom User aus 3 Mockups gewählt)
aria-expandedspiegelt den Zustand.[data-gtoggle]-Handler und dasselbecollapsedGroups-localStorage-Set wie die Default-/Pro-Kartenansicht → Zustand überlebt Reloads, themeübergreifend konsistent.Aurora-only
isAurora()-Render-Pfad,aurora.cssund das Aurora-routes-Template berührt.renderTable(default/pro),pro.css,app.cssunverändert.routes.collapse_all/routes.expand_all(en+de). Kosmetisch → nicht lizenz-gated.Verifikation
Interaktions-Test gegen die reale App (Headless-Chromium, 17 Assertions, ALLE grün): Klick-Toggle (6↔4 Zeilen),
aria-expanded='false', „Collapse all' (→ nur 2 Standalone-Zeilen), Persistenz über vollen Page-Reload, „Expand all' kehrt zurück, keine JS-Fehler.