feat(dashboard): add pdf workspace via shared format filter

Why:
- Avoid a forked PDF UI while scoping Word vs PDF workflows.

Changes:
- formatFilter on shared tabs, PDF Workspace accordion tab, word-only defaults elsewhere.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-02 16:59:42 +03:30
parent 55907a8dec
commit 9ce2072c23
2 changed files with 247 additions and 127 deletions

View File

@@ -0,0 +1,11 @@
# Shared Dashboard sections with format filter
The PDF Workspace is not a second UI. Documents, Query, Benchmarks, and Chunk Preview are composed from shared section components in `index.html`, parameterized by a format filter (`word` | `pdf`). That keeps Word Tabs and the PDF Tab behaviorally identical while listing different documents, and avoids cloning the single-file Dashboard (ADR-0004).
Rejected: copy-paste PDF Tab (diverges immediately) and “filter props only with zero extraction” when it would still duplicate large JSX blocks.
## Consequences
- Refactor existing Tab bodies to call shared panels before adding the PDF Tab
- Filtering is client-side by filename suffix; APIs stay format-agnostic
- Report generator stays shared; PDF Experiments only get a source-format badge