Skip to content

feat(ux): labelled sidebar default and Forms early-access signalling (PT-07, PT-10)#598

Merged
BigSimmo merged 5 commits into
mainfrom
claude/pt-audit-pr6-ux-defaults
Jul 13, 2026
Merged

feat(ux): labelled sidebar default and Forms early-access signalling (PT-07, PT-10)#598
BigSimmo merged 5 commits into
mainfrom
claude/pt-audit-pr6-ux-defaults

Conversation

@BigSimmo

Copy link
Copy Markdown
Owner

Summary

Audit PT-07 / PT-10 (PT-15's accessible names landed in #582):

  • Labelled sidebar by default (PT-10): new desktop users get the expanded sidebar — eight icon-only destinations demand recall and hover; collapsing remains a remembered per-browser choice. Tablet keeps the icon rail. Specs that exercise the collapsed rail seed the stored preference explicitly, and a new spec pins the labelled default.
  • Forms "Early access" signalling (PT-07): the Forms registry is a four-record starter catalogue, so the sidebar entry carries an "Early access" pill (spoken in the collapsed rail's accessible name) and the Forms home subtitle says so.
  • Because the expanded sidebar contributes a "Search recent chats" searchbox on shell-wrapped pages, mockup collapse specs scope their search to #main-content.

Visual QA: screenshots at 320/360/375/390/430/768/1024/1280/1440 px show zero horizontal overflow; the audit's PT-08/PT-09 mobile-clipping and desktop-spacing claims did not reproduce on current main (chips use the standard scroll-peek + edge fade; the home was reworked by #496/#517).

Verification

Targeted Chromium runs green: labelled-default spec, collapsed-rail journey, tablet icon rail (@critical), account affordances, all three mockup collapse specs. Full typecheck, lint, prettier green.

🤖 Generated with Claude Code

BigSimmo and others added 2 commits July 13, 2026 22:20
…ckup tile a11y (PT-07, PT-10, PT-15)

New users now get the labelled (expanded) desktop sidebar: eight
icon-only destinations demand recall and hover; collapsing remains a
remembered per-browser choice, and specs that exercise the collapsed
rail seed that preference explicitly. Tablet keeps the icon rail.

Forms is a four-record starter catalogue, so signal maturity honestly:
an "Early access" pill on the sidebar entry (spoken in the collapsed
rail label too) and an early-access line in the Forms home subtitle.

Give the split-pane mockup's selectable tool cards a concise accessible
name ("Open <tool>") matching their link-rendered siblings, and tighten
the spec to assert it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The expanded sidebar's "Search recent chats" box becomes the first
searchbox on shell-wrapped pages, so mockup collapse specs scope their
search to #main-content. The tablet rail assertion moves from
DOM-absence to hidden (the expanded panel now exists but stays
display:none below lg), and the rail's Forms link is asserted with its
spoken "Forms (Early access)" name.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@supabase

supabase Bot commented Jul 13, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project sjrfecxgysukkwxsowpy because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@BigSimmo, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 4 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 84272ab7-de16-4c64-9744-43e1041c221c

📥 Commits

Reviewing files that changed from the base of the PR and between fba18eb and 44fa37d.

📒 Files selected for processing (1)
  • src/components/clinical-dashboard/use-sidebar-collapsed.ts
📝 Walkthrough

Walkthrough

The clinical sidebar now defaults to expanded for new or unavailable persistence states. The Forms tool displays an “Early access” badge, and forms messaging reflects the starter set. UI tests cover updated expanded, collapsed, tablet, account, and search behavior.

Changes

Clinical sidebar experience

Layer / File(s) Summary
Expanded sidebar default
src/components/clinical-dashboard/use-sidebar-collapsed.ts
Client and server snapshots now default to the expanded sidebar when no stored preference exists or storage access fails.
Forms badge presentation
src/components/clinical-dashboard/ClinicalSidebar.tsx, src/components/forms/forms-home-page.tsx
The Forms tool displays an “Early access” badge in expanded navigation and includes it in collapsed labels and titles; the forms home subtitle describes the early-access starter set.
Sidebar interaction coverage
tests/ui-smoke.spec.ts, tests/ui-tools-collapse.spec.ts, tests/ui-tools.spec.ts
UI tests cover the expanded default, persisted collapsed state, updated tablet and account affordances, Forms labeling, and main-content search targeting.

Estimated code review effort: 3 (Moderate) | ~20 minutes


Caution

Pre-merge checks failed

Please resolve all errors before merging. Addressing warnings is optional.

  • Ignore

❌ Failed checks (1 error)

Check name Status Explanation Resolution
Verification Claims ❌ Error The PR description says “Targeted Chromium runs green” and “Full typecheck, lint, prettier green” without exact commands/results. Rewrite verification notes with explicit commands and outcomes, e.g. “Ran npm run test:ui: passed” or “Not run: reason”.
✅ Passed checks (10 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately summarizes the sidebar-default and Forms early-access UX changes.
Description check ✅ Passed The description includes the required Summary and Verification sections and is mostly complete, though it omits the template's checklist items and Notes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Generated And Sensitive Files ✅ Passed PR changes only 6 TS/TSX source/test files; no secrets, .envs, keys, logs, caches, or build/browser artifacts were added.
Risky Git Or Deployment Actions ✅ Passed The PR only changes sidebar, forms, and test code/comments; no touched file recommends force-push, hard reset, destructive cleanup, branch deletion, rebasing shared branches, or deployment without...
Supabase Project And Schema Safety ✅ Passed Diff only touches UI/components and Playwright tests; no Supabase refs, env/docs, migrations, schema, RLS, or policy changes are present.
Runtime And Package Manager Integrity ✅ Passed PR only touches app/tests; diff shows no package.json/lockfile/.npmrc edits, and repo still pins Node 24/npm 11 with engine-strict.
Api Route Failure Handling ✅ Passed No API route, server action, RAG/search/ingestion, or provider-integration code was changed; the PR only updates client UI and tests.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/pt-audit-pr6-ux-defaults

Comment @coderabbitai help to get the list of available commands.

@BigSimmo
BigSimmo enabled auto-merge (squash) July 13, 2026 14:47

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fba18eb02a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/components/clinical-dashboard/use-sidebar-collapsed.ts
@github-actions

Copy link
Copy Markdown

@codex resolve actionable Codex review findings for this pull request and current head using the repository instructions. This is the pull request's single automatic repair pass: do not perform a fresh review, create new standalone findings, or request another review. Work only the existing unresolved Codex threads on the current head. Always fix P0 and P1 findings. For P2 and lower findings, fix only clear, scoped, low-risk issues; otherwise disposition them with a concise reason. After fixing or dispositioning a thread, reply in that thread with as the first line, followed by a concise summary; that marker authorizes the workflow to close that exact thread. If human input or new authorization is required, do not use the marker and leave the thread open with the blocker. Finish only after every actionable thread is fixed or dispositioned and closed, or explicitly left open for a human decision. Do not update the branch from main, address unrelated reviews, broaden scope, or create more than one scoped fix commit. Do not use external APIs, paid services, credentials, dependency changes, or broad refactors unless explicitly authorized. Add targeted tests where behavior changes and run the narrowest relevant validation.

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create a Codex account and connect to github.

coderabbitai[bot]
coderabbitai Bot previously requested changes Jul 13, 2026

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/components/clinical-dashboard/use-sidebar-collapsed.ts`:
- Around line 14-15: Update the storage-write error path in setCollapsed so it
records the requested collapsed state in an in-memory fallback snapshot when
localStorage writes fail. Ensure getSnapshot reads this volatile value before
falling back to localStorage/default state, while preserving persistence
behavior when storage writes succeed and the existing change-event dispatch.
🪄 Autofix (Beta)

✅ Autofix completed


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 1156a2da-0168-4d32-9188-d38687028ac0

📥 Commits

Reviewing files that changed from the base of the PR and between 1483c3d and fba18eb.

📒 Files selected for processing (6)
  • src/components/clinical-dashboard/ClinicalSidebar.tsx
  • src/components/clinical-dashboard/use-sidebar-collapsed.ts
  • src/components/forms/forms-home-page.tsx
  • tests/ui-smoke.spec.ts
  • tests/ui-tools-collapse.spec.ts
  • tests/ui-tools.spec.ts

Comment thread src/components/clinical-dashboard/use-sidebar-collapsed.ts
@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Note

Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it.

Fixes Applied Successfully

Fixed 1 file(s) based on 1 unresolved review comment.

Files modified:

  • src/components/clinical-dashboard/use-sidebar-collapsed.ts

Commit: e0a745abe5c17ab7caa059dfd6d069c41fbd4e80

The changes have been pushed to the claude/pt-audit-pr6-ux-defaults branch.

Time taken: 7m 19s

coderabbitai Bot and others added 3 commits July 13, 2026 15:08
Fixed 1 file(s) based on 1 unresolved review comment.

Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
@BigSimmo
BigSimmo merged commit b556f10 into main Jul 13, 2026
15 checks passed
@BigSimmo
BigSimmo deleted the claude/pt-audit-pr6-ux-defaults branch July 14, 2026 11:15
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