feat(FN-2218): add Markdown/Raw toggle for task documents

- Add Markdown/Raw rendering toggle support to DocumentsView and TaskDocumentsTab for consistent document preview behavior
- Reuse workflow-style toggle UX and markdown CSS patterns to align with existing dashboard design conventions
- Add comprehensive tests for DocumentsView and TaskDocumentsTab toggle interactions and rendering states
- Update dashboard guide documentation to describe the new Markdown/Raw toggle behavior
This commit is contained in:
Fusion
2026-04-22 08:04:24 -07:00
committed by gsxdsm
parent 3afa378594
commit 5e62881d44
6 changed files with 597 additions and 13 deletions

View File

@@ -86,9 +86,19 @@ Features:
- Search documents across tasks
- Open project markdown files with inline preview
- Jump directly from a document group to the owning task detail modal
- Toggle between raw text and rendered markdown using the **Markdown/Plain** button
![Documents view](./screenshots/documents-view.png)
### Markdown Rendering
Documents view supports toggling between raw text and formatted markdown when viewing document content:
- **Raw mode** (default): Shows markdown syntax as plain text (e.g., `**bold**`)
- **Markdown mode**: Renders markdown with proper formatting (e.g., **bold**, headings, lists, tables)
The toggle button is accessible with `aria-pressed` for screen readers. Toggle state is scoped per-document, so switching between documents resets the view to raw mode.
### File Browser and Editor Tools
Fusion also includes file browsing/editing tools (for project root and task worktrees) in file/terminal workflows, so you can inspect generated artifacts and make targeted edits without leaving the dashboard.