feat: interactive mindmap with expand/collapse, zoom, node-ask, multi-format export#16
Open
Anionex wants to merge 5 commits intoOpenDCAI:mainfrom
Open
feat: interactive mindmap with expand/collapse, zoom, node-ask, multi-format export#16Anionex wants to merge 5 commits intoOpenDCAI:mainfrom
Anionex wants to merge 5 commits intoOpenDCAI:mainfrom
Conversation
- Merge two-step LLM pipeline (analyze + generate) into one call - Comprehensive prompt: adapts to article type, retains data/numbers, structures as topic modules with clear hierarchy - max_depth default 6 (aligned in route and state)
- Replace mermaid with simple-mind-map in both frontends - Add mermaidToMarkdown (indent-stack) and markdownToMermaid converters - Add TypeScript declarations for simple-mind-map
- New MindMapPreview component (simple-mind-map): expand/collapse all, zoom/pan/fit, always-visible expand buttons, PNG/TXT/Mermaid export - Click-to-ask popover: two contextual question options per node, closes modal, switches to chat, focuses input - Fix preview modal: replace missing iOS Tailwind classes with standard rounded corners and backdrop blur - Hide redundant download button for mindmap in modal header - Delete old MermaidPreview component
9071ed8 to
a5fbc3e
Compare
- Remove console.log debug statements from ZH MindMapPreview - Remove unused isReady state from both EN/ZH components - Keep useCallback/useEffect deps as [mermaidCode] (no self-reference)
ddd9c9b to
4d438b3
Compare
- exportPadding 20→50 to prevent bottom/right clipping - After EXPAND_ALL, call view.fit() before export to ensure full layout
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.
Summary
Changes
MindMapPreviewcomponent,mermaidToMarkdown/markdownToMermaidutils, TS declarationsCommits
edfb7d0— Backend: single-pass prompt + max_depth=69e8faff— Dependencies + format conversion utils + TS declarationsa5fbc3e— MindMapPreview component + interactions + modal fix4d438b3— Code review fixes (debug logs, dead state, deps)29e9656— PNG export truncation fix (padding + fit before capture)Test plan