Skip to content

Move navigation to a side bar and reduce the footer to the trial notice - #3188

Merged
johnsimons merged 11 commits into
masterfrom
improve-shell
Nov 25, 2026
Merged

johnsimons merged 11 commits into
masterfrom
improve-shell

Conversation

@tmasternak

@tmasternak tmasternak commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

The top bar hid every label below 1685px, so most current laptop users navigated by icons alone, and the fixed footer took up height on every page. This change moves navigation to a sidebar that collapses to an icon rail, and shows the footer only for trial licenses. Navigation shell describes the result.

Facts

  • F1 (new): the top bar held 11 items and hid every label below 1685px.
  • F2 (new): views use 92% of the content area (.container), leaving 4% unused on each side. The margins scale with the content area, so a side bar takes width mostly from the views, not from the margins.
  • F3 (new): views size themselves with viewport media queries and expect at least 930px of content.

Assumptions

  • A1 (new, assumed): users mostly work on landscape desktop or laptop screens, where height is scarcer than width. Wrong if support cases or screenshots show mostly portrait, tall, or tablet screens.
  • A2 (new, assumed): users find areas faster by label than by icon alone. Wrong if users navigate icon-only as fast as with labels.
  • A3 (new, assumed, partly wrong): views stay usable with about 220px less width. At 1366px, Monitoring fits; between 768px and 1279px an expanded side bar broke view layouts, which led to D2's rail behavior.

Constraints

  • C1 (existing, docs/PRODUCT.md): WCAG 2.2 AA, and every task stays usable on tablets and phones.
  • C2 (existing): nothing the shell showed or allowed is lost. Review criteria: permission gating and the ready gate of nav items; routes and deep links; the failed message, heartbeat, Platform health, and Configuration indicators; the platform update signal; the trial notice and its exceptions; integrated mode; "Connect new endpoint" in Configuration; the user menu; platform terms.
  • C3 (existing, docs/guidelines/ui.md): shared components only, no new Bootstrap component classes or data-bs-* attributes.

Decisions

  • D1 (new, rests on the "problems first" principle in docs/PRODUCT.md): Feedback moves to the bottom of the side bar and loses its button styling, so it does not compete with failure indicators.
  • D2 (new, rests on F1, F3, A2, A3, C1): the side bar is expanded by default from 1280px and collapsible, with the choice stored per browser; between 768px and 1279px it is always a rail and expands over the content; below 768px it is a drawer. On the rail, labels stay accessible names and show on hover and focus, and badges stay visible.
  • D3 (new, rests on A1 and C2): the footer renders only for a valid trial license and no longer covers content.
  • D4 (new, rests on C2): "Connect new endpoint" leaves the shell and stays a Configuration tab. No evidence was found that users open it from the footer.
  • D5 (new, rests on F1 and C2): the ServicePulse version, the hosting mode (Integrated or Standalone), and the platform update status sit on one line at the bottom of the side bar. The update status reports upgrades even while an instance is degraded or unavailable, which the Platform health menu item does not.

The Monitoring header now gives its title its natural width instead of a third of the row, so the title no longer truncates at narrower content widths.

Docs

  • Added docs/frontend/navigation-shell.md and listed it in docs/README.md.
  • Updated docs/frontend/platform-health-page.md: the footer's update status moved to PlatformVersionInfo.vue.
  • The servicepulse-ui skill links the shell widths in docs/frontend/navigation-shell.md and names the audit-available scenario for the sequence diagram.
  • Reviewed docs/frontend/testing-basics.md: no change, because it describes how to select a scenario, not the list of scenarios.
  • Added docs/DESIGN.md with the shell's visual rules, including the Vertical Space Rule: vertical space belongs to content, and persistent shell elements sit at the side. Its tokens are mirrored in src/Frontend/src/assets/tokens.css, which the shell components now use. It adapts the draft from Move navigation into a left sidebar and add DESIGN.md #3186 to the shell as built here.

Guidelines followed: docs/guidelines/ui.md, including the rules added in #3189. UserProfileMenuItem.vue still uses Bootstrap's dropdown with data-bs-toggle, as before; replacing it was out of scope.

Verification

  • npm run lint, npm run type-check, and npm run test:application (415 passed) pass. npm run test:component has 109 failures from localStorage being undefined under Node 26 in specs this change does not touch; they fail the same way on the base commit.
  • Layout check done at the shell widths in docs/frontend/navigation-shell.md, against the base branch.
    • Dashboard at 1280px: event descriptions in "Last 10 events" truncate with an ellipsis, because content is 1056px instead of 1280px. Accepted: the descriptions degrade with an ellipsis, and moving the expanded breakpoint to 1440px would bring back icon-only navigation on 1280px to 1439px screens.
    • Sequence diagram: it scrolls inside its own box on the base and on this change at all four widths. With the side bar expanded it hides more: 336px instead of 130px at 1280px, and 189px at 1440px, where the base fits. Accepted: the diagram stays usable through its scrollbar, and collapsing the side bar gives the width back (D2).
  • Added the trial-license mock scenario to check the footer, and a mocked conversation in the audit-available scenario so message details and the sequence and flow diagrams render.
  • Not checked in a browser: the user menu, which now opens upward from the bottom of the side bar. It needs the auth-authenticated scenario.

Message details, the message body, and the sequence and flow diagrams had no mock data, so the layout check could not cover them.
tokens.css holds the colours, sizes, and rounding of the application shell as CSS custom properties. Count badges take their colour from the danger token.
The UI guideline limits Bootstrap utilities to layout, so main.css provides .sr-only for text that only screen readers need.
The title had a fixed third of the header row and truncated when the content area got narrower.
The top bar hid every label below 1685px and the fixed footer took
height on every page. The side bar keeps labels and status badges
visible, collapses to an icon rail, overlays content between 768px and
1279px, and becomes a drawer on phones. The version, hosting mode, and
platform update status move to the bottom of the side bar. The footer
renders only for a valid trial license.
docs/DESIGN.md records the visual rules of the shell, including that
vertical space belongs to content and persistent shell elements sit at
the side. Its frontmatter tokens are the values in tokens.css.
Bootstrap 5.3 lists visually-hidden as a helper, not a utility, so the UI guideline's rule that limits utility classes to layout does not cover it. RefreshConfig and LoadingSpinner already use it.
Two separate token files for one shell gave no benefit over keeping them in main.css next to the rest of the custom properties. DESIGN.md now points to the single file.
The side bar's rail/full-width toggle and its drawer now use the View Transitions API (and a CSS transition on phones) so each part — logo, toggle, nav, badges — morphs to its new position instead of jumping, honoring reduced motion.

Ad hoc z-index values on the top bar, drawer, and backdrop made it unclear what could cover what. `.app-main` now isolates the content area as its own stacking context, and content that must cover the whole page (code editor and diff maximize views) opens as a native `` instead, since the browser renders it in the top layer above everything. Tooltips now attach to the nearest dialog instead of body so they still render above it.
@johnsimons johnsimons self-assigned this Nov 24, 2026

@rbev rbev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, ran it locally and had a poke around and it seemed good.

@johnsimons
johnsimons merged commit a200322 into master Nov 25, 2026
5 checks passed
@johnsimons
johnsimons deleted the improve-shell branch November 25, 2026 00:17
@johnsimons johnsimons added this to the 2.14.0 milestone Nov 25, 2026
@johnsimons johnsimons added the Improvement Improvement label Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Improvement Improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants