Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[Phase 4] StickyNoteNodeカスタムコンポーネントと.codegraph.jsonへの永続化

未关闭
#27 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
58/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
typescript
领域
desktop, frontend

调研方向

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 内容生成。

描述

phase-4 whiteboard

概要

キャンバス上に付箋ノードを追加・編集・削除でき、.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

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

qnaiv/codegraph 的其他 Issue

查看 qnaiv/codegraph 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。