Repository navigation
Split GitLab item dialog - #17165
Split GitLab item dialog#17165
Conversation
Greptile SummaryThe PR decomposes the GitLab item dialog into focused state, effect, action, view, and tab modules while preserving its existing GitLab IPC and interaction behavior.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| src/renderer/src/components/GitLabItemDialog.tsx | Reduced to a controller that builds repository context, composes extracted hooks, and delegates rendering. |
| src/renderer/src/components/gitlab-item-dialog/use-gitlab-item-dialog-state.ts | Centralizes the dialog’s local state and item-scoped comment-draft reconciliation. |
| src/renderer/src/components/gitlab-item-dialog/use-gitlab-item-dialog-effects.ts | Extracts details loading and item-change reset effects with stale-request protection. |
| src/renderer/src/components/gitlab-item-dialog/gitlab-item-dialog-view.tsx | Preserves the sheet shell, tabs, comment composer, and footer action wiring. |
| src/renderer/src/components/gitlab-item-dialog/use-gitlab-details-editing.ts | Encapsulates label loading and merge-request details editing. |
| src/renderer/src/components/gitlab-item-dialog/use-gitlab-review-actions.ts | Encapsulates reviewer updates, inline comments, and discussion resolution. |
| src/renderer/src/components/gitlab-item-dialog/use-gitlab-primary-actions.ts | Encapsulates close, reopen, merge, and top-level comment mutations. |
| src/renderer/src/components/gitlab-item-dialog/use-gitlab-pipeline-actions.ts | Encapsulates pipeline trace expansion and job retry behavior. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
D[GitLabItemDialog controller] --> S[Dialog state]
D --> E[Details and scope effects]
D --> A[Action hooks]
D --> V[GitLabItemDialogView]
A --> P[Primary actions]
A --> R[Review actions]
A --> J[Pipeline actions]
A --> M[Details editing]
V --> T1[Description tab]
V --> T2[Conversation tab]
V --> T3[Files tab]
V --> T4[Pipeline tab]
E --> API[GitLab preload API]
P --> API
R --> API
J --> API
M --> API
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
…3-gitlab-item-dialog # Conflicts: # config/max-lines-baseline.txt # src/renderer/src/hooks/automation-dispatch-completion.ts
|
Warning Review limit reachedNext included review available in 16 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 (16)
ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (16)
📝 WalkthroughWalkthroughThe GitLab item dialog was decomposed into state and effect hooks, action hooks, tab components, and a dedicated view component. Details loading and item-scope resets now use shared effects. Editing, pipeline, reviewer, comment, discussion, and primary actions use dedicated hooks. The dialog view renders the sheet, tabs, composer, and footer actions. Boundary tests now inspect the extracted hook files. ✨ 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 * 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
GitLabItemDialoginto focused state, effect, action, view, and tab modulesStacked on #17161.
Validation
pnpm tcpnpm tc:webpnpm test src/renderer/src/components/task-drawer-source-boundary.test.ts src/renderer/src/components/feature-interaction-writer-boundaries.test.tspnpm run check:code-quality:changedpnpm check:max-lines-ratchetgit diff --checkgitlab-org/cli!3805through Orca Tasks; verified Description, Conversation (14), Files (6), Pipeline (17), a successful job log, and the edit/cancel flow with 0 renderer errors