[Phase 4] StickyNoteNodeカスタムコンポーネントと.codegraph.jsonへの永続化
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 58/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- typescript
调研方向
Start with src/webview/components/nodes/StickyNoteNode.tsx and trace AnnotationStore, the SAVE_ANNOTATION message, and extension startup loading. Confirm how canvas context-menu creation, deletion, and node state are handled before connecting the new component. Done means a note can be added, edited, colored, deleted, persisted to workspaceRoot/.codegraph.json, and restored after restarting VS Code.
由索引模型根据 Issue 内容生成。
描述
概要
キャンバス上に付箋ノードを追加・編集・削除でき、.codegraph.json に永続化されるホワイトボード基本機能を実装する。(MVPスコープ外だが次の優先タスク)
タスク
-
src/webview/components/nodes/StickyNoteNode.tsxを実装<textarea>によるMarkdown入力(auto-resize)- 色選択(yellow / blue / green / pink / orange)
- ダブルクリックで編集モード、クリック外で確定
- キャンバス右クリックメニュー「付箋を追加」でStickyNoteを生成
-
SAVE_ANNOTATIONメッセージで拡張ホストに送信 -
AnnotationStoreがworkspaceRoot/.codegraph.jsonに書き出し - 拡張起動時に
.codegraph.jsonを読み込んでアノテーションを復元 - 削除: 付箋ノードのDeleteキーまたは右クリック→削除
完了基準
付箋を追加→VS Codeを再起動→付箋が復元される。
工数目安
2.5日(StickyNoteNode 1.5d + 永続化 1d)
依存
Phase 3完了
- 主要语言
- TypeScript
- 星标
- 0
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
qnaiv/codegraph 的其他 Issue
-
enhancement ui
难度 3/5 1-2 天 新手友好度 68/100
-
enhancement ui
难度 3/5 1-2 天 新手友好度 68/100
-
enhancement ui
难度 3/5 1-2 天 新手友好度 68/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
bcgov/bc-wallet-mobile#4761 · 1 条评论 ·
-
external-issue to-triage
难度 2/5 1-3 小时 新手友好度 88/100
-
area-deployment area-integrations triage:bot-seen
难度 2/5 半天 新手友好度 86/100
-
难度 2/5 1-3 小时 新手友好度 82/100
-
refactor
难度 2/5 1-3 小时 新手友好度 84/100