Repository navigation
refactor(renderer): organize browser and terminal modules by owner - #43476
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
6ffebc4 to
ffc5391
Compare
Brings the branch up to upstream 8abbc91. Resolves one conflict: - TerminalWorktreeSplitSurface.tsx: take upstream's new path for terminal-worktree-prewarm (stablyai#43476) and keep the grid view imports. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Upstream regrouped tests/e2e by feature (stablyai#43628) and moved renderer, IPC and web modules into owner folders (stablyai#43339, stablyai#43403, stablyai#43435, stablyai#43476, stablyai#43528, stablyai#43575, stablyai#43611). Fork imports, including string vi.mock paths, now point at the moved modules (fork-follow-upstream-moves.mjs FIX lines). The fork's own e2e helpers moved with tests/e2e/helpers into tests/e2e/desktop/electron-fixtures (GONE lines): the fork specs import them there, read the fixture script from that folder, take expect from @stablyai/playwright-test since orca-app no longer re-exports it, and the scenario context reads upstream's file-explorer helper from tests/e2e/editor/file-explorer.
Upstream regrouped tests/e2e by feature (stablyai#43628) and moved renderer, IPC and web modules into owner folders (stablyai#43339, stablyai#43403, stablyai#43435, stablyai#43476, stablyai#43528, stablyai#43575, stablyai#43611). Fork imports, including string vi.mock paths, now point at the moved modules (fork-follow-upstream-moves.mjs FIX lines). The fork's own e2e helpers moved with tests/e2e/helpers into tests/e2e/desktop/electron-fixtures (GONE lines): the fork specs import them there, read the fixture script from that folder, take expect from @stablyai/playwright-test since orca-app no longer re-exports it, and the scenario context reads upstream's file-explorer helper from tests/e2e/editor/file-explorer.
Upstream regrouped tests/e2e by feature (stablyai#43628) and moved renderer, IPC and web modules into owner folders (stablyai#43339, stablyai#43403, stablyai#43435, stablyai#43476, stablyai#43528, stablyai#43575, stablyai#43611). Fork imports, including string vi.mock paths, now point at the moved modules (fork-follow-upstream-moves.mjs FIX lines). The fork's own e2e helpers moved with tests/e2e/helpers into tests/e2e/desktop/electron-fixtures (GONE lines): the fork specs import them there, read the fixture script from that folder, take expect from @stablyai/playwright-test since orca-app no longer re-exports it, and the scenario context reads upstream's file-explorer helper from tests/e2e/editor/file-explorer.
Upstream regrouped tests/e2e by feature (stablyai#43628) and moved renderer, IPC and web modules into owner folders (stablyai#43339, stablyai#43403, stablyai#43435, stablyai#43476, stablyai#43528, stablyai#43575, stablyai#43611). Fork imports, including string vi.mock paths, now point at the moved modules (fork-follow-upstream-moves.mjs FIX lines). The fork's own e2e helpers moved with tests/e2e/helpers into tests/e2e/desktop/electron-fixtures (GONE lines): the fork specs import them there, read the fixture script from that folder, take expect from @stablyai/playwright-test since orca-app no longer re-exports it, and the scenario context reads upstream's file-explorer helper from tests/e2e/editor/file-explorer.
Upstream regrouped tests/e2e by feature (stablyai#43628) and moved renderer, IPC and web modules into owner folders (stablyai#43339, stablyai#43403, stablyai#43435, stablyai#43476, stablyai#43528, stablyai#43575, stablyai#43611). Fork imports, including string vi.mock paths, now point at the moved modules (fork-follow-upstream-moves.mjs FIX lines). The fork's own e2e helpers moved with tests/e2e/helpers into tests/e2e/desktop/electron-fixtures (GONE lines): the fork specs import them there, read the fixture script from that folder, take expect from @stablyai/playwright-test since orca-app no longer re-exports it, and the scenario context reads upstream's file-explorer helper from tests/e2e/editor/file-explorer.
Upstream regrouped tests/e2e by feature (stablyai#43628) and moved renderer, IPC and web modules into owner folders (stablyai#43339, stablyai#43403, stablyai#43435, stablyai#43476, stablyai#43528, stablyai#43575, stablyai#43611). Fork imports, including string vi.mock paths, now point at the moved modules (fork-follow-upstream-moves.mjs FIX lines). The fork's own e2e helpers moved with tests/e2e/helpers into tests/e2e/desktop/electron-fixtures (GONE lines): the fork specs import them there, read the fixture script from that folder, take expect from @stablyai/playwright-test since orca-app no longer re-exports it, and the scenario context reads upstream's file-explorer helper from tests/e2e/editor/file-explorer.
ELI5
Browser and terminal code now lives beside the feature it implements, making the remaining renderer folders easier to navigate without changing how the app works.
What Changed
Why
The browser and terminal roots mixed unrelated responsibilities. Grouping host/guest integration, navigation, workspace mounting, prewarming, snapshots, and tab lifecycle with their existing owners completes this cohesive layout batch while preserving initialized stores, hook ownership, lazy imports, and runtime behavior.
Linked Issue
Internal continuation of the module ownership cleanup; no separate issue.
Visual Proof
N/A — file ownership and import paths change; rendered output and interactions are preserved.
Testing
pnpm tc, scoped oxlint, desktop build, and web build passed locally on macOS.ORCA_BACKGROUND_LAUNCH=1.pnpm check:changed --maxWorkers=2: all 40 checks passed for the completed-profile fixture repair. Final required checks passed after the upstream carry: all 40 checks in 194 seconds, including affected unit tests, immediately before push.Risk
Level: Medium
A missed import, mock, or build-resource path could prevent a browser or terminal feature from loading. Both builds, affected tests, complete import-contact audits, and hosted checks cover these boundaries. Production logic, persisted data, remote protocols, and platform branches are unchanged. A plain revert restores the prior layout.
Review
Two independent source/resource/test audits accepted the composed change. A separate rebase audit verified that current main's test and metadata removals survive exactly.
Agent skill upstream boundary
Checklist
Hosted validation update: a shared orchestration cleanup assertion passed on the first job retry after both pristine-base and PR controls passed all seven cases locally. The changed E2E lane exposed an existing completed-profile omission: the worktree-card intro intercepted terminal setup clicks. The profile now explicitly marks that intro seen. Pristine base reproduced 14 exact setup failures; the repaired head passed all hosted checks (35 successful, 24 skipped), including E2E. A later rebase carries upstream close-dialog/sleep changes into their new owners; final checks are rerun for that combined head.