Commit History
-
fix(docker): invoke playwright CLI by package path to survive --omit=dev
`npm install --omit=dev` in the production stage skips @playwright/test but leaves a dangling `.bin/playwright` symlink that used to resolve to it. `npx playwright` then fails with "playwright: not found" even though the runtime `playwright` package is installed. Call `node node_modules/playwright/cli.js install chromium` directly to bypass the `.bin/` lookup and install the Chromium browser from the production `playwright` package. Made-with: Cursord13608d -
fix(docker): symlink frontend node_modules into /app/backend so shared imports resolve
The frontend build aliases `#shared` to `/app/backend/src/shared/`. Files there import npm packages (e.g. shiki) that are declared in frontend/package.json. Rollup walks up from the shared file looking for node_modules and never reaches /app/frontend/ in the Docker layout, which breaks the build with: Rollup failed to resolve import "shiki" from /app/backend/src/shared/shiki-config.ts Local dev avoids this because both workspaces install node_modules side by side. The symlink reproduces that layout inside the frontend-build stage without pulling any of the backend runtime deps into the frontend bundle. Made-with: Cursor1f03cd7
-
refactor: remove MUI, unify publisher pipeline, add shared component registry
Phase 1 - Publisher pipeline: - Extract ~370 lines of inline CSS from html-renderer.ts into _publisher.css - Create shared/component-defs.ts as single source of truth for component definitions - Replace 6 regex blocks in postProcess() with linkedom DOM manipulation - Add GET /api/preview/:docName for testing renders without publishing - Add 12 snapshot tests for each postProcess transformation (46 tests total) Phase 2 - Remove MUI: - Replace all MUI components with native HTML elements + custom CSS - Create _ui.css with editor chrome styles using --ed-* CSS tokens - Create Tooltip.tsx using Floating UI (lightweight replacement) - Replace @mui/icons-material with lucide-react - Delete theme.ts, remove @mui/* and @emotion/* dependencies Phase 3 - Documentation: - Add docs/ARCHITECTURE.md covering CSS layers, HF Spaces constraints, shared registry, publisher pipeline, and test coverage Made-with: Cursord15d7f7 -
fix: enable PDF generation by adding playwright dependency
- Add playwright as a production dependency in backend - Set PLAYWRIGHT_BROWSERS_PATH in Dockerfile for reliable browser discovery - Remove silent fallback on playwright install to surface errors - Remove non-functional PDF button from editor hero (only relevant in published output) - Respect showPdf frontmatter flag in publisher pipeline Made-with: Cursor8d245e0
-
fix: use multi-stage Docker build for backend compilation
TypeScript is a devDependency, so npx tsc failed when installed with --omit=dev. Now using a dedicated backend-build stage that installs all deps, compiles TS, then only the dist/ output is copied into the final production image. Made-with: Cursor8d7ed3d -
fix: copy .npmrc into Docker frontend build stage
The .npmrc with legacy-peer-deps is needed for the collaboration-cursor v2 peer dep conflict with core v3. Made-with: Cursorbeaac45 -
feat: add Playwright + Chromium to Dockerfile for PDF generation
- Install system dependencies for headless Chromium - Install Playwright Chromium browser during build - Copy CSS source files for the HTML renderer - Add ENABLE_PDF=true environment variable - Install fonts for proper text rendering Made-with: Cursor3d8d74d -
chore: initial commit
Collaborative article editor with TipTap, Yjs, and HF integration. Features: - Real-time collaborative editing (Hocuspocus + Yjs) - Notion-like block handles, slash commands, bubble toolbar - Academic citations (Citation.js + DOI/BibTeX) - KaTeX math, code highlighting, tables - Custom component system (accordion, note, quote, stack, etc.) - LLM agent sidebar (OpenRouter) - Image upload with HF dataset storage - MDX export - Frontmatter management (title, authors, affiliations) - Comments system Made-with: Cursor561e6f0