Add transcription architecture and diagrams#501
Conversation
closes #98 Add ARCHITECTURE.md and DIAGRAMS.md for the simple-transcription component. These docs describe component composition, visual regions, data ownership and truth locations, minimal knowledge boundaries, and core event contracts. DIAGRAMS.md provides mermaid diagrams for composition, data ownership, and event flow to aid integration with TPEN (interfaces/transcription/index.html, components/simple-transcription/index.js, components/projects/project-header.js).
|
For this one confirm you mean Static Review Comments
Major Issues 🟠Issue 1:
|
Documentation updates to reflect that tpen-simple-transcription uses raw <img> elements (#imgTop, #imgBottom) for image display and manages them via adjustImages()/highlightActiveLine()/resetImagePositions(), rather than using tpen-line-image or tpen-image-fragment. Updated ARCHITECTURE.md to clarify workspace composition, state ownership, and the responsibilities of tpen-transcription-block (line input rendering, primary mutator of TPEN.activeLineIndex via moveToLine(), and emission of navigation events). DIAGRAMS.md was updated to match these changes (diagram nodes for #imgTop/#imgBottom and adjusted event arrows for transcription-block and header).
There was a problem hiding this comment.
Pull request overview
This PR adds two new documentation files (ARCHITECTURE.md and DIAGRAMS.md) for the simple-transcription component, addressing issue #98. The docs describe the transcription interface's component composition, data ownership, minimal knowledge boundaries, event contracts, and include Mermaid diagrams for visual reference.
Changes:
- Added
ARCHITECTURE.mddocumenting component inventory, visual regions, data truth locations, minimal knowledge boundaries, and event contracts. - Added
DIAGRAMS.mdwith Mermaid flowcharts for composition, data ownership, and event flow.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
components/simple-transcription/ARCHITECTURE.md |
New architecture doc describing component structure, data ownership, and event contracts |
components/simple-transcription/DIAGRAMS.md |
New diagrams doc with Mermaid flowcharts for composition, data ownership, and event flow |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
closes #98
Add ARCHITECTURE.md and DIAGRAMS.md for the simple-transcription component. These docs describe component composition, visual regions, data ownership and truth locations, minimal knowledge boundaries, and core event contracts. DIAGRAMS.md provides mermaid diagrams for composition, data ownership, and event flow to aid integration with TPEN (interfaces/transcription/index.html, components/simple-transcription/index.js, components/projects/project-header.js).