fix(session): skip restored todo dock entrance animation - #781
Conversation
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis PR prevents the todo dock's entrance animation from replaying when a session with an existing todo dock is restored. The change introduces restoration tracking in the dock state machine, wires it through session todo handling, refactors animation logic in the composer region to suppress animation for restored sessions, and includes unit and E2E test coverage. ChangesTodo Dock Restoration Without Animation Replay
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes The changes span multiple connected files (state machine, session integration, animation logic) with moderate logic density and new tracking patterns. Core restore-tracker and animation logic require understanding the dock lifecycle and state machine design. Test coverage across unit and E2E layers adds verification breadth. Heterogeneous across animation, state management, and testing—no repetitive patterns reduce effort. Possibly related issues
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Suggested priority: P2 (includes user-path files (packages/app/src/pages/session/composer/session-composer-region.tsx, packages/app/src/pages/session/todos/todo-dock-machine.test.ts, packages/app/src/pages/session/todos/todo-dock-machine.ts, packages/app/src/pages/session/todos/use-session-todos.ts)).
P1/P0 are reserved for maintainer confirmation. Please relabel manually if this is a release blocker, security issue, data-loss risk, or updater/runtime failure.
There was a problem hiding this comment.
Code Review
This pull request implements logic to skip the todo dock entrance animation when restoring an existing session, ensuring the UI immediately displays the settled height for historical data. It introduces a TodoDockRestoreTracker and updates the state machine and UI components to suppress animations for restored sessions, supported by new E2E and unit tests. Feedback identifies a bug in the snapshotKnown function where an overly broad condition incorrectly flags new sessions as restored, causing the entrance animation to be skipped for new todos.
Perf delta summaryComparator: pass
|
…imation # Conflicts: # packages/app/e2e/session/session-composer-dock.spec.ts
Summary
Test Plan
Notes
[e2e:pageerror] Objectlog on the restored-dock path; all assertions passed and exit codes were zero.Summary by CodeRabbit
New Features
Tests