Repository navigation
feat(layout): reorganize navigation and declutter the sidebar - #391
Conversation
… sidebar - Site selector and an icon-only settings shortcut move into the top bar, always visible regardless of the page header, and into a full-width row in the mobile header. - Sidebar drops the site block, the add-site button, the settings/tracking/ share icon row and the Ask AI trigger; Ask AI opens from the user menu instead (AskAIControlService + drawer host in the layout overlays). - Secondary sidebar sections (Integration, Account, Resources, Administration) become an exclusive accordion with localStorage persistence and auto-expansion for the section of the active route. - Share dashboard moves from a dialog into a deep-linkable Share tab in site settings, and the system settings Sites tab gains a primary Add site button plus per-row settings access. Refs #4
…page The persistent top bar already anchors the active site, so the Sites > domain > Settings breadcrumb above the settings tabs is noise. PageFrame now treats breadcrumbItems as optional and skips registering the shared page header when there is no breadcrumb and no subtitle.
Every page header carried a breadcrumb that mostly repeated the active sidebar section (and the site selector now anchors the active site in the top bar). Drop the trails everywhere: - Pages rendered their breadcrumb through the shared page header; the header blocks are gone where the breadcrumb was the only content. - Pages pairing a breadcrumb with an intro paragraph keep the paragraph as a plain intro above their content. - PageFrame loses its page-header integration and keeps only the optional subtitle, now rendered as an intro paragraph. AdminPageFrame and the site settings page no longer pass breadcrumb items. - The PageBreadcrumb and PageHeader components are deleted, along with the now-orphaned breadcrumb copy in all locales.
… UTM hub - Opening a collapsible sidebar section now folds the other sections (single open section, persisted). Nested menus fold with the same system: same animation, same localStorage state and exclusivity among siblings, so the API Clients menu behaves like the sections. - UTM becomes one routed hub with two addressable tabs, Generator and QR codes, matching the Import & Export pattern; the standalone UTM analytics dashboard page is removed and the sidebar shows a single flat UTM entry. In share mode only the QR codes tab is available.
Closing a collapsible section or nested menu only removed the stored override, so the active-route fallback immediately re-opened the branch on its own page (e.g. API Clients could not be folded from /integration/api-clients). Store explicit false overrides so a user close sticks until they reopen it.
…w, API tabs hub - The team overview becomes an unlabeled sidebar section above the Analytics section. - The site selector and its settings shortcut stay hidden while the overview page is active (they are site-scoped and do not apply there). - The API Clients sidebar entry is renamed to API and hosts the API clients list and the API reference as two addressable tabs, replacing its nested submenu; /integration/api-reference deep links redirect into the new reference tab. - The admin Sites panel moves the Add site action into the panel header row, aligned right next to the title.
…expansion Opening another section while the active route's section was open left both expanded, because the route fallback re-expanded the first one. Once the user selects a section manually, the auto-expansion no longer applies and the exclusive accordion owns the open state.
The Ask AI drawer stays mounted through the layout overlays, but the user menu no longer lists it: the redesigned navigation keeps Ask AI out of the chrome until its entry point is decided.
… entry" This reverts commit a7be035.
Switching sites only restarted the AI activity request: without an active conversion filter, no signal re-ran the effect, so the report kept the previous site's data. Start both requests on the site-change branch, and restore the Ask AI entry in the user menu per the mockup's relocation options.
Switching sites only restarted the AI activity request: without an active conversion filter, no signal re-ran the effect, so the report kept the previous site's data. Start both requests on the site-change branch so a switch always refreshes the report.
The removed breadcrumbs were rendering each page's h1, so Import & Export lost its heading. PageFrame gains an explicit heading input and the import-export hub uses it. The ask-ai and dashboard seeded specs are updated to the new entry points: Ask AI opens from the user menu, and the share flow is verified through its settings tab instead of the removed sidebar dialog button.
|
Triaged the three red checks:
The E2E and lint jobs should be safe to re-run; happy to take the govulncheck discussion separately if you want to bump the toolchain. |
|
Hey @gnacho, the reason I was holding on to larger sidebar refactorings was that the sidebar is currently really lackluster, I wanted to swap out our handmade sidebar with the optimus-ui sidebar component so we get a resizable and collapsible sidebar, think of how chatgpt looks. I will see how we can get this merged. Also, in my opinion, ASK AI should be placed somewhere where I can reach it with a single click. But generally I'm very much in favor of your changes. |
|
The optimus-ui plan makes sense: a resizable and collapsible sidebar like ChatGPT's covers exactly what this PR doesn't touch. Once it lands I can tell you which changes still make sense on the new base, and split whatever remains into smaller PRs or adapt it to your branch, whichever you prefer. On one-click Ask AI, fair point, but I can't really weigh in yet. I don't use Ask AI at all, and I'm not actively using HitKeep yet either. I'm still collecting data and studying how the solution works before making it my main tool. Moving it to the user menu was a provisional call with what I knew at the time. In a few weeks, once I'm actually getting full value out of it, you'll get feedback from real use: more improvements and suggestions, including where Ask AI should live. |
The dashboard navigation now keeps team and site context in the top bar and offers a persistent Focus sidebar that can be resized or collapsed without remounting the active page. Secondary navigation groups fold independently, remain keyboard accessible, and a permission-filtered navigation search opens with Ctrl/Cmd+K.
The branch includes current main and its HitKeep organization migration contracts.
The branch integrates main after PR419 and PR411. The new Assistants page uses the shared route heading instead of the removed breadcrumb component/input; endpoint copying, personal connection links and capability-gated registration administration are retained. A browser case exercises that combined page and header. Independent integration review found no defect and verified unrelated parent-exclusive paths and locale values were preserved.
Validation: the canonical developer MCP
completeplan48b189e7d6a96c7a4465a871passes all six frontend gates on the final source.frontend-formatandfrontend-lintpass in20261024T211032-c4696803;frontend-audit,frontend-i18n,frontend-unit, andfrontend-e2epass in20261024T211112-3383c771. Results: 1,213 unit tests across 190 files, all 91 seeded browser cases, and all three subdirectory deployment checks. This includes Assistants, Focus navigation, desktop/mobile OAuth dialogs, reports, shared tables and Ask AI.Two existing timing-sensitive browser assertions now synchronize with the behavior they test: the phone table waits for responsive layout while retaining its390px right-edge and no-overflow limits; the dashboard range test finishes the initial report load before marking nodes and retains exact chart/KPI node-preservation assertions. The sidebar storage test likewise retains its220–320px bounds while waiting for restored geometry. No production navigation or storage safety was weakened.
OAuth success UI states use explicit API fixtures; no complete live OAuth authorization flow is claimed. OAuth guidance and screenshots are merged and deployed through HitKeep/hitkeep-docs PR10. Stable release metadata is preserved and the unreleased release article remains draft.