Skip to content

Split GitHub project view read path - #17266

Merged
nwparker merged 66 commits into
mainfrom
ra/max-lines-bottom-29-project-view
Aug 30, 2026
Merged

nwparker merged 66 commits into
mainfrom
ra/max-lines-bottom-29-project-view

Conversation

@nwparker

@nwparker nwparker commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 0 0 0 0
Prod 13 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1873 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1781 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​92

Summary

  • split the 1,801-line GitHub ProjectV2 read path into a 41-line exact facade plus 11 focused cache, normalization, query, pagination, table, discovery, and reference modules
  • preserve host-aware GitHub.com/GHES routing, rate-limit accounting, owner and parent-field capability caches, Promise ordering, GraphQL queries, normalization, error behavior, and the exact 32-symbol public facade
  • reduce the max-lines baseline from 58 entries to 57; every new TypeScript module is at most 242 lines

Stacked on #17263.

Validation

  • pnpm tc
  • focused project-view and mutation suite: 5 files, 49 tests passed
  • broader IPC, runtime RPC, renderer coordination/table/concurrency, and web preload suite: 11 files, 102 tests passed
  • direct Oxlint with --deny-warnings
  • pnpm run check:code-quality:changed
  • pnpm run check:max-lines-ratchet — 57 grandfathered suppressions
  • pnpm run check:runtime-electron-ratchet
  • pnpm run check:reliability-gates
  • max-lines ratchet characterization: 15 tests passed
  • changed-file formatting and git diff --check
  • exact 32-symbol facade, 67 declaration bodies/initializers, 347 runtime literals, 69 non-suppression comments, singleton cache ownership, and 12-node/24-edge acyclic graph reconciliation

Visual proof is N/A because this is an internal GitHub project read-path decomposition with no intended rendered UI change.

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

# Conflicts:
#	src/main/browser/cdp-bridge.ts
…ax-lines-bottom-25-remote-terminal-multiplexer
…9-project-view

# 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-28-web-runtime-session to main August 30, 2026 03:22
@nwparker
nwparker merged commit ad8e71e 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 9 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: b01575f2-77f2-4e0c-8085-9d7046bd0d8b

📥 Commits

Reviewing files that changed from the base of the PR and between 07652e2 and c992d20.

📒 Files selected for processing (13)
  • config/max-lines-baseline.txt
  • src/main/github/project-view.ts
  • src/main/github/project-view/project-view-cache.ts
  • src/main/github/project-view/project-view-config.ts
  • src/main/github/project-view/project-view-discovery.ts
  • src/main/github/project-view/project-view-field-normalization.ts
  • src/main/github/project-view/project-view-item-normalization.ts
  • src/main/github/project-view/project-view-item-page.ts
  • src/main/github/project-view/project-view-items.ts
  • src/main/github/project-view/project-view-listing.ts
  • src/main/github/project-view/project-view-query-fragments.ts
  • src/main/github/project-view/project-view-reference.ts
  • src/main/github/project-view/project-view-table.ts
ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: d5eb8961-d8d7-488f-887f-89ef753d0f64

📥 Commits

Reviewing files that changed from the base of the PR and between 07652e2 and c992d20.

📒 Files selected for processing (13)
  • config/max-lines-baseline.txt
  • src/main/github/project-view.ts
  • src/main/github/project-view/project-view-cache.ts
  • src/main/github/project-view/project-view-config.ts
  • src/main/github/project-view/project-view-discovery.ts
  • src/main/github/project-view/project-view-field-normalization.ts
  • src/main/github/project-view/project-view-item-normalization.ts
  • src/main/github/project-view/project-view-item-page.ts
  • src/main/github/project-view/project-view-items.ts
  • src/main/github/project-view/project-view-listing.ts
  • src/main/github/project-view/project-view-query-fragments.ts
  • src/main/github/project-view/project-view-reference.ts
  • src/main/github/project-view/project-view-table.ts

📝 Walkthrough

Walkthrough

The ProjectV2 implementation was split into modules for GraphQL query construction, data normalization, item retrieval, caching, view configuration, table loading, reference resolution, and project discovery. The existing project-view.ts entry point now re-exports these APIs. The refactor adds bounded host-scoped caches, paginated project and item queries, parent-field fallback handling, validation, structured errors, and test-only cache helpers.

✨ 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

* Split telemetry event schema responsibilities

* Split resource usage status responsibilities

* Split remote terminal multiplexer responsibilities

* Split Git worktree responsibilities

* Split Codex hook service responsibilities

* Keep mirrored hook trust type private

* Split web runtime session responsibilities

* Split GitHub project view read path

* 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