GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — refactor: settings に _schemaVersion を導入し migration を versioned array 化 (#208) by ymnao · Pull Request #230 · ymnao/scripta Conversation
Owner
概要settings.json の schema migration を versioned array で表現するリファクタリング (#208)。 関連 IssueCloses #208 移行 Stage該当なし — Tauri purge 後の継続的なアーキテクチャ refactor (v0.6.0 milestone Tier 1)。 変更内容
設計判断: issue 提案からの逸脱issue の提案は snapshot-based な /simplify で skip した correctness 領域の指摘 (別途検討対象)quality 改善の /simplify では scope 外として skip したが、correctness 観点で別途検討すべき点が
いずれも現状 (migration 1 件のみ、すべて idempotent) では実害なし。次回 non-idempotent な 動作確認
スクリーンショットUI 変更なし。
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions#208) - `src/lib/store-migration.ts` を新設し、`MIGRATIONS` 配列・`LATEST_SCHEMA_VERSION`・ `applyMigrations()` で settings.json の schema 変換を versioned array で表現する - 既存の inline if-else 形式 (theme → themePreference 変換) を MIGRATIONS[0] に移植し、 store.ts の `loadSettings()` 冒頭で `applyMigrations()` を 1 回呼ぶ形にリファクタ - 今後の migration 追加は MIGRATIONS に 1 entry 追加で完結し、loadSettings に分岐が増えない - `_schemaVersion` は settings.json 上にのみ書かれ、`AppSettings` interface には surface しない (storage 内部の concern を public interface に leak しない) - unit test (`src/lib/store-migration.test.ts` 9 ケース) と e2e (`e2e/electron/settings-migration.electron.spec.ts` に _schemaVersion 書き込み verify と skip シナリオを追加) を追加 - `docs/specification.md` に Settings の追加・移行フロー (型 / DEFAULTS / migration / test の 4 ステップ + 判断ルール) を明記 Closes #208 Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> Uh oh!
There was an error while loading. Please reload this page.
ymnao
added a commit
that referenced
this pull request
- `CHANGELOG.md` に v0.6.0 セクションを追加 - Internal: #206 → #229 (AppLayout useShallow), #208 → #230 (settings _schemaVersion + MIGRATIONS), #207 → #231 (2 モード e2e 振り分け + ADR-0009 集約), #225 → #232 (onNavigate wikilink target), #226 → #233 (useCollapseToggle hook), #228 → #234 (createScanAction factory), #227 → #235 (producer-side lineContent trim) - `package.json` の `version` を `0.5.0` → `0.6.0` - HANDOFF の規約通り、本 commit では `pnpm <script>` を呼ばない (lockfile / node_modules には触れない)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. refactor: settings に _schemaVersion を導入し migration を versioned array 化Uh oh!
There was an error while loading. Please reload this page. 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. |