Skip to content

Split GitLab item dialog - #17165

Merged
nwparker merged 31 commits into
mainfrom
ra/max-lines-bottom-13-gitlab-item-dialog
Aug 30, 2026
Merged

nwparker merged 31 commits into
mainfrom
ra/max-lines-bottom-13-gitlab-item-dialog

Conversation

@nwparker

@nwparker nwparker commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​24 $\color{#cf222e}{\Huge{\mathbf{−}}}$​11 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​13
Prod 14 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1861 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1477 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​384

Summary

  • split GitLabItemDialog into focused state, effect, action, view, and tab modules
  • preserve the existing callback/effect behavior, UI classes, copy, translation keys, and GitLab IPC calls
  • remove the dialog from the max-lines baseline, reducing the grandfathered count from 74 to 73
  • update static boundary tests to follow the extracted modules

Stacked on #17161.

Validation

  • pnpm tc
  • pnpm tc:web
  • pnpm test src/renderer/src/components/task-drawer-source-boundary.test.ts src/renderer/src/components/feature-interaction-writer-boundaries.test.ts
  • pnpm run check:code-quality:changed
  • pnpm check:max-lines-ratchet
  • git diff --check
  • Electron/CDP: opened public GitLab MR gitlab-org/cli!3805 through Orca Tasks; verified Description, Conversation (14), Files (6), Pipeline (17), a successful job log, and the edit/cancel flow with 0 renderer errors

@greptile-apps

greptile-apps Bot commented Aug 29, 2026 •

Copy link
Copy Markdown

Greptile Summary

The PR decomposes the GitLab item dialog into focused state, effect, action, view, and tab modules while preserving its existing GitLab IPC and interaction behavior.

  • Extracts item-scoped state and lifecycle effects into dedicated hooks.
  • Separates details editing, pipeline, review, and primary mutation actions.
  • Moves Description, Conversation, Files, and Pipeline rendering into focused components.
  • Updates source-boundary tests and removes the original dialog from the max-lines baseline.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

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
Loading

Reviews (3): Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." | Re-trigger Greptile

…ax-lines-bottom-10-automation-dispatch-events
…3-gitlab-item-dialog

# Conflicts:
#	config/max-lines-baseline.txt
#	src/renderer/src/hooks/automation-dispatch-completion.ts
@nwparker
nwparker changed the base branch from ra/max-lines-bottom-12-daemon-init to main August 30, 2026 03:14
@nwparker
nwparker merged commit 052710b into main Aug 30, 2026
4 of 20 checks passed
@coderabbitai

coderabbitai Bot commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

Next included review available in 16 minutes.

View limit details

Limit 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.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 83e700cf-f9a4-457c-94d9-74a53da7ea4d

📥 Commits

Reviewing files that changed from the base of the PR and between 953114c and 7e90334.

📒 Files selected for processing (16)
  • config/max-lines-baseline.txt
  • src/renderer/src/components/GitLabItemDialog.tsx
  • src/renderer/src/components/feature-interaction-writer-boundaries.test.ts
  • src/renderer/src/components/gitlab-item-dialog/gitlab-conversation-tab.tsx
  • src/renderer/src/components/gitlab-item-dialog/gitlab-description-tab.tsx
  • src/renderer/src/components/gitlab-item-dialog/gitlab-files-tab.tsx
  • src/renderer/src/components/gitlab-item-dialog/gitlab-item-dialog-types.ts
  • src/renderer/src/components/gitlab-item-dialog/gitlab-item-dialog-view.tsx
  • src/renderer/src/components/gitlab-item-dialog/gitlab-pipeline-tab.tsx
  • src/renderer/src/components/gitlab-item-dialog/use-gitlab-details-editing.ts
  • src/renderer/src/components/gitlab-item-dialog/use-gitlab-item-dialog-effects.ts
  • src/renderer/src/components/gitlab-item-dialog/use-gitlab-item-dialog-state.ts
  • src/renderer/src/components/gitlab-item-dialog/use-gitlab-pipeline-actions.ts
  • src/renderer/src/components/gitlab-item-dialog/use-gitlab-primary-actions.ts
  • src/renderer/src/components/gitlab-item-dialog/use-gitlab-review-actions.ts
  • src/renderer/src/components/task-drawer-source-boundary.test.ts
ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: b3c95e61-ffc3-4299-921b-45a173daa09c

📥 Commits

Reviewing files that changed from the base of the PR and between 953114c and 7e90334.

📒 Files selected for processing (16)
  • config/max-lines-baseline.txt
  • src/renderer/src/components/GitLabItemDialog.tsx
  • src/renderer/src/components/feature-interaction-writer-boundaries.test.ts
  • src/renderer/src/components/gitlab-item-dialog/gitlab-conversation-tab.tsx
  • src/renderer/src/components/gitlab-item-dialog/gitlab-description-tab.tsx
  • src/renderer/src/components/gitlab-item-dialog/gitlab-files-tab.tsx
  • src/renderer/src/components/gitlab-item-dialog/gitlab-item-dialog-types.ts
  • src/renderer/src/components/gitlab-item-dialog/gitlab-item-dialog-view.tsx
  • src/renderer/src/components/gitlab-item-dialog/gitlab-pipeline-tab.tsx
  • src/renderer/src/components/gitlab-item-dialog/use-gitlab-details-editing.ts
  • src/renderer/src/components/gitlab-item-dialog/use-gitlab-item-dialog-effects.ts
  • src/renderer/src/components/gitlab-item-dialog/use-gitlab-item-dialog-state.ts
  • src/renderer/src/components/gitlab-item-dialog/use-gitlab-pipeline-actions.ts
  • src/renderer/src/components/gitlab-item-dialog/use-gitlab-primary-actions.ts
  • src/renderer/src/components/gitlab-item-dialog/use-gitlab-review-actions.ts
  • src/renderer/src/components/task-drawer-source-boundary.test.ts

📝 Walkthrough

Walkthrough

The 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
  • Create stacked PR
  • Commit on current branch

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant