Repository navigation
refactor(web): organize API owners and session synchronization - #43403
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
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
Group the web client and session synchronization files by the feature they own so their layout is easier to navigate.
What Changed
Move 162 production modules into feature folders and update their callers. Replace forwarding imports/aliases in seven owners with direct defining-owner imports. Give existing UI-state merging and browser-local UI reads their own concrete owner, with direct imports from its callers. Preserve substantive bootstrap and composition modules.
Apply the repository test policy: retain 42 authored registrations, remove 138 rejected registrations (including one incoming clipboard case), retire 36 whole test files and four unused support files, and move ten retained test files plus one harness. Update active selectors, timing keys, static-analysis baselines and storage path records; record coverage losses while preserving dated evidence.
Preserve the incoming web clipboard paste fix, Windows terminal and Claude approval fixes, other main changes and independent test removals. The removed new clipboard case loses its mocked regression alarm for an event image when the async Clipboard API is absent; no equivalent remaining test is claimed.
Why
The web API and session synchronization directories contain many unrelated files at the same level. These groups make each feature's implementation and dependencies easier to find.
Linked Issue
Maintainer-directed module layout cleanup.
Visual Proof
N/A — module placement and import ownership changes preserve the existing UI and interaction behavior.
Testing
pnpm check:changed --base=51fbddeec8918ca12a84ef23d494a0335e659edc --maxWorkers=2: all 41 checks passed, including broad affected unit tests.No tests added. Independent raw/stage/tree, production-body/request and test/support/resource audits passed. The rebased union preserves incoming entries and deletions. Linux/Windows and paired/SSH runtime journeys rely on hosted validation; no local UI journey is claimed.
Risk
Level: Medium. An incorrect import or selector could break a web feature or leave a check pointing to an old file. Whole-body and request-owner audits, focused tests, typechecks and desktop/web builds validate the composition. A plain revert restores this batch.
Review
Independent production, test/support/resource and incoming-main union audits passed. Production bodies and request kinds/owners are conserved after the approved concrete-owner edits. Browser/paired/SSH contracts, platform branches, agent compatibility, saved-data keys and UI behavior remain unchanged; no new polling, processes or render work. Targeted initialization/cycle checks passed, including the UI-state owner. The earlier semantic source-reading and enclosing-transaction qualifications remain; static conservation is supplemented by typechecks, builds, retained tests and hosted checks.
Agent skill upstream boundary
Notes
The plan and evidence remain local and ignored.
Checklist