Repository navigation
Split Linear item drawer responsibilities - #17231
Conversation
Greptile SummaryThe PR splits the Linear item drawer into focused controller, layout, sheet, footer, controls, and type modules while retaining the existing facade and behavior.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| src/renderer/src/components/LinearItemDrawer.tsx | Retains state hydration and data-loading ownership while delegating rendering and preserving the established export facade. |
| src/renderer/src/components/linear-item-drawer-sheet.tsx | Faithfully extracts the sheet composition, focus handling, editor callbacks, comments, close action, and workspace actions. |
| src/renderer/src/components/linear-item-drawer-edit-controller.tsx | Preserves edit hooks, optimistic mutations, rollback behavior, provider settings, and workspace/source scoping. |
| src/renderer/src/components/linear-item-drawer-edit-section.tsx | Keeps the edit controller unconditionally owned by the edit-section component and selects the requested presentation layout. |
| src/renderer/src/components/linear-item-drawer-comment-footer.tsx | Faithfully extracts bounded comment submission, unmount protection, shortcuts, and both visual variants. |
| src/renderer/src/components/linear-item-drawer-types.ts | Moves drawer contracts and edit-state initialization without changing their shapes or defaults. |
| src/renderer/src/components/task-drawer-source-boundary.test.ts | Retargets source-boundary assertions to the modules that now own the corresponding behavior. |
| src/renderer/src/components/feature-interaction-writer-boundaries.test.ts | Retargets feature-interaction assertions to the extracted controller and comment-footer owners. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
F[LinearItemDrawer facade] --> S[Drawer sheet]
F --> T[Shared types and state initializer]
S --> E[Edit section]
S --> C[Comment footer]
E --> K[Edit controller]
E --> L1[Chips layout]
E --> L2[Properties layout]
K --> U[Edit controls]
L1 --> U
L2 --> U
Reviews (3): Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." | Re-trigger Greptile
…om-3-mobile-browser
…-bottom-4-prune-resolved
…-bottom-5-pane-tree-ops
…bottom-6-mobile-troubleshoot
…lines-bottom-7-external-manager
…es-bottom-8-attach-services
…s-bottom-9-hosted-review-creation
…ax-lines-bottom-10-automation-dispatch-events
… ra/max-lines-bottom-11-settings-navigation
…-lines-bottom-12-daemon-init
…ottom-13-gitlab-item-dialog
…lines-bottom-14-relay-dispatcher
…nes-bottom-15-mobile-host-screen
…lines-bottom-16-runtime-file-client
…-lines-bottom-17-ports-panel
…ottom-18-runtime-environments-pane
…ra/max-lines-bottom-19-local-pty-provider
…lines-bottom-20-cdp-bridge # Conflicts: # src/main/browser/cdp-bridge.ts
…ttom-21-git-handler
…ottom-22-linear-item-drawer
…2-linear-item-drawer # Conflicts: # config/max-lines-baseline.txt # src/renderer/src/hooks/automation-dispatch-completion.ts
|
Warning Review limit reachedNext included review available in 11 minutes. View limit detailsLimit details: You’ve used all 10 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (12)
ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (12)
📝 WalkthroughWalkthroughThe Linear issue drawer was refactored into dedicated modules for shared types, edit controls, optimistic edit handling, sheet rendering, and comment submission. The main drawer now delegates its JSX to the sheet renderer and re-exports selected APIs. Source-boundary tests were updated for the new module boundaries and return markers. ✨ Finishing Touches📝 Generate docstrings
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 |
* Split speech session lifecycle * Split terminal output scheduler pipeline * Split mobile browser pane modules * Prune resolved max-lines suppressions * Split pane tree equalization logic * Extract mobile troubleshoot screen styles * Split external automation manager * Split main window service attachments * Split hosted review creation checks * Split automation dispatch event handling * Split settings navigation metadata * Split daemon initialization lifecycle * Split GitLab item dialog * Split relay dispatcher layers * Split mobile host screen * Retarget mobile view settings source test * Split runtime file client layers * Split ports panel layers * Split runtime environments pane layers * Split local PTY provider responsibilities * Split CDP bridge responsibilities * Split relay Git handler responsibilities * Track moved relay Git fetch audit * Split Linear item drawer responsibilities * Fix F3-speech for stablyai#17123 * Fix F1-cycle for stablyai#17131 * Fix F4-navtest for stablyai#17157 * Fix F2-allowlist for stablyai#17161
Summary
LinearItemDrawerfacade and its seven-name export surfacePreservation audit
LinearIssueEditSectionfiberValidation
pnpm tcpnpm tc:webpnpm run check:code-quality:changedpnpm check:max-lines-ratchet(64 grandfathered entries)pnpm check:runtime-electron-ratchetgit diff --check