Add Documents portal - #1738
Open
abbra wants to merge 7 commits into
Open
Add Documents portal#1738abbra wants to merge 7 commits into
abbra wants to merge 7 commits into
Conversation
added 7 commits
August 24, 2026 22:58
…x highlighting Pure TypeScript, zero runtime dependencies. Supports: - GFM tables, task lists, definition lists, blockquotes - Fenced code blocks with syntax highlighting - Mermaid diagrams (flowchart, sequence, gantt, pie, state, class, ER, git, mindmap, journey, quadrant, timeline, C4, sankey, xychart) - Math rendering (189484 ... 189484) - Footnotes, link references - Injection-safe HTML output Signed-off-by: Alexander Bokovoy <ab@vda.li>
- listDocuments, getDocumentTree, getDocument - createDocument, updateDocument, deleteDocument - getPublicDocument - Uses v5 API prefix separate from the default apiVersion Signed-off-by: Alexander Bokovoy <ab@vda.li>
Six action types for documents: LIST, TREE, GET, CREATE, UPDATE, DELETE Action creators with apiRequest pattern matching existing Freefeed conventions Reducers for async states and response data carriers Signed-off-by: Alexander Bokovoy <ab@vda.li>
- DocumentView: rendered markdown with per-block inline editing (click to edit, blur to save locally); toolbar with copy/export/import/slug/visibility - DocumentList: top bar with Browse dropdown showing user's document tree - DocumentsPage: orchestrates state, handles save/delete with tree refresh - PublicDocumentView: read-only public view at /docs/:user/:slug - Inline slug editing and visibility selector with default from user feed Signed-off-by: Alexander Bokovoy <ab@vda.li>
- Add /documents and /docs/:slug routes with lazy-loaded components - Add Documents nav link to the authenticated sidebar Signed-off-by: Alexander Bokovoy <ab@vda.li>
Replace hardcoded light-theme color fallbacks (--box-bg: #fff, --box-border: #ddd, etc.) with document-scoped CSS custom properties (--doc-bg, --doc-border, etc.) that are overridden in .dark-theme context using the app's dark-vars.scss SCSS variables. Light defaults stay as CSS var fallbacks for runtime theme switching without redefining every property. Signed-off-by: Alexander Bokovoy <ab@vda.li>
…ing styles Scope CSS custom properties at :root instead of .documents-page so PublicDocumentView inherits them too. Add dark-theme overrides for mermaid diagram SVG variables (--surface, --accent, --border, etc.) via SCSS dark-vars import. Add code block styling with --doc-code-bg that adapts to theme. Add syntax highlighting token colors (hl-kw, hl-str, hl-com, etc.) with GitHub-inspired light and dark variants. Signed-off-by: Alexander Bokovoy <ab@vda.li>
Author
|
Demo of how it looks like: https://youtu.be/GS7K76kAdq8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement UI for Documents management (FreeFeed/freefeed-server#702 and FreeFeed/freefeed-server#703) and Documents browsing.