Skip to content

feat: FlowShell component, mindmap pattern system, remove marker mode, spec cleanup#7

Merged
web4zn merged 5 commits intomainfrom
opencode
May 8, 2026
Merged

feat: FlowShell component, mindmap pattern system, remove marker mode, spec cleanup#7
web4zn merged 5 commits intomainfrom
opencode

Conversation

@web4zn
Copy link
Copy Markdown
Owner

@web4zn web4zn commented May 8, 2026

Summary

5 atomic commits — refactors core mindmap rendering, adds knowledge pattern system, and cleans up specs.

Changes

FlowShell component (ea30b38)

  • Extracted reusable src/components/flow-shell/ — zero-dependency React Flow canvas shell
  • Rich card nodes with hierarchical gradient accent bars, smoothstep edges
  • Dark/light theme via CSS variables, dagre LR/TB layout
  • Auto-arrange button (↻) restores initial dagre layout
  • Copy to any project — only depends on @xyflow/react + @dagrejs/dagre
    Mindmap pattern system (9382abb)
  • Users select knowledge organization pattern when creating mindmaps
  • Patterns: auto (no constraint), 5W1H (six-dimension), tech (define→use→compare→caveats), pros-cons
  • buildFullMindmapPrompt(pattern) injects pattern-specific instructions
  • Pattern displayed and switchable in MindMapPanel toolbar
    Remove marker mode (00ea4a5)
  • Deleted parseMarkdownToTree, buildHybridContext, stripSourceAnnotations
  • Removed <!--MINDMAP--> marker parsing — unified to JSON mode
  • Removed hardcoded maxDepth=6, children.slice(0,10) limits
  • Removed sourceConversationIds/sourceExcerpts from MindMapNode type
  • Simplified parseJsonToTree — direct JSON.parse, no 3-stage fallback
  • DeepSeek R1 reasoning model: fallback to reasoning_content when content is empty
    Spec cleanup (26ab5a6)
  • Deleted 5 stale spec directories (incremental-mindmap-generation, mindmap-corpus, etc.)
  • Updated 9 spec files to match actual code behavior
  • 12 specs, 69 requirements, all aligned with src/
    Verification
  • 73 tests passing, 0 lint errors
  • TypeScript strict: true compliance maintained

web4zn and others added 5 commits May 8, 2026 21:53
Removed incremental-mindmap-generation, mindmap-corpus, mindmap-content-selection, mindmap-streaming-preview, configurable-mindmap-depth. Updated mindmap-data, mindmap-generation, mindmap-panel-layout, mindmap-canvas-rendering, mindmap-tree-view, chat-interface, conversation-management, brand-identity, model-provider to match current code.

Ultraworked with Sisyphus

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
FlowShell: zero-dependency React Flow canvas shell with dark/light theme, dagre LR/TB layout, hierarchical gradient accent bars, smoothstep edges, auto-arrange button. Replaces MindMapNodeComponent and MindMapEdgeComponent.

Ultraworked with Sisyphus

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
…plify JSON parsing

Removed parseMarkdownToTree, buildHybridContext, stripSourceAnnotations, 3-stage JSON fallback. Removed sourceConversationIds/sourceExcerpts from MindMapNode type. Set maxDepth=Infinity, removed children.slice(0,10). Unified to single JSON parse path. Fallback to reasoning_content for DeepSeek R1 models.

Ultraworked with Sisyphus

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Users select pattern when creating mindmaps via NewConversationDialog dropdown. buildFullMindmapPrompt injects pattern-specific instructions (5W1H, tech concept, pros-cons). Pattern displayed and switchable in MindMapPanel toolbar. Fix: separate pattern lookup from tree.length>0 check so pattern works on first message.

Ultraworked with Sisyphus

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Archived: remove-mindmap-marker, remove-mindmap-depth-limit, cleanup-stale-specs, flow-shell-refactor, add-mindmap-pattern.

Ultraworked with Sisyphus

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
@web4zn web4zn merged commit 31dcf84 into main May 8, 2026
1 check passed
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