Compare commits

...

2 commits

Author SHA1 Message Date
dc7d8f7ce8 fix pdf.js worker dual-instance when uploading via evidence-source.
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 2s
Alias and dedupe pdfjs-dist so GlobalWorkerOptions.workerSrc set in main.tsx
reaches getDocument in the linked evidence-source package; allow sibling fs roots.
2026-07-30 19:33:19 +02:00
6bc1650285 Sync CE-WP-0010 hub IDs after fix-consistency.
Write state_hub_workstream_id and task IDs from C-06 registration; regenerate WORK-RECORDS.md.
2026-07-30 19:21:37 +02:00
3 changed files with 112 additions and 1 deletions

91
WORK-RECORDS.md Normal file
View file

@ -0,0 +1,91 @@
# Work Records — citation-evidence
> Generated by `statehub fix-consistency` (CUST-WP-0061-T04, work-record
> stage 3). Do not edit by hand — edit the source file/block listed for
> each record and re-run fix-consistency to refresh this index. Archived
> workplans are omitted; closed decisions/intakes/engagements stay listed
> so recently-resolved work is still visible. [auto]
| Kind | ID | Status | Lane | Source |
| --- | --- | --- | --- | --- |
| workplan | CE-WP-0001 | done | — | workplans/CE-WP-0001-foundations.md |
| workplan | CE-WP-0002 | done | — | workplans/CE-WP-0002-pdf-review-slice.md |
| workplan | CE-WP-0003 | done | — | workplans/CE-WP-0003-form-binding-visual-guide.md |
| workplan | CE-WP-0004 | done | — | workplans/CE-WP-0004-citation-card-export.md |
| workplan | CE-WP-0005 | done | — | workplans/CE-WP-0005-demo-sessions-zip-archive.md |
| workplan | CE-WP-0006 | done | — | workplans/CE-WP-0006-forms-ux-refinements.md |
| workplan | CE-WP-0007 | done | — | workplans/CE-WP-0007-capture-view-polish.md |
| workplan | CE-WP-0008 | done | — | workplans/CE-WP-0008-capture-content-editing.md |
| workplan | CE-WP-0009 | done | — | workplans/CE-WP-0009-engine-workspace-wireup.md |
| workplan | CE-WP-0010 | proposed | — | workplans/CE-WP-0010-annotate-attributes-ux.md |
| task | CE-WP-0001-T01 | done | — | workplans/CE-WP-0001-foundations.md |
| task | CE-WP-0001-T02 | done | — | workplans/CE-WP-0001-foundations.md |
| task | CE-WP-0001-T03 | done | — | workplans/CE-WP-0001-foundations.md |
| task | CE-WP-0001-T04 | done | — | workplans/CE-WP-0001-foundations.md |
| task | CE-WP-0001-T05 | done | — | workplans/CE-WP-0001-foundations.md |
| task | CE-WP-0001-T06 | done | — | workplans/CE-WP-0001-foundations.md |
| task | CE-WP-0001-T07 | done | — | workplans/CE-WP-0001-foundations.md |
| task | CE-WP-0002-T01 | done | — | workplans/CE-WP-0002-pdf-review-slice.md |
| task | CE-WP-0002-T02 | done | — | workplans/CE-WP-0002-pdf-review-slice.md |
| task | CE-WP-0002-T03 | done | — | workplans/CE-WP-0002-pdf-review-slice.md |
| task | CE-WP-0002-T04 | done | — | workplans/CE-WP-0002-pdf-review-slice.md |
| task | CE-WP-0002-T05 | done | — | workplans/CE-WP-0002-pdf-review-slice.md |
| task | CE-WP-0002-T06 | done | — | workplans/CE-WP-0002-pdf-review-slice.md |
| task | CE-WP-0002-T07 | done | — | workplans/CE-WP-0002-pdf-review-slice.md |
| task | CE-WP-0002-T08 | done | — | workplans/CE-WP-0002-pdf-review-slice.md |
| task | CE-WP-0002-T09 | done | — | workplans/CE-WP-0002-pdf-review-slice.md |
| task | CE-WP-0003-T01 | done | — | workplans/CE-WP-0003-form-binding-visual-guide.md |
| task | CE-WP-0003-T02 | done | — | workplans/CE-WP-0003-form-binding-visual-guide.md |
| task | CE-WP-0003-T03 | done | — | workplans/CE-WP-0003-form-binding-visual-guide.md |
| task | CE-WP-0003-T04 | done | — | workplans/CE-WP-0003-form-binding-visual-guide.md |
| task | CE-WP-0003-T05 | done | — | workplans/CE-WP-0003-form-binding-visual-guide.md |
| task | CE-WP-0003-T06 | done | — | workplans/CE-WP-0003-form-binding-visual-guide.md |
| task | CE-WP-0003-T07 | done | — | workplans/CE-WP-0003-form-binding-visual-guide.md |
| task | CE-WP-0003-T08 | done | — | workplans/CE-WP-0003-form-binding-visual-guide.md |
| task | CE-WP-0004-T01 | done | — | workplans/CE-WP-0004-citation-card-export.md |
| task | CE-WP-0004-T02 | done | — | workplans/CE-WP-0004-citation-card-export.md |
| task | CE-WP-0004-T03 | done | — | workplans/CE-WP-0004-citation-card-export.md |
| task | CE-WP-0004-T04 | done | — | workplans/CE-WP-0004-citation-card-export.md |
| task | CE-WP-0004-T05 | done | — | workplans/CE-WP-0004-citation-card-export.md |
| task | CE-WP-0005-T01 | done | — | workplans/CE-WP-0005-demo-sessions-zip-archive.md |
| task | CE-WP-0005-T02 | done | — | workplans/CE-WP-0005-demo-sessions-zip-archive.md |
| task | CE-WP-0005-T03 | done | — | workplans/CE-WP-0005-demo-sessions-zip-archive.md |
| task | CE-WP-0005-T04 | done | — | workplans/CE-WP-0005-demo-sessions-zip-archive.md |
| task | CE-WP-0005-T05 | done | — | workplans/CE-WP-0005-demo-sessions-zip-archive.md |
| task | CE-WP-0005-T06 | done | — | workplans/CE-WP-0005-demo-sessions-zip-archive.md |
| task | CE-WP-0005-T07 | done | — | workplans/CE-WP-0005-demo-sessions-zip-archive.md |
| task | CE-WP-0005-T08 | done | — | workplans/CE-WP-0005-demo-sessions-zip-archive.md |
| task | CE-WP-0006-T01 | done | — | workplans/CE-WP-0006-forms-ux-refinements.md |
| task | CE-WP-0006-T02 | done | — | workplans/CE-WP-0006-forms-ux-refinements.md |
| task | CE-WP-0006-T03 | done | — | workplans/CE-WP-0006-forms-ux-refinements.md |
| task | CE-WP-0006-T04 | done | — | workplans/CE-WP-0006-forms-ux-refinements.md |
| task | CE-WP-0006-T05 | done | — | workplans/CE-WP-0006-forms-ux-refinements.md |
| task | CE-WP-0006-T06 | done | — | workplans/CE-WP-0006-forms-ux-refinements.md |
| task | CE-WP-0006-T07 | done | — | workplans/CE-WP-0006-forms-ux-refinements.md |
| task | CE-WP-0006-T08 | done | — | workplans/CE-WP-0006-forms-ux-refinements.md |
| task | CE-WP-0007-T01 | done | — | workplans/CE-WP-0007-capture-view-polish.md |
| task | CE-WP-0007-T02 | done | — | workplans/CE-WP-0007-capture-view-polish.md |
| task | CE-WP-0007-T03 | done | — | workplans/CE-WP-0007-capture-view-polish.md |
| task | CE-WP-0007-T04 | done | — | workplans/CE-WP-0007-capture-view-polish.md |
| task | CE-WP-0007-T05 | done | — | workplans/CE-WP-0007-capture-view-polish.md |
| task | CE-WP-0007-T06 | done | — | workplans/CE-WP-0007-capture-view-polish.md |
| task | CE-WP-0007-T07 | done | — | workplans/CE-WP-0007-capture-view-polish.md |
| task | CE-WP-0007-T08 | done | — | workplans/CE-WP-0007-capture-view-polish.md |
| task | CE-WP-0007-T09 | done | — | workplans/CE-WP-0007-capture-view-polish.md |
| task | CE-WP-0007-T10 | done | — | workplans/CE-WP-0007-capture-view-polish.md |
| task | CE-WP-0007-T11 | done | — | workplans/CE-WP-0007-capture-view-polish.md |
| task | CE-WP-0007-T12 | done | — | workplans/CE-WP-0007-capture-view-polish.md |
| task | CE-WP-0008-T01 | done | — | workplans/CE-WP-0008-capture-content-editing.md |
| task | CE-WP-0008-T02 | done | — | workplans/CE-WP-0008-capture-content-editing.md |
| task | CE-WP-0008-T03 | done | — | workplans/CE-WP-0008-capture-content-editing.md |
| task | CE-WP-0009-T01 | done | — | workplans/CE-WP-0009-engine-workspace-wireup.md |
| task | CE-WP-0009-T02 | done | — | workplans/CE-WP-0009-engine-workspace-wireup.md |
| task | CE-WP-0009-T03 | done | — | workplans/CE-WP-0009-engine-workspace-wireup.md |
| task | CE-WP-0009-T04 | done | — | workplans/CE-WP-0009-engine-workspace-wireup.md |
| task | CE-WP-0010-T01 | todo | — | workplans/CE-WP-0010-annotate-attributes-ux.md |
| task | CE-WP-0010-T02 | todo | — | workplans/CE-WP-0010-annotate-attributes-ux.md |
| task | CE-WP-0010-T03 | todo | — | workplans/CE-WP-0010-annotate-attributes-ux.md |
| task | CE-WP-0010-T04 | todo | — | workplans/CE-WP-0010-annotate-attributes-ux.md |
| task | CE-WP-0010-T05 | todo | — | workplans/CE-WP-0010-annotate-attributes-ux.md |
| task | CE-WP-0010-T06 | todo | — | workplans/CE-WP-0010-annotate-attributes-ux.md |
| task | CE-WP-0010-T07 | todo | — | workplans/CE-WP-0010-annotate-attributes-ux.md |

View file

@ -37,14 +37,26 @@ export default defineConfig({
"@binder": resolve(__dirname, "../evidence-binder/src"),
"@work": resolve(__dirname, "../citation-work/src/work"),
"@app": resolve(__dirname, "src/app"),
// Force a single pdfjs-dist instance across the umbrella and linked
// packages (evidence-source, citation-work, …). Each sibling has its
// own node_modules/pdfjs-dist path; without this alias Vite loads two
// module graphs, so main.tsx's GlobalWorkerOptions.workerSrc never
// reaches getDocument() inside evidence-source — upload fails with
// 'No "GlobalWorkerOptions.workerSrc" specified.'
"pdfjs-dist": resolve(__dirname, "node_modules/pdfjs-dist"),
},
// Belt-and-braces for the same dual-instance problem (React too).
dedupe: ["pdfjs-dist", "react", "react-dom"],
},
server: {
fs: {
// Allow Vite to serve /fixtures/pdfs/*.pdf from the project root.
// Allow Vite to serve /fixtures/pdfs/*.pdf from the project root,
// and to read linked sibling packages outside this repo root.
allow: [
resolve(__dirname),
resolve(__dirname, "../citation-engine"),
resolve(__dirname, "../evidence-source"),
resolve(__dirname, "../evidence-anchor"),
resolve(__dirname, "../evidence-binder"),
resolve(__dirname, "../citation-work"),
],

View file

@ -19,6 +19,7 @@ spec_refs:
- workplans/CE-WP-0003-form-binding-visual-guide.md
- workplans/CE-WP-0007-capture-view-polish.md
- docs/decisions/ADR-0004-pdf-viewer-library.md
state_hub_workstream_id: "e03c5d0c-36f9-49ef-8c6d-1dafe1fc781b"
---
# CE-WP-0010 — Annotate & Attributes UX
@ -115,6 +116,7 @@ T07 (tests + copy audit)
id: CE-WP-0010-T01
status: todo
priority: high
state_hub_task_id: "acacc281-7cc3-4833-a123-593494cafe24"
```
**Change:** In the session top bar tab list (`src/app/App.tsx`), set the
@ -139,6 +141,7 @@ are updated in the same task.
id: CE-WP-0010-T02
status: todo
priority: high
state_hub_task_id: "f8538031-3916-4f3b-a66c-2a5fd1d575f7"
```
**UI copy (drop “form”):**
@ -173,6 +176,7 @@ priority: high
id: CE-WP-0010-T03
status: todo
priority: high
state_hub_task_id: "5ba0e6dd-e2c9-4167-87fb-2ac7a7d81933"
```
Next to the **Evidence** caption in the right column of Annotate (and the
@ -210,6 +214,7 @@ id: CE-WP-0010-T04
status: todo
priority: high
depends_on: [T02]
state_hub_task_id: "3ca351b4-a039-48ad-a2a1-d95cc202b04f"
```
Same interaction model as T03, next to the **Attributes** caption:
@ -232,6 +237,7 @@ id: CE-WP-0010-T05
status: todo
priority: critical
depends_on: [T02, T03]
state_hub_task_id: "45e4a981-9985-49cd-bdbf-4ce8e29ae243"
```
**Problem:** Capture mode currently uses Collection | Viewer | FormPane with
@ -284,6 +290,7 @@ id: CE-WP-0010-T06
status: todo
priority: high
depends_on: [T05]
state_hub_task_id: "3451fe43-2909-4bf6-aa7c-72805239245b"
```
**Behaviour:** When an evidence item is active, draw a guide line from the
@ -323,6 +330,7 @@ id: CE-WP-0010-T07
status: todo
priority: medium
depends_on: [T01, T02, T03, T04, T05, T06]
state_hub_task_id: "cc6802be-c910-4b5b-aa36-0ba970aff4c4"
```
**Tests (prefer DOM / integration where layout matters):**