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 — refactor: Tauri レガシー完全除去 Phase 1 — インベントリ・safety net・CI ガード・ADR 新設 · Issue #82 · ymnao/scripta

refactor: Tauri レガシー完全除去 Phase 1 — インベントリ・safety net・CI ガード・ADR 新設 #82

New issue
Copy link
New issue
Copy link
Closed
Closed
refactor: Tauri レガシー完全除去 Phase 1 — インベントリ・safety net・CI ガード・ADR 新設#82
Copy link
Labels
enhancementNew feature or request
Milestone
v0.2.0

Description

@ymnao
ymnao
opened on May 28, 2026
Issue body actions

Phase 1 of #81

後続 Phase の 基盤整備 を行う。実際の削除・置換は Phase 2 以降。

目的

Phase 2〜6 で安全に削除・置換を進めるための前提を整える:

  1. インベントリ: コード資産における Tauri/WKWebView 残骸を網羅的に列挙・分類
  2. CI ガード: 削除後の再混入を物理的に防ぐ
  3. ADR ディレクトリ: 真に必要な設計根拠の集約先を新設
  4. Safety net テスト: 削除前の現挙動を 8 領域で固める

サブタスク

A. 旧版逆引きインベントリ

旧 Tauri 版(/Users/nakiym/development/tools/scripta)の surface から新版へのマッピング作成:

  • src-tauri/src/lib.rs の invoke_handler! 登録 32 command を列挙
  • 各 command → 新版 electron/main/ipc/*.ts handler の対応表
  • 旧 frontend が使っていた @tauri-apps/api/{core,event,window,webviewWindow,app} / @tauri-apps/plugin-{shell,dialog,store} を列挙
  • 各 API が新版で何に置換されたか mapping
  • 出力先: docs/tauri-purge-inventory.md の「逆引き」セクション

B. 新版正引きインベントリ + A/B/C/D 分類

新版コードに残存する Tauri/WKWebView 言及を網羅:

  • 以下キーワードで git grep -niE し全 hit を収集:
    tauri | wkwebview | __TAURI | webviewWindow | @tauri-apps | src-tauri
    tauri:// | tauri-plugin | data-tauri- | convertFileSrc | WebviewWindow
    appWindow | tauri.conf | WebKit
    
  • 対象スコープ: src/** / electron/** / electron-builder.yml / package.json / electron.vite.config.ts / biome.json / tsconfig*.json / vitest.config.ts / playwright.config.ts / .github/**
  • 各 hit を A/B/C/D に分類:
    • A: 純 dead code(WKWebView パッチ等、削除可)
    • B: 構造的レガシー(命名・API 形状、置換要)
    • C: ドキュメンタリーコメント(旧版言及、書き換え or 削除)
    • D: 判別不能(spike 要)
  • 出力先: docs/tauri-purge-inventory.md の「正引き」セクション
  • Settings migration(旧 Tauri 版 userData 互換: docs/parity-checklist.md:192)の 互換維持 or 撤去判断 を分類に含める

C. Safety net テスト追加

削除・置換前の現挙動を Vitest / Playwright で固める 8 領域:

  • Mermaid: flowchart / sequence / class / gantt / pie / journey / gitGraph / ER の 8 chart types
  • CJK IME: compositionstart/end での selection 描画
  • Clipboard: copy / paste / cut(テーブル外)
  • 設定永続化: workspacePath / theme / fontSize の保存と再起動後の読込
  • Asset URL: ワークスペース内画像読込(path-guard 越し)
  • Image rendering: 相対パス / 絶対パス / wikilink-image
  • Window labels: conflict-resolver 再オープン挙動
  • Settings migration: 旧 settings.json の読込(撤去判断と並行)

D. CI ガード設置

  • scripts/check-tauri-residue.sh 作成:
    #!/usr/bin/env bash
    set -e
    FORBIDDEN='tauri|wkwebview|__TAURI|webviewWindow|@tauri-apps|src-tauri|tauri://|tauri-plugin|data-tauri-|convertFileSrc|WebviewWindow|appWindow|tauri\.conf'
    EXCLUDE=(
      ':(exclude)src/**/*.test.*' ':(exclude)electron/**/*.test.*'
    )
    RESULT=$(git grep -niE "$FORBIDDEN" -- 'src/**' 'electron/**' \
      'electron-builder.yml' 'package.json' 'electron.vite.config.ts' \
      'biome.json' 'tsconfig*.json' 'vitest.config.ts' 'playwright.config.ts' \
      '.github/**' "${EXCLUDE[@]}" 2>/dev/null || true)
    if [ -n "\$RESULT" ]; then
      echo "❌ Tauri 残骸検出:"
      echo "\$RESULT"
      exit 1
    fi
    echo "✅ Tauri 残骸なし"
  • package.json に check:tauri-residue script 追加
  • 既存 verify chain (pnpm format && pnpm lint && pnpm typecheck && pnpm test && pnpm test:e2e) に組み込む
  • GitHub Actions workflow に組み込む

注: Phase 1 完了時点では既存 Tauri 残骸が大量にあるため CI ガードは 意図的に fail する。Phase 2-5 完了後に green になる前提で先に設置し、進捗の質的尺度として運用する。

E. ADR ディレクトリ新設

  • docs/adr/ ディレクトリ作成
  • docs/adr/0000-record-architecture-decisions.md 初期 ADR(このディレクトリの運用方針を記録)
  • テンプレート docs/adr/template.md 作成(Status / Context / Decision / Consequences)
  • README.md の Documentation セクションに docs/adr/ へのリンク追加

受け入れ基準

  • docs/tauri-purge-inventory.md に逆引き + 正引き + A/B/C/D 分類が記載され、レビュー済み
  • 8 領域の safety net テストが green で baseline 確立
  • scripts/check-tauri-residue.sh が動作し、現状の残骸を全件検出
  • package.json の check:tauri-residue script で実行可能
  • docs/adr/0000-*.md および docs/adr/template.md 配置
  • PR レビューで Phase 2-5 の作業順序が判断できる状態
  • pnpm format && pnpm lint && pnpm typecheck && pnpm test && pnpm test:e2e 全 pass

スコープ外

  • 実際の削除・置換作業(Phase 2-5)
  • ビルド設定最適化(Phase 6)

関連

  • 親 Issue: refactor: Tauri レガシー完全除去(トラッカー) #81
  • 後続: Phase 2-6

Activity

  1. ymnao
    added this to the v0.2.0 milestone on May 28, 2026
  2. ymnao
    added
    enhancementNew feature or request
    on May 28, 2026
  3. ymnao
    added 7 commits that reference this issue on May 29, 2026

    docs: 探索 QA チェックリストを追加 (#94 B 先行実施用) (#95)

    624a8c2

    docs: Tauri 完全除去 Phase 1 PR-1 (inventory + ADR scaffolding)

    ab89cda

    docs: PR #102 レビュー反映 (B-1 表の漏れ修正 + HANDOFF.md 参照排除)

    dbb6b68

    docs: Tauri 完全除去 Phase 1 PR-1 (inventory + ADR scaffolding) (#102)

    f6bc5a1

    chore: Tauri 残骸検出 CI ガードを追加 (#82 Phase 1 PR-2) (#103)

    d0f3a7b

    test: 実 Electron e2e 基盤 + safety net (#82 Phase 1 PR-3, closes #33) (#…

    a5a9ced

    refactor: build target を Electron 42 の実ランタイムへ最適化 (#87) (#105)

    497821e
  4. ymnao commented on May 31, 2026

    @ymnao
    ymnao
    on May 31, 2026
    OwnerAuthor
    More actions

    Phase 1 完了。PR #102 (PR-1 inventory/ADR) / #103 (PR-2 CI ガード) / #104 (PR-3 実 Electron e2e safety net, closes #33) すべて merged。sub-PR 群を Closes 無しでマージしたため open のまま残っていたのを整理してクローズ。

  5. ymnao
    closed this as completedon May 31, 2026
  6. ymnao
    added a commit that references this issue on Jun 6, 2026

    chore: v0.2.0 post-publish cleanup(CHANGELOG 確定 + legacy-residue 撤去 +…

    08d9922
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      • v0.2.0No due date

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      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.