Skip to content

fix(customers): the sidebar's views are the Customers section, never empty - #652

Merged
JeremyFunk merged 1 commit into
mainfrom
fix/customers-sidebar-views
Nov 24, 2026
Merged

JeremyFunk merged 1 commit into
mainfrom
fix/customers-sidebar-views

fix(customers): the sidebar's views are the Customers section, never …

a4f0ae4
Select commit
Loading
Failed to load commit list.
Maple Review Bot / Maple / review succeeded Nov 24, 2026 in 4m 26s

Confidence 9/10 · No issues found

🟢 Confidence 9/10 · safe to merge. The one-view guard is pinned by the new sidebar test; the removed eye button and the disabled menu item have no test of their own.
no findings · tests partial −1 · risk medium

Drops the Customers row that never lit, renames the Views section to Customers, and keeps at least one view in the sidebar: the eye disappears on the last one, PressedHideView and the tab menu's "Hide from sidebar" refuse it, and an all-hidden layout falls back to the first view. Contained to the Customers shell.

  • sidebarKeysOf / canHideFromSidebar keep one view shown in the sidebar and list menu
  • PressedHideView returns the model untouched for the last shown view
  • sidebarViewsOf renders the fallback when every view is hidden
  • The standalone Customers row is gone; the views section is labelled Customers
What was checked
  • Eye removal and menu disable both use sidebarViewsOf/sidebarStateOf, so neither can dead-end (customers-sidebar.ts:401, model.ts:814)
  • Both surfaces build keys from the same views in the same order, so they agree on which view is last (customers-sidebar.ts:134, model.ts:235)
  • Existing story.test.ts hide/show expectations still hold with the new guard (sidebarHidden: ["all", "my_customers"])

a4f0ae4 · Reply "won't fix" to dismiss a finding, or mention @maple-review-bot to ask about one.