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:
11
docs/adr/0017-shared-dashboard-sections-format-filter.md
Normal file
11
docs/adr/0017-shared-dashboard-sections-format-filter.md
Normal 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
|
||||
Reference in New Issue
Block a user