Skip to content

Canvas PR: 3 Documents Page Created#69

Draft
NeonRyan wants to merge 3 commits into
devfrom
canvas/DocumentsUpdate
Draft

Canvas PR: 3 Documents Page Created#69
NeonRyan wants to merge 3 commits into
devfrom
canvas/DocumentsUpdate

Conversation

@NeonRyan
Copy link
Copy Markdown
Collaborator

Description

Third of three PRs splitting the canvas-upgrade work. Base: canvas/WorkspaceUpdate (PR 2) — review after PR 1 and PR 2 merge, then rebase onto main.

What's in this PR

  • Documents (formerly Deliverables) drafting view
  • Multi-project document editor with template-based sections
  • Notion-style slash commands, version history, KaTeX math
  • Multiple templates: paper, slides, poster, CV, GRFP, IRB protocol, meeting prep, dissertation formatting, faculty hunt
  • Real LaTeX editor: CodeMirror 6 (stex syntax) + LaTeX.js (HTML preview) + LaTeX-Online API (real pdflatex PDF compilation)
  • Documents tab in shared AppHeader (also restores the Workspace tab markup that was dropped in PR 2)
  • New deps: @codemirror/legacy-modes, @uiw/react-codemirror, katex, latex.js, rehype-katex, remark-math

Test plan

  • Switch to Documents tab -> template picker shows
  • Create a new doc from any template -> sections appear
  • Type / in a section -> slash command menu opens
  • LaTeX widget renders math inline
  • Version history captures saves
  • arXiv search returns results
  • Switching projects in sidebar updates the active doc
  • LaTeX editor (CodeMirror) syntax-highlights stex
  • LaTeX preview renders via LaTeX.js

Issues

Other Notes

NeonRyan added 3 commits May 12, 2026 11:11
First of three PRs splitting the canvas-upgrade work for review (per Daniel's request). This PR lays down the canvas page shell — shared AppHeader, sidebar wiring, theme integration — and ships the Insights view on its own. Workspace (PR 2) and Documents (PR 3) follow.

Includes:
- Shared AppHeader component (Home button + view tabs + theme toggle), used here on the canvas page; Chat/Home pages can adopt it incrementally.
- Insights view with cards/tasks toggle, per-task status (open / in-progress / completed / abandoned), filter chips, sort, pinning, and source-quote expansion. Stats roll up at the task level per Daniel's feedback.
- "Ask follow-up" and "Send to Kanban" actions stash state so PR 2's Kanban widget picks up work transferred from Insights with zero extra wiring.
- Welcome tour trimmed to PR 1 scope (Insights only).
- CanvasPage.css ships the full design-system tokens up front to avoid a giant CSS diff in PR 2/3; styles for not-yet-rendered components are inert.

Sidebar / ChatPage / HomePage are intentionally untouched in this PR — those header-standardization changes can land separately to keep this diff focused.
Second of three PRs splitting the canvas-upgrade work. Stacks on PR 1 (canvas/InsightsUpdate) and adds the Workspace view with the full widget system. Documents (LaTeX editor + templates) follows in PR 3.

Includes:
- WorkspaceView with drag-and-drop reordering, S/M/L size cycling, preset starting points, and persistent layout in localStorage.
- 20+ widgets: Bibliography, Kanban, Pomodoro, Writing tracker, Deadlines, Budget, Reading Queue, Notes, Habits, Goals, Meetings, Outline, Highlights, LaTeX, Calendar, Documenter, Activity, PhD Journey, PhD Resources.
- Three "anti-yes-man" critic widgets — Reviewer 2, Devil's Advocate, Scope Realism — tuned to push back on the user's thinking rather than validate it (Daniel's framing).
- Modal system: add-citation, add-task, add-deadline, log-words, confirm-remove, reading-paper, budget-item, note, habit, goal, meeting, palette, command palette, global search.
- Cmd/Ctrl+K command palette and Cmd/Ctrl+/ global content search across all widget state.
- Workspace tab in shared AppHeader.

Documents view + LaTeX drafting lands in PR 3.
@NeonRyan NeonRyan changed the title Canvas PR:3 Documents Page Created Canvas PR: 3 Documents Page Created May 12, 2026
@NeonDaniel NeonDaniel changed the base branch from main to dev May 19, 2026 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant