Skip to content

Move navigation into a left sidebar and add DESIGN.md - #3186

Closed
tmasternak wants to merge 1 commit into
introduce-impeccablefrom
design-system-shell
Closed

tmasternak wants to merge 1 commit into
introduce-impeccablefrom
design-system-shell

Conversation

@tmasternak

@tmasternak tmasternak commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Builds on Particular/ServicePulse#3185 (based on its branch) and is the first UI change made with that product and design context. It moves navigation from the top bar into a left sidebar and adds docs/DESIGN.md, a human-readable description of the shell's design system in the open DESIGN.md format, mirrored by CSS custom properties in tokens.css. It follows the UI guideline docs/guidelines/ui.md from #3185; the assumptions, constraints and decisions it asks for are listed below.

Changes

  • Sidebar navigation grouped by capability: Recoverability (Failed Messages, Heartbeats, Custom Checks), Monitoring, Auditing, Platform (Platform health, Events), with Usage, Configuration, Feedback and the user menu at the bottom. Existing colours are kept and the existing menu items are reused, so permission gating, counts and warnings are unchanged. Collapses to an icon rail (remembered per browser); below 768px it becomes a drawer.
  • Platform update status ("Updates available") moves into the sidebar.
  • Footer carries only the trial-license notice, below the content; with any other license there is no footer. "Connect new endpoint" remains available under Configuration.
  • Mock scenarios license-trial and license-trial-expired to preview license states: VITE_MOCK_SCENARIO=license-trial npm run dev:mocks.

Assumptions, constraints and decisions

Following the rules for bigger UX/UI changes in docs/guidelines/ui.md (added in #3185). New: introduced by this PR. Existing: already true or recorded before it. Changed: existed before, modified here.

Assumptions

Claims about users and their context that could turn out to be wrong.

# Assumption Status Source Wrong if
AS1 Most use is on landscape desktop screens, so vertical space is scarcer than horizontal Changed: PRODUCT.md says desktop-first; "landscape, vertical space is scarce" is added here PRODUCT.md, assumed Most sessions come from small or portrait screens
AS2 People mostly open ServicePulse when something is broken (production) or to understand behaviour (development) Existing PRODUCT.md Usage shows mostly routine browsing
AS3 Users think in platform capabilities (Recoverability, Monitoring, Auditing, Platform) rather than in individual pages New Assumed; mirrors how the platform's capabilities are named Users look for items in the wrong group
AS4 Phone and tablet use is rare enough that navigation behind a menu button on small screens is acceptable New Assumed Small-screen use is common
AS5 Platform update status and "Connect new endpoint" are used rarely New Assumed Users miss updates or can't find how to connect an endpoint
AS6 Users' screens are tall enough to show every navigation item at once New, partly wrong Measured Wrong for common laptops: with every item showing the sidebar needs about 834px, a 1366×768 laptop browser gives about 650–680px
AS7 Some views need more width than a laptop leaves next to a 248px sidebar New Assumed (wide lists, flow and sequence diagrams) No view is cramped next to the expanded sidebar

Constraints

What the change has to respect regardless of the assumptions.

# Constraint Status Source
C1 Every task stays usable on tablets and phones Existing PRODUCT.md
C2 WCAG 2.2 AA Existing PRODUCT.md
C3 Permission gating, hiding Monitoring when it is not configured, live counts and warnings, integrated mode all keep working Existing Current behaviour
C4 docs/DESIGN.md stays library-neutral and names components by role Existing docs/guidelines/ui.md (#3185)
C5 Keep the current look: colours and logo New Stakeholder decision for this PR
C6 Shell only; pages, including their tabs, are unchanged New Scope of this PR

Decisions

# Decision Status Rests on Why
D1 Navigation in a left sidebar; no top bar Changed: was a top bar AS1 Spends the cheaper horizontal space on navigation and leaves the scarce height to content
D2 Items grouped: Dashboard; Recoverability (Failed Messages, Heartbeats, Custom Checks); Monitoring; Auditing (All Messages); Platform (Platform health, Events); Usage, Configuration, Feedback and the user menu at the bottom New: the top bar had no groups AS3 Groups match how users are assumed to look for things
D3 Counts and warnings stay on the navigation items Existing: already on the top-bar items AS2, C3 Problems are visible from any page
D4 Labels always visible in the expanded sidebar; in the collapsed rail they stay available to screen readers Changed: labels were hidden at most desktop widths and several items had no accessible name C2 Every item has a visible or accessible name
D5 Sidebar collapses to a 64px icon rail, remembered per browser New AS7 Gives width back to views that need it
D6 Below 768px the sidebar becomes a drawer behind a menu button; the 930px minimum page width is removed Changed: pages used to scroll sideways below 930px AS4, C1 Small screens get the full width for content; navigation stays one tap away
D7 When the height is not enough, the middle section scrolls and the bottom items stay in place New AS6 Every item stays reachable on short screens
D8 Update status moves into the sidebar; the footer only shows the trial-license notice, under the content; "Connect new endpoint" is reachable only under Configuration Changed: all three were in a fixed footer AS5, AS1 Removes a permanent strip from the scarce height; rarely used items move out of the way
D9 Shell colours, sizes and rounding are role-named tokens in tokens.css, described in docs/DESIGN.md New C4, C5 Today's values written down once, independent of Bootstrap

Guidelines and docs

  • Guidelines followed: docs/guidelines/ui.md, all rules.
  • docs/README.md: lists docs/DESIGN.md.
  • docs/frontend/platform-health-page.md: the update status moved from PageFooter.vue to PlatformUpdatesMenuItem.vue.
  • docs/frontend/testing-basics.md: the example test command uses the new update-status spec.
  • The other docs/frontend/ pages describe capability cards and pages, not navigation or the footer; no change needed.

Testing

Application tests pass; new component tests cover the footer and the update status. Checked in the browser with mock data: expanded, collapsed, drawer at 390px, keyboard focus, trial and expired-trial licenses. Not checked with authentication enabled (user menu).

Desktop viewports are wider than tall, so navigation moves from the top
bar into a left sidebar grouped by capability (Recoverability,
Monitoring, Auditing, Platform), with Usage, Configuration, Feedback
and the user menu at the bottom. It keeps the existing colours, reuses
the existing menu items (permission gating, counts and warnings are
unchanged), collapses to an icon rail and becomes a drawer on small
screens. Platform update status moves into the sidebar; the footer
now carries only the trial-license notice, below the content.

docs/DESIGN.md documents the shell's design system in the open DESIGN.md
format, mirrored by CSS custom properties in tokens.css, including
known gaps. Two mock scenarios (license-trial, license-trial-expired)
make license states easy to preview.

Co-authored-by: Bartek Wasielak <bartek.wasielak@particular.net>
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.

1 participant