2.1 KiB
2.1 KiB
Task 11 report
Mapping
- Source common, Case, Reference, and Question fields → exact target labels, controls, order, loaded values, conditional resolution fields, and CSS classes.
- Source ordered text/rule/option/relation editors → presentation-owned add, remove, reorder, local IDs, limits, and accessibility names.
- Source document editor/status rail → source tabs, keyboard focus, working-copy status, dirty indicator, version/kind rail, and deferred workflow controls.
- Source instant preview → Content Format v1
projectWorkingCopyplus the sharedPublicRecordRenderer; no gateway preview mutation or parser/renderer duplication. - Source edit page → registered route input adaptation for the document ID.
- Task 10 provider seam → smallest generic provider-owned editor session (
saved,draft,status) retained across editor tabs.
TDD evidence
- RED:
corepack pnpm exec vitest run tests/features/tech-log/studio-editor-smoke.test.tsxfailed at the exact missingdocument-editor-screen.tsximport before test collection. - First GREEN: the same focused command passed 1 file / 5 tests.
- Focused regression: editor smoke plus
content-format.test.tsandpublic-render.test.tsxpassed 3 files / 41 tests. - Scope check:
git diff --checkpassed.
Files
- Added the 12 Task 11 component/page files under
src/features/tech-log/presentation/studio/. - Extended
studio-provider.tsxanduse-studio.tsonly with presentation-owned editor session state. - Added
tests/features/tech-log/studio-editor-smoke.test.tsx.
SHA
- Base:
887f5e6eb1a5ccdf4feab0b27fae1c5823233190. - Implementation: the commit containing this report, titled
feat: port TechLog Studio editors(final SHA recorded in the Task 11 handoff).
Deferred
- Save/conflict resolution, guarded navigation, validation, server preview, publish, and unpublish workflows remain deferred to Tasks 12/13. The source Save control is present but disabled until Task 12 supplies the workflow.
- Broad app/test types, lint, build, architecture, security, visual, and full-suite gates remain deferred to integrated Task 14 by user direction.