All Docs
FeaturesDepositClearUpdated March 15, 2026

Sidebar Update: Compliance Is Now a Flat Nav Link

Sidebar Update: Compliance Is Now a Flat Nav Link

Version: 0.1.366

We've tidied up the sidebar navigation by removing the single-item Compliance group and replacing it with a flat top-level link.

What Changed

The sidebar previously displayed a collapsible group labelled Compliance that contained exactly one item — the Compliance page itself. This pattern is normally used when a section contains multiple child pages, but here it added an unnecessary layer of hierarchy around a single destination.

As of this release:

  • Compliance appears as a flat, always-visible link in the sidebar — no group header, no expand/collapse toggle.
  • The complianceAlerts badge still appears inline next to the link, so outstanding compliance alerts remain immediately visible at a glance.
  • The link sits between the Inspections group and the Insights group, keeping the sidebar ordering logical.

What Stays the Same

  • The Compliance page itself is unchanged — only the sidebar entry that links to it has been restructured.
  • The badge behaviour is identical: it surfaces the same complianceAlerts count as before.
  • All other sidebar groups and links are unaffected.

Why We Made This Change

A collapsible group exists to organise multiple related pages under a shared heading. When there is only one page in that group, the wrapper adds roughly 2.5rem of extra vertical space and an unnecessary click (to expand the group) on every page load.

Promoting the link to a flat item eliminates that friction. The badge on a flat link is just as prominent as a badge inside a group — so nothing is lost in terms of alert visibility, and the sidebar becomes marginally but consistently cleaner.

Affected File

FileChange
src/components/sidebar-nav.tsxRemoved single-item group wrapper; promoted Compliance to a flat top-level link with inline badge