Skip to content

feat(layout): reorganize navigation and declutter the sidebar - #391

Merged
PascaleBeier merged 30 commits into
HitKeep:mainfrom
gnacho:feat/nav-topbar-redesign
Oct 24, 2026
Merged

PascaleBeier merged 30 commits into
HitKeep:mainfrom
gnacho:feat/nav-topbar-redesign

Conversation

@gnacho

@gnacho gnacho commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

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.

  • Keep contextual site settings, sharing, and Add site actions near the site selector, with shared views and pending context switches fenced off.
  • Keep Ask AI available in the global header when the instance enables it, including mobile layouts.
  • Put shared-dashboard controls in the addressable site settings Share tab, and keep site creation and settings reachable from System Settings and contextual controls.
  • Group UTM Analytics, Builder, and QR codes in one routed hub; shared views retain read-only analytics and QR navigation.
  • Group API Clients and Reference in a tabbed hub and preserve the old API Reference URL through a redirect.
  • Replace breadcrumb trails with the shared route heading. Adapt the OAuth management pages to the same page-frame contract and integrate PR419's compact tables and shared details dialogs while preserving forms, permissions, revocation and connection metadata.

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 complete plan 48b189e7d6a96c7a4465a871 passes all six frontend gates on the final source. frontend-format and frontend-lint pass in 20261024T211032-c4696803; frontend-audit, frontend-i18n, frontend-unit, and frontend-e2e pass in 20261024T211112-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.

gnacho added 11 commits October 9, 2026 19:41
… 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.
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.
@gnacho

gnacho commented Oct 9, 2026

Copy link
Copy Markdown
Contributor Author

Triaged the three red checks:

  • E2E Dashboard - real, caused by this PR and fixed in 4776b1d (just pushed). The removed breadcrumbs were rendering each page's h1, so Import & Export lost its heading; PageFrame now takes an explicit heading input and the hub uses it. The seeded ask-ai and dashboard specs are updated to the new entry points (Ask AI opens from the user menu, share is verified through its settings tab, site settings through the top-bar shortcut). Local unit suite stays green.
  • Lint Golang codebase - infrastructure, no lint findings. The QA pipeline died earlier at the email-clients gate: the runner could not pull the Mailpit image from Docker Hub (unauthenticated pull rate limit). A re-run on a fresh runner should clear it.
  • Govulncheck - baseline on main, not from this PR: the diff contains no Go changes, and the scheduled Govulncheck run on main has been failing the same way since 2026-10-09 08:32 UTC (13 standard-library findings at the pinned toolchain).

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.

@PascaleBeier PascaleBeier self-assigned this Oct 11, 2026
@PascaleBeier

Copy link
Copy Markdown
Collaborator

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.

@gnacho

gnacho commented Oct 11, 2026

Copy link
Copy Markdown
Contributor Author

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.

@PascaleBeier
PascaleBeier merged commit 828ccb5 into HitKeep:main Oct 24, 2026
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