-
Notifications
You must be signed in to change notification settings - Fork 833
Prewarm new recording picker thumbnails on window init #1125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThe route component now always fetches display/window targets plus current screens/windows. It derives existing IDs from screens/windows and filters the target lists to only those present. Query declarations for screens/windows were consolidated earlier in the component, and duplicated declarations later were removed. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant UI as NewMain Route Component
participant Q1 as Query: screens
participant Q2 as Query: windows
participant Q3 as Query: displayTargets
participant Q4 as Query: windowTargets
participant F as Filter Logic
participant V as View
UI->>Q1: fetch screens
UI->>Q2: fetch windows
UI->>Q3: fetch displayTargets
UI->>Q4: fetch windowTargets
Q1-->>UI: screens[]
Q2-->>UI: windows[]
Q3-->>UI: displayTargets[]
Q4-->>UI: windowTargets[]
UI->>F: derive existingDisplayIds/existingWindowIds
F-->>UI: filtered displayTargets/windowTargets
UI->>V: render filtered targets
note over V: Only targets present in current screens/windows are shown
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (4)apps/desktop/**/*.{ts,tsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*.{ts,tsx,js,jsx,rs}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*.{ts,tsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*.{ts,tsx,js,jsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧬 Code graph analysis (1)apps/desktop/src/routes/(window-chrome)/new-main/index.tsx (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (3)
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 |
listWindowsWithThumbnails
andlistDisplaysWithThumbnails
when the main window opens so the new recording picker list view feels quicker to openSummary by CodeRabbit
Bug Fixes
Refactor