Please comment to claim before starting; check current assignees and linked PRs.
Design authority: commit e17fc1d4c2 (#8755 / PR #20337), which shipped the 8-case Neo.code.LivePreview unit suite (seven Mermaid cases and one JavaScript dispatch control) on dev, and src/code/LivePreview.mjs (unchanged on dev).
Context
PR #21365 (Resolves #21351) temporarily added sideBySide and editorConfig unit cases to test/playwright/unit/code/LivePreview.spec.mjs. When commit 814692033c retired sideBySide on 19 Nov to keep tabbed LivePreview presentation on the home page, src/code/LivePreview.mjs and resources/css/src/code/LivePreview.css returned cleanly to dev, while test/playwright/unit/code/LivePreview.spec.mjs was deleted (deleted file mode 100644) instead of restored to dev (e17fc1d4c2).
The Problem
Deleting test/playwright/unit/code/LivePreview.spec.mjs drops 152 lines / 8 unit tests covering Neo.code.LivePreview Mermaid language dispatch, diagram reuse across edits, Markdown <-> Mermaid renderer switching, pending-import guards on tab leave or destroy, deferred unexposed measurement, and Markdown#processLivePreviewBlocks fence extraction and the JavaScript dispatch control (#8755 / PR #20337). CI stayed green on #21365 because deleting the spec file removed the tests while src/code/LivePreview.mjs remained untouched.
The Architectural Reality
src/code/LivePreview.mjs, src/component/wrapper/Mermaid.mjs, and src/component/Markdown.mjs on #21365 equal dev. Restoring test/playwright/unit/code/LivePreview.spec.mjs from e17fc1d4c2 reinstates the exact unit coverage with zero runtime change.
The Fix
Once #21365 merges to dev, restore test/playwright/unit/code/LivePreview.spec.mjs from commit e17fc1d4c2 (git checkout e17fc1d4c2 -- test/playwright/unit/code/LivePreview.spec.mjs) and verify all 8 unit tests pass.
A disposable checkout at 1e6fb3262d passed all 8 cases with the exact restored file. For a fresh checkout, run npm run bundle-marked before the focused unit command below.
Decision Record impact: none.
Acceptance Criteria
Out of Scope
Re-introducing sideBySide or editorConfig on Neo.code.LivePreview; modifying src/code/LivePreview.mjs or apps/portal/view/home/*.
Avoided Traps
- Running default
npx playwright test without -c test/playwright/playwright.config.unit.mjs.
- Opening a PR before #21365 merges (which would conflict on
test/playwright/unit/code/LivePreview.spec.mjs).
Related
Parent #20682 · blocked by #21351 (PR #21365) · original Mermaid preview spec PR #20337 (#8755).
unowned-rationale: Ready for a contributor or any maintainer seat once #21365 merges; maintainers provide planning and review.
Live latest-open + closed sweep: checked latest 20 open (81 open, red band — folds under owning epic #20682 with 5 subs) + open and closed search ("LivePreview.spec.mjs", #21351 and #8755 body read) at 2026-11-19T04:40Z; no duplicate or prior exclusion found. A2A in-flight sweep: latest 30 messages, all read-states, at 04:40Z: no claim. MC sweep: "LivePreview.spec.mjs deleted Mermaid unit spec", 5 results (#8755/#20337 origin turns), no prior exclusion. Own-assignment sweep: 2 open (#21190, #20883), none overlapping. Structure-map: N/A, restores an existing unit spec under test/playwright/unit/code/.
Origin Session ID: 8d86fc2d-c555-43ca-b46d-9723f9e0a15d
Retrieval Hint: "LivePreview.spec.mjs Mermaid source deleted 814692033c 21365"
🧭 Maryam · @neo-gemini-maryam · Gemini 4 Carbon · Antigravity
Please comment to claim before starting; check current assignees and linked PRs.
Design authority: commit
e17fc1d4c2(#8755 / PR #20337), which shipped the 8-caseNeo.code.LivePreviewunit suite (seven Mermaid cases and one JavaScript dispatch control) ondev, andsrc/code/LivePreview.mjs(unchanged ondev).Context
PR #21365 (
Resolves #21351) temporarily addedsideBySideandeditorConfigunit cases totest/playwright/unit/code/LivePreview.spec.mjs. When commit814692033cretiredsideBySideon19 Novto keep tabbedLivePreviewpresentation on the home page,src/code/LivePreview.mjsandresources/css/src/code/LivePreview.cssreturned cleanly todev, whiletest/playwright/unit/code/LivePreview.spec.mjswas deleted (deleted file mode 100644) instead of restored todev(e17fc1d4c2).The Problem
Deleting
test/playwright/unit/code/LivePreview.spec.mjsdrops 152 lines / 8 unit tests coveringNeo.code.LivePreviewMermaid language dispatch, diagram reuse across edits, Markdown <-> Mermaid renderer switching, pending-import guards on tab leave or destroy, deferred unexposed measurement, andMarkdown#processLivePreviewBlocksfence extraction and the JavaScript dispatch control (#8755 / PR #20337). CI stayed green on #21365 because deleting the spec file removed the tests whilesrc/code/LivePreview.mjsremained untouched.The Architectural Reality
src/code/LivePreview.mjs,src/component/wrapper/Mermaid.mjs, andsrc/component/Markdown.mjson #21365 equaldev. Restoringtest/playwright/unit/code/LivePreview.spec.mjsfrome17fc1d4c2reinstates the exact unit coverage with zero runtime change.The Fix
Once #21365 merges to
dev, restoretest/playwright/unit/code/LivePreview.spec.mjsfrom commite17fc1d4c2(git checkout e17fc1d4c2 -- test/playwright/unit/code/LivePreview.spec.mjs) and verify all 8 unit tests pass.A disposable checkout at
1e6fb3262dpassed all 8 cases with the exact restored file. For a fresh checkout, runnpm run bundle-markedbefore the focused unit command below.Decision Record impact: none.
Acceptance Criteria
test/playwright/unit/code/LivePreview.spec.mjsis restored to itse17fc1d4c2contents ondevafter PR #21365 merges.npx playwright test test/playwright/unit/code/LivePreview.spec.mjs -c test/playwright/playwright.config.unit.mjspasses all 8 unit cases.Out of Scope
Re-introducing
sideBySideoreditorConfigonNeo.code.LivePreview; modifyingsrc/code/LivePreview.mjsorapps/portal/view/home/*.Avoided Traps
npx playwright testwithout-c test/playwright/playwright.config.unit.mjs.test/playwright/unit/code/LivePreview.spec.mjs).Related
Parent #20682 · blocked by #21351 (PR #21365) · original Mermaid preview spec PR #20337 (#8755).
unowned-rationale: Ready for a contributor or any maintainer seat once #21365 merges; maintainers provide planning and review.
Live latest-open + closed sweep: checked latest 20 open (81 open, red band — folds under owning epic #20682 with 5 subs) + open and closed search ("LivePreview.spec.mjs", #21351 and #8755 body read) at 2026-11-19T04:40Z; no duplicate or prior exclusion found. A2A in-flight sweep: latest 30 messages, all read-states, at 04:40Z: no claim. MC sweep: "LivePreview.spec.mjs deleted Mermaid unit spec", 5 results (#8755/#20337 origin turns), no prior exclusion. Own-assignment sweep: 2 open (#21190, #20883), none overlapping. Structure-map: N/A, restores an existing unit spec under
test/playwright/unit/code/.Origin Session ID: 8d86fc2d-c555-43ca-b46d-9723f9e0a15d
Retrieval Hint: "LivePreview.spec.mjs Mermaid source deleted 814692033c 21365"
🧭 Maryam · @neo-gemini-maryam · Gemini 4 Carbon · Antigravity