Skip to content

feat(wiki-frontend): add homepage tabs, synthesis views, and fix definition rendering#57

Merged
charlie83Gs merged 1 commit intomainfrom
worktree-feat+wiki-improvements
Mar 29, 2026
Merged

feat(wiki-frontend): add homepage tabs, synthesis views, and fix definition rendering#57
charlie83Gs merged 1 commit intomainfrom
worktree-feat+wiki-improvements

Conversation

@charlie83Gs
Copy link
Copy Markdown
Contributor

Summary

  • Homepage tabs: Replace single node list with 3 tabbed lists using ?tab= query params (SSR, bookmarkable):
    • Most Connected (default) — nodes sorted by edge count
    • Most Facts — nodes sorted by fact count (new backend sort option)
    • Investigations — public synthesis documents
  • Synthesis detail page (/syntheses/[id]): Renders synthesis markdown with interactive paragraph-level fact linking via evidence dialog, referenced nodes sidebar, sub-syntheses support for super-syntheses
  • Definition rendering bug fix: Non-perspective node definitions now use parseMarkdownBlocks() instead of parseRichText(), fixing markdown headings and paragraphs being collapsed into a single text blob
  • Backend: Added fact_count sort option to NodeRepository.list_paginated() using node_facts junction table

Test plan

  • Backend tests pass (uv run --project libs/kt-db pytest libs/kt-db/tests/ -x -v)
  • API tests pass (uv run --project services/api pytest services/api/tests/ -x -v)
  • Wiki frontend builds successfully (pnpm build)
  • Astro type check passes (astro check — 0 errors)
  • Manual: verify homepage tabs switch correctly
  • Manual: verify synthesis detail page renders markdown with clickable evidence sections
  • Manual: verify node definition pages render markdown with proper headings/paragraphs

🤖 Generated with Claude Code

…nition rendering

- Replace single node list with 3 tabbed lists: Most Connected (default),
  Most Facts, and Investigations (public syntheses)
- Add synthesis detail page with markdown rendering, sentence-level fact
  linking via evidence dialog, referenced nodes sidebar
- Add API proxy route for client-side sentence fact fetching
- Fix definition markdown rendering bug: use parseMarkdownBlocks() for all
  node types instead of parseRichText() which collapsed everything into one
  text blob
- Add fact_count sort option to backend NodeRepository

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@charlie83Gs charlie83Gs merged commit eaca0b3 into main Mar 29, 2026
14 checks passed
@charlie83Gs charlie83Gs deleted the worktree-feat+wiki-improvements branch March 29, 2026 21:58
charlie83Gs added a commit that referenced this pull request Apr 20, 2026
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
charlie83Gs added a commit that referenced this pull request Apr 20, 2026
…265)

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
charlie83Gs added a commit that referenced this pull request Apr 20, 2026
…266)

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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