Skip to content

Split Linear item drawer responsibilities - #17231

Merged
nwparker merged 51 commits into
mainfrom
ra/max-lines-bottom-22-linear-item-drawer
Aug 30, 2026
Merged

nwparker merged 51 commits into
mainfrom
ra/max-lines-bottom-22-linear-item-drawer

Conversation

@nwparker

@nwparker nwparker commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​11 $\color{#cf222e}{\Huge{\mathbf{−}}}$​8 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3
Prod 10 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1704 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1467 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​237

Summary

  • split the Linear item drawer into focused controller, layouts, sheet, footer, controls, and types modules
  • preserve the existing LinearItemDrawer facade and its seven-name export surface
  • remove the resolved drawer suppression from the max-lines baseline and retarget source-boundary tests to the new owners

Preservation audit

  • exact JSX, hook sequence/counts, prior callee counts, runtime literals/design tokens, and non-suppression comments
  • unchanged hook ownership: the edit controller is called unconditionally from the existing LinearIssueEditSection fiber
  • independent semantic and structural audits found no actionable behavior drift or module cycles
  • real-commit move residue matches the adjudicated temporary audit: 12 import/type/boundary artifacts vanished; composition plumbing accounts for appeared lines

Validation

  • pnpm tc
  • pnpm tc:web
  • focused Linear drawer/workspace suites: 5 files, 28 tests
  • broader Linear suite: 26 files, 140 tests
  • pnpm run check:code-quality:changed
  • pnpm check:max-lines-ratchet (64 grandfathered entries)
  • pnpm check:runtime-electron-ratchet
  • Electron/CDP validation in the intended worktree: real Tasks issue page plus the actual drawer component, including edit popovers, description, comments/footer, and workspace action
  • git diff --check

@greptile-apps

greptile-apps Bot commented Aug 29, 2026 •

Copy link
Copy Markdown

Greptile Summary

The PR splits the Linear item drawer into focused controller, layout, sheet, footer, controls, and type modules while retaining the existing facade and behavior.

  • Preserves drawer state hydration, mutations, comments, workspace actions, and source-context scoping.
  • Maintains the existing default, value, and type export surface for current importers.
  • Retargets source-boundary tests and removes the resolved max-lines baseline entry.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

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
Loading

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

…ax-lines-bottom-10-automation-dispatch-events
…lines-bottom-20-cdp-bridge

# Conflicts:
#	src/main/browser/cdp-bridge.ts
…2-linear-item-drawer

# 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-21-git-handler to main August 30, 2026 03:19
@nwparker
nwparker merged commit 7cef5f4 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 11 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: 6e085e72-bcaa-426a-8af8-00ce8ffaca01

📥 Commits

Reviewing files that changed from the base of the PR and between 91a35b9 and fc796da.

📒 Files selected for processing (12)
  • config/max-lines-baseline.txt
  • src/renderer/src/components/LinearItemDrawer.tsx
  • src/renderer/src/components/feature-interaction-writer-boundaries.test.ts
  • src/renderer/src/components/linear-item-drawer-comment-footer.tsx
  • src/renderer/src/components/linear-item-drawer-edit-chips-layout.tsx
  • src/renderer/src/components/linear-item-drawer-edit-controller.tsx
  • src/renderer/src/components/linear-item-drawer-edit-controls.tsx
  • src/renderer/src/components/linear-item-drawer-edit-properties-layout.tsx
  • src/renderer/src/components/linear-item-drawer-edit-section.tsx
  • src/renderer/src/components/linear-item-drawer-sheet.tsx
  • src/renderer/src/components/linear-item-drawer-types.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: 07db7618-d165-4be0-a44e-754ec92af534

📥 Commits

Reviewing files that changed from the base of the PR and between 91a35b9 and fc796da.

📒 Files selected for processing (12)
  • config/max-lines-baseline.txt
  • src/renderer/src/components/LinearItemDrawer.tsx
  • src/renderer/src/components/feature-interaction-writer-boundaries.test.ts
  • src/renderer/src/components/linear-item-drawer-comment-footer.tsx
  • src/renderer/src/components/linear-item-drawer-edit-chips-layout.tsx
  • src/renderer/src/components/linear-item-drawer-edit-controller.tsx
  • src/renderer/src/components/linear-item-drawer-edit-controls.tsx
  • src/renderer/src/components/linear-item-drawer-edit-properties-layout.tsx
  • src/renderer/src/components/linear-item-drawer-edit-section.tsx
  • src/renderer/src/components/linear-item-drawer-sheet.tsx
  • src/renderer/src/components/linear-item-drawer-types.ts
  • src/renderer/src/components/task-drawer-source-boundary.test.ts

📝 Walkthrough

Walkthrough

The 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
  • 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

* 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
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