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:
@@ -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
|
||||
|
||||

|
||||
|
||||
### 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.
|
||||
|
||||
Reference in New Issue
Block a user