feat(kb): KB UI/UX overhaul - rendered markdown, three-pane reading view, tree nav #71
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/kb-ui-overhaul"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Rebuilds the KB reading and authoring experience (design + plan in
dev-docs/kb-ui-overhaul-design.md/-plan.md).Reading view (three panes)
KbCategoryparent_id hierarchy; current article highlighted. Also on the article list page.<pre>), via pulldown-cmark sanitized with ammonia.thumbs-up/thumbs-downrating with counts, status + visibility badges, Edit, density toggle, and a fullscreen read-mode toggle. Secondary header items collapse into an overflow dropdown when the row is too narrow.Authoring form
New modules
src/utils/markdown.rs(render + sanitize),src/utils/prefs.rs(localStorage),src/components/collapsible_rail.rs,src/components/overflow_actions.rs. Adds theammoniadependency.Tests / gates
Unit tests cover markdown rendering + sanitization (script/onerror/javascript: stripped), breadcrumb path resolution, the tree builder, and the slug-touched behavior. Locally green:
cargo check --target wasm32-unknown-unknown,cargo clippy --all-targets -- -D warnings,cargo test --lib(58 passed),cargo fmt --all --check.Known minor follow-ups (not blocking)