Uh oh!
There was an error while loading. Please reload this page.
chore(main): split visual-smoke fixture into per-domain modules (arch R3) - #1243
Merged
Conversation
… behind a barrel Pure move of the #1 main-process hotspot (2538 lines) into a thin registry barrel at the original path (visual-smoke-fixture.ts, 689 lines) plus 6 per-domain seeder modules under visual-smoke/: - seed-helpers.ts shared spine (NOW, session-id consts, scenario sets, header/writeSession/writeJson) - scenarios-settings.ts settings/connections/plan/daily-review - scenarios-modules.ts skills-market + MCP - scenarios-artifacts.ts ArtifactPane seed + spec writer - scenarios-chat.ts turn/processing/streaming/permission/error + task-ledger + live-turn projections - scenarios-sessions.ts long-transcript / workstation-statuses / turn-control lineage / long-sidebar / stale The 4-symbol public surface (resolveVisualSmokeFixture, getVisualSmokeState, seedVisualSmokeFixture, VisualSmokeFixture) stays defined in the barrel, so the 3 non-test consumers' imports are byte-identical. bot-onboarding-visual-smoke.ts boundary left untouched. Zero behavior change: registry order stable, every scenario renders identically (alignment auditor clean across all 11 fixtures).
…plit modules Add __tests__/visual-smoke-fixture-source-helpers.ts, a renderer-shell- source-helpers-style aggregator that enumerates the barrel + all 6 visual-smoke/ domain files. Re-pin the two contracts that read the fixture source so the seeded-copy hygiene coverage follows the copy into its new homes: - visible-copy-hygiene-contract: FILES_TO_SCAN now spreads VISUAL_SMOKE_FIXTURE_SOURCE_REPO_PATHS instead of the single monolith - visual-smoke-fixture placeholder-copy check reads the combined source command-palette-a11y-copy-contract needs no change: its assertions target the barrel's scenario set + getVisualSmokeState switch, both unmoved.
Uh oh!
There was an error while loading. Please reload this page.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Round 3 of notes/frontend-architecture-map-2026-07-19.md: the 2538-line visual-smoke-fixture.ts god-file becomes a 689-line registry barrel + 6 domain modules (seed-helpers / settings / modules / artifacts / chat / sessions, 100-672 lines each). bot-onboarding-visual-smoke.ts boundary respected.
Gates (merged tree): desktop 2744 · ui 196 · typecheck · check-dead-css · knip ×2 = 0. Implemented by an opus worktree agent.