fix(frontend): keep chat context rail clear of app nav#2576
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Code Review
This pull request changes the positioning of the collapsed chat cockpit context restore tab from viewport-fixed (fixed) to absolute positioning (absolute) to prevent it from overlapping with the app-wide navigation sidebar. The corresponding tests and contract guards have been updated. The reviewer suggested removing redundant assertions in the cockpit rail restore test file, as those classes are already verified by checking the COCKPIT_LEFT_RESTORE_WRAPPER_CLASS list.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
PR Summary by QodoFix chat cockpit restore tab positioning to avoid app nav overlap
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
Code Review by Qodo
Context used✅ Compliance rules (platform):
74 rules 1. Done task checklist incomplete
|
…ayground.cockpit-rail-restore.test.tsx Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
3d24dea to
79ea6a0
Compare
Change summary
Human-authored change summary required before merge: please replace this line with the requester-owned explanation of what changed and why.
Summary
Test plan
cd apps/packages/ui && bunx vitest run src/components/Layouts/__tests__/chat-rail-positioning-contract.guard.test.ts src/components/Option/Playground/__tests__/Playground.cockpit-rail-restore.test.tsxBandit skipped: TypeScript UI/test-only change.
Summary by cubic
Switch the collapsed chat context restore tab from viewport-fixed to cockpit-scoped positioning so it stays on the chat content edge and doesn’t overlap the app navigation rail. Update the positioning contract and relax Playground tests to assert cockpit scoping and not-fixed behavior; satisfies TASK-12114.
Written for commit 79ea6a0. Summary will update on new commits.