Skip to content

fix(ui): remediate spring physics animations, GPU layer compositing, and reduced-motion presets#1142

Merged
cursor[bot] merged 26 commits into
mainfrom
fix-physics-animation-audit
Jul 25, 2026
Merged

fix(ui): remediate spring physics animations, GPU layer compositing, and reduced-motion presets#1142
cursor[bot] merged 26 commits into
mainfrom
fix-physics-animation-audit

Conversation

@BigSimmo

@BigSimmo BigSimmo commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • Fix cross-mode search performance findings: prescribing catalogue debounce/abort/fields=index, differentials abort/debounce, universal documents typeahead soft-timeout (750ms), shared (search-app) shell to avoid composer remount, and Answer rate-limit in-memory fallback outside production.
  • Fix Bugbot regressions: shared-shell pathname navigation (/services/dsm) syncs searchMode during render (no stale-mode paint) even when the query string is unchanged; extracted ClinicalDashboard lazy imports to stay under the maintainability budget.

RAG impact: no retrieval behaviour change — typeahead documents domain timeout and shell URL sync only; ranking formulas and full /api/search retrieval path unchanged.

Verification

  • npm run verify:pr-local — focused Vitest on touched sources (362) plus api-rate-limit / search-shell / universal / route / site-map suites green; docs:check-index OK
  • UI verification not run: full verify:ui not required for this pass; mode-home smoke via npm run ensure returned HTTP 200 for /, /services, /dsm, /documents/search, /therapy-compass, /?mode=prescribing, and /api/answer/stream returned 200 after the rate-limit fallback fix
  • Verification not run: eval:retrieval:latency / soak / live OpenAI canary — approval-gated provider work; not needed for timeout-only typeahead change

Risk and rollout

  • Risk: medium — shared layout remount change and rate-limit fallback behaviour in non-production; production Answer/upload still fail closed when the durable limiter is unavailable
  • Rollback: revert this PR; mode routes return to per-segment GlobalSearchShell layouts and prior timeout/fallback behaviour
  • Provider or production effects: None

Clinical Governance Preflight

  • Source-backed claims still require linked source verification before clinical use
  • No patient-identifiable document workflow was introduced or expanded without explicit governance approval
  • Supabase target remains [REDACTED] ([REDACTED])
  • Service-role keys and private document access remain server-only
  • Demo/synthetic content remains clearly separated from real clinical sources
  • Source metadata, review status, and outdated/unknown-source behavior remain conservative
  • Deployment classification/TGA SaMD impact was checked when clinical decision-support behavior changed

Notes

  • Prescribing list rows keep the full catalogue payload so Safety/Monitoring filters and patient alerts still see section-derived signals; keystroke storms are controlled by debounce + abort. fields=index remains for identity-only consumers (cross-mode links).
  • Live hybrid RPC cold tails remain a separate approval-gated follow-up.

@coderabbitai

coderabbitai Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@cursor[bot], you've reached your PR review limit, so we couldn't start this review.

Next review available in: 38 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: 385c7003-58eb-4c99-9dad-bc3160ba2906

📥 Commits

Reviewing files that changed from the base of the PR and between 94d8eb6 and cd24bef.

📒 Files selected for processing (3)
  • docs/branch-review-ledger.md
  • tests/clinical-dashboard-merge-artifacts.test.ts
  • tests/ui-phone-scroll.spec.ts
📝 Walkthrough

Walkthrough

The update centralizes UI easing tokens, applies them across global transitions and animations, adds motion performance and accessibility helpers, refines mockup control interactions, and appends the PR review result to the branch review ledger.

Changes

Motion and interaction refinement

Layer / File(s) Summary
Shared motion tokens and transitions
src/app/globals.css
Adds spring easing tokens and replaces generic or inline easing across search, composer, chip, source-capsule, FAB, and mode-action transitions.
Motion performance and accessibility
src/app/globals.css
Adds shimmer compositing hints, a reduced-motion fade helper, and tokenized iOS composer padding transitions with will-change.
Mockup interaction styling
src/app/mockups/answer-evidence-popups/page.tsx, docs/branch-review-ledger.md
Adds explicit easing, press states, hover styling, and focus-ring composition to mockup controls, while recording the approved review.
Estimated code review effort: 2 (Simple) ~10 minutes

Possibly related PRs

Suggested reviewers: claude, cursoragent

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
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.
Title check ✅ Passed The title clearly reflects the main UI animation, compositing, and reduced-motion changes.
Description check ✅ Passed The description matches the template well, with summary, verification, risk, and governance sections filled in.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-physics-animation-audit

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@BigSimmo
BigSimmo enabled auto-merge (squash) July 24, 2026 07:06
@BigSimmo
BigSimmo disabled auto-merge July 24, 2026 07:14
cursoragent and others added 2 commits July 24, 2026 07:42
# Conflicts:
#	docs/branch-review-ledger.md

Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

1 similar comment
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

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

🧹 Nitpick comments (2)
src/app/globals.css (2)

108-118: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Use the shared spring token in the animation shorthand.

Line [116] repeats the exact cubic-bezier value stored in --spring-bouncy, so later token changes can cause the token and animation to drift. Use var(--spring-bouncy) here and map the other animation definitions to their intended shared tokens.

Proposed fix
-  --animate-pop-in: pop-in 180ms cubic-bezier(0.34, 1.3, 0.64, 1) both;
+  --animate-pop-in: pop-in 180ms var(--spring-bouncy) both;
🤖 Prompt for 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.

In `@src/app/globals.css` around lines 108 - 118, Update the animation shorthands
in the global token definitions to reference the appropriate shared spring
variables instead of duplicating cubic-bezier values, specifically replacing the
pop-in easing in --animate-pop-in with --spring-bouncy and mapping the remaining
animation definitions to their intended existing spring tokens. Preserve each
animation name, duration, and fill mode.

2273-2276: 🚀 Performance & Scalability | 🔵 Trivial | ⚡ Quick win

Scope will-change to the active transition.

These declarations apply continuously to every matching element. will-change: padding-bottom does not make layout reflow compositor-only, while permanent transform hints and translateZ(0) can increase layer and memory overhead. Apply the hints only during the transition, or remove them after confirming they provide measurable benefit.

Also applies to: 2639-2660

🤖 Prompt for 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.

In `@src/app/globals.css` around lines 2273 - 2276, Update the
.animate-skeleton-shimmer rule and the corresponding declarations around the
additional referenced block so will-change and transform hints are applied only
while the animation or transition is active; remove permanent translateZ(0) and
unnecessary compositor hints, preserving the skeleton shimmer behavior without
continuous layer overhead.
🤖 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.

Nitpick comments:
In `@src/app/globals.css`:
- Around line 108-118: Update the animation shorthands in the global token
definitions to reference the appropriate shared spring variables instead of
duplicating cubic-bezier values, specifically replacing the pop-in easing in
--animate-pop-in with --spring-bouncy and mapping the remaining animation
definitions to their intended existing spring tokens. Preserve each animation
name, duration, and fill mode.
- Around line 2273-2276: Update the .animate-skeleton-shimmer rule and the
corresponding declarations around the additional referenced block so will-change
and transform hints are applied only while the animation or transition is
active; remove permanent translateZ(0) and unnecessary compositor hints,
preserving the skeleton shimmer behavior without continuous layer overhead.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 43885a3f-9964-4a30-a5f8-c7bed25f847f

📥 Commits

Reviewing files that changed from the base of the PR and between 329ea48 and 94d8eb6.

📒 Files selected for processing (3)
  • docs/branch-review-ledger.md
  • src/app/globals.css
  • src/app/mockups/answer-evidence-popups/page.tsx

cursoragent and others added 4 commits July 24, 2026 08:14
…-audit

Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
# Conflicts:
#	src/app/globals.css

Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
@BigSimmo
BigSimmo enabled auto-merge July 24, 2026 11:14
@BigSimmo

Copy link
Copy Markdown
Owner Author

@cursoragent please resolve merge conflicts please

@cursor

cursor Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Merge conflicts on PR #1142 are resolved.

  • Merged origin/main into fix-physics-animation-audit (clean ort auto-merge; no manual conflict markers)
  • Pushed merge + ledger record (ff31b941b0eabaa0)
  • GitHub status: MERGEABLE (was CONFLICTING / DIRTY)

BLOCKED is only branch-protection/CI re-running after the push — not a conflict.

Open in Web Open in Cursor 

cursoragent and others added 4 commits July 24, 2026 11:16
…-audit

Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Record merge of origin/main into fix-physics-animation-audit after the PR went CONFLICTING behind #1138.

Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>

@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: 433409c95d

ℹ️ 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/app/globals.css
cursoragent and others added 7 commits July 24, 2026 17:13
@BigSimmo
BigSimmo disabled auto-merge July 24, 2026 19:16
@cursor
cursor Bot enabled auto-merge (squash) July 24, 2026 19:16

@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: 1d58758755

ℹ️ 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 docs/branch-review-ledger.md Outdated
@BigSimmo

Copy link
Copy Markdown
Owner Author

@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

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 1d58758755

ℹ️ 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".

github-actions Bot and others added 3 commits July 25, 2026 02:40
Move the misplaced spring-physics review records out from under the
table header / mid-history so they append after the final existing row,
restoring the branch-review-ledger append-only contract.

Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
@cursor
cursor Bot merged commit e966b5a into main Jul 25, 2026
26 checks passed
@cursor
cursor Bot deleted the fix-physics-animation-audit branch July 25, 2026 03:19
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.

2 participants