12 Commits

Author SHA1 Message Date
952387d50f feat: dark-tech UI redesign + markdown patch cards
Redesign the frontend with a dark-tech theme: add Tailwind + PostCSS,
design tokens, and shadcn-style primitives (Button/Card/Input/Dialog/
DropdownMenu/Tabs/ScrollArea/etc.); restyle the app shell, navigation,
sidebar tree, content view, markdown rendering, editors, modals and
settings panels. Behavior/props unchanged; Font Awesome replaced with
lucide-react.

Add the patch cards feature UI: patch-queries hooks and a PatchCards
component rendered below the markdown body, with an Add Patch button
and create/edit dialog.

Fix tree expandability: folders with an index page now expand on name
click (and navigate), and the chevron+folder icon is one larger toggle.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-16 17:28:13 +01:00
045c7c51d6 Security hardening: prevent stored XSS and render crashes
- MarkdownView: add rehype-sanitize between rehype-raw and rehype-katex
  to strip scripts/event-handlers/javascript: URLs from user-authored
  markdown (was stored XSS, also affected the public /pg/* route);
  keep className on code/span/div so KaTeX and syntax highlighting
  still work. Add rehype-sanitize ^6.0.0 to deps and lockfile.
- MarkdownContent / StandaloneMarkdownPage: parse markdown content via
  parseMarkdownContent() instead of an unguarded JSON.parse, so a single
  corrupt/legacy record no longer white-screens the whole page.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-16 16:12:56 +01:00
101666d26d upgrade react-query to v5 2025-05-09 00:44:53 +01:00
1ce2eebbfa improve: upgrade node to 20, upgrade react-query to v4 2025-04-27 00:36:42 +01:00
947b59e3ea add: template editor 2025-04-14 17:02:22 +01:00
ed13196ef8 improve: support todo check list in md 2025-01-08 14:30:50 +00:00
3f6461d17e add: tests 2024-12-09 08:53:03 +00:00
ba69541a7b improve: add production stage 2024-12-09 07:01:22 +00:00
0e6fd8409a improve: use react-query for caching 2024-12-08 17:11:14 +00:00
3c53ef7a87 fix mem leak & ui / preview for editor 2024-12-05 08:58:31 +00:00
d035a781ae auth & cache 2024-12-03 11:29:16 +00:00
8bbfc10a39 init 2024-12-03 00:38:56 +00:00