Skip to content

Dashboard: group tiles by Samples, Storage and Consumables; Reports sidebar section - #205

Merged
olsonjp merged 1 commit into
mainfrom
dashboard-grouped-sections
Nov 11, 2026
Merged

olsonjp merged 1 commit into
mainfrom
dashboard-grouped-sections

Conversation

@olsonjp

@olsonjp olsonjp commented Nov 11, 2026

Copy link
Copy Markdown
Owner

Two small navigation changes. The Needs Attention work is a separate PR stacked on this one.

Dashboard grouped like the sidebar

  • Small muted section labels, Samples, Storage and Consumables, each with its own tile row (no extra boxes). This fixes the ragged second row.
  • Samples: Samples and Aliquots tiles, the Lab Checkouts tile (managers), then the "Checked out by you" card.
  • Storage: Storage Used and Audits tiles, then Freezers and the audits "In progress" card.
  • Consumables: Low Stock and Expiring Soon. This group only renders when Consumables are enabled in Settings, like the sidebar section.
  • Recent Activity stays last. Quick Actions stay where they were, under the title.
  • The Alerts tile is kept as it is and sits after Audits in the Storage group for now. A follow-up PR replaces it with a header pill. (Alerts is not really a Storage item; this is only a placeholder position.)

Reports in the sidebar

Reports is now a collapsible section like Samples, Storage and Consumables, so the report pages are reachable without going through the Reports page: Overview, Storage Audits, Alerts, and Checked Out, No Owner. It opens when you are on any Reports page, and the current page is highlighted (audit pages keep Storage Audits highlighted). Everyone sees all four; the pages control who can act.

Not changed

No models, migrations or behaviour. The Start Audit quick action is unchanged; moving it out of the primary actions is a separate PR.

Verification

  • sample/tests/test_dashboard_sections.py (group order, which tiles and cards sit in which group, the Alerts tile position, Consumables hidden when the feature is off, the manager tile) and reports/test_sidebar.py (all four links on several pages, open and collapsed states, the active item). Full suite: 653 tests, OK.
  • Not checked by me: how it looks in a browser. In particular, the "Checked Out, No Owner" label may wrap in the sidebar, and the checked-out card should still sit above the fold on a laptop.

🤖 Generated with Claude Code

…idebar section

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@olsonjp
olsonjp merged commit e6398b2 into main Nov 11, 2026
1 check passed
@olsonjp
olsonjp deleted the dashboard-grouped-sections branch November 11, 2026 16:56
olsonjp added a commit that referenced this pull request Nov 11, 2026
#205 was squash-merged, so keep this branch's versions of the files it changes on top of it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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