GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs: migration-plan と CLAUDE.md アーキ図を実態に同期 by ymnao · Pull Request #388 · ymnao/scripta

Conversation

@ymnao

@ymnao ymnao commented Jul 20, 2026

Copy link
Copy Markdown
Owner

概要

Fable による広範レビューで指摘された「ドキュメントが実態と乖離している」項目 (High #3 / #4) を解消。

  • docs/migration-plan.md
    • Stage 0/1/2/5/6 の完了項目のチェックボックスを実態に反映
    • 冒頭に「現在地」注記を追加 (Stage 0〜5 完了、Stage 6 は機能パリティ確認とリリース切り替えのみ残)
  • CLAUDE.md
    • electron/main/ipc/ アーキ図を現行構成に更新
      • file.ts → fs.ts に訂正
      • dialog.ts / settings.ts / shell.ts / window.ts を追記
      • utils/ サブディレクトリと主要ユーティリティ (path-guard / ssrf-guard / http-fetch / ogp-parser / search-pure / watcher-pure / window-state / window-guards / permission-handler / scripta-asset-protocol / structured-error / ipc-handle) を追記

動機

CLAUDE.md はプロジェクト instructions として fresh context のエージェントに読み込まれる正準なので、探索起点が誤っていると継続的な誤誘導になる。migration-plan.md も CLAUDE.md から「新機能はこの段階順序に従う」と参照されており、実態不一致は同様の害がある。

検証

  • ドキュメントのみの変更 (コード無変更、テスト・ビルド影響なし)
  • 実態確認: ls electron/main/ipc/, ls electron/main/utils/, ls .github/workflows/, ls e2e/electron/ で差分を突合済み

Test plan

  • レンダリング後の Markdown 目視確認 (チェックボックス反映・ツリー図の整形)

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ymnao
docs: migration-plan と CLAUDE.md アーキ図を実態に同期
b1a987d
- migration-plan.md: Stage 0/1/2/5/6 の完了項目をチェック反映
- migration-plan.md: 冒頭に「現在地」注記を追加(Stage 0〜5 完了、
  Stage 6 は機能パリティ確認とリリース切り替えのみ残)
- CLAUDE.md: ipc/ アーキ図を現行構成に更新
  (file.ts → fs.ts、dialog/settings/shell/window の追加、
  utils/ 配下の主要ユーティリティを追記)
@ymnao
ymnao merged commit eec64a7 into main Jul 20, 2026
8 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@ymnao
ymnao deleted the docs/sync-migration-plan-and-arch branch July 20, 2026 16:01
@ymnao ymnao mentioned this pull request Jul 20, 2026
feat: FileTree に WAI-ARIA tree キーボード操作を追加 #389
Merged
3 of 4 tasks
ymnao added a commit that referenced this pull request Jul 20, 2026
@ymnao
feat: FileTree に WAI-ARIA tree キーボード操作を追加 (#389)
43f8ec3
* feat: FileTree に WAI-ARIA tree キーボード操作を追加

- root ul に role="tree"、button に role="treeitem" を付与
- roving tabindex で Tab 遷移を tree 全体で 1 stop に
- ↑↓ で visible item 移動、→ で folder 展開・展開済みなら第一子へ、
  ← で folder 畳み・else 親へ、Enter/Space で activate、Home/End で先頭/末尾
- 選択パスと focus を同期、rename/create InlineInput 中は key handler を早期 return
- FileTree.test.tsx にキーボード操作 8 ケース追加

Fable 広範レビュー (session 123, PR #388) High #5 対応。

* refactor: FileTree keydown handler の /simplify 指摘対応

- focusedPath の 2 段 useEffect を 1 段 + effectiveFocusedPath 導出に整理
- currentBtn を closest<HTMLButtonElement> で型付けし 4 箇所の cast 削除
- data-depth の "?? 0" fallback 3 箇所削除 (常に present)
- unhandled key を querySelectorAll 前に早期 return

* fix: FileTree roving tabindex の fallback 保証と aria-selected 冗長解消

- code-reviewer Critical: focusedPath が visible entry に一致しないと
  どの treeitem も tabIndex=0 にならず Tab で tree に入れなくなる問題を
  修正 (workspace 切替 / 外部削除 / nested selectedPath でトリガ)。
  render 後に tabbable の存在を DOM で検査し、無ければ先頭 entry に fallback
- code-reviewer Warning: aria-selected={isSelected || undefined} に変更し
  未選択 item への "not selected" 冗長読み上げを回避
- fallback 不変条件を検証する test 1 件追加

skip 判断:
- selectedPath 上書き warning: 意図的挙動 (外部選択に追随)
- Cmd+Enter modifier: 既存挙動非退化 (before PR も同じ)
- onFocus + focusIdx の重複 setState: React 18 同値 bailout で無害
- ArrowRight 展開後 auto-focus 子: 非同期待ち必要、scope 外
- typeahead search: scope 外

* fix: CI lint 失敗の解消 (ul/li → div、useExhaustiveDependencies)

- FileTree の tree 構造を ul/li から div ベースに変更
  - noNoninteractiveElementToInteractiveRole (role="tree" on ul) 対応
  - rootUlRef 型を HTMLDivElement へ、keydown handler 型も同期
  - test 側の querySelector("ul") を [role="tree"] に置き換え
- FileTreeItem の子コンテナ role="group" にも同ルールが当たるが
  fieldset は tree pattern の a11y と両立不能なため biome-ignore で許可
  (SlideView.tsx:271 の separator role と同じ扱い)
- 空 folder メッセージの <li> を <div> に変更
- useExhaustiveDependencies: fallback useEffect の deps を body で
  実際に参照するよう再構成 (focusedPath check + entries.length guard)
- refreshKey は root fallback に不要なため deps から除外

* style: FileTree.test.tsx の biome format 適用

sed 置換で "\"" escape 記法が残っていた箇所を biome 標準の single-quote
形式へ (biome format 差分のみ、挙動変更なし)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@ymnao
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.