chore: phase 4 refactor

This commit is contained in:
2026-02-21 18:13:41 +01:00
parent 9df081965b
commit 78a163a0c9
4 changed files with 149 additions and 136 deletions

View File

@@ -213,8 +213,8 @@ Pure tab-policy helpers that decide:
- `titleStrategy`: shared title resolver hooks
## Phase 4 — Editor Routing Registry
- Replace long `if/else` tab-type rendering chain with declarative tab->component mapping.
- Keep special cases explicit (e.g., tab ID transforms such as git-diff commit/file parsing).
- [x] Replace long `if/else` tab-type rendering chain with declarative tab->component mapping.
- [x] Keep special cases explicit (e.g., tab ID transforms such as git-diff commit/file parsing).
## Phase 5 — Menu/Event Harmonization
- Route menu-driven view/tab actions through the same behavior layer where applicable.
@@ -258,4 +258,5 @@ Pure tab-policy helpers that decide:
- [x] Phase 3 continuation slice complete: migrated post/media open paths in Sidebar, Editor, LinkedMediaPanel, and Panel to shared entity-tab policy.
- [x] Phase 3 completion slice: centralized `chat` and `import` tab-open specs and migrated sidebar call sites.
- [x] Phase 3 completion slice: centralized `git-diff` file/commit ID/spec/open helpers and reused shared parsing in `TabBar`.
- [ ] Next implementation slice: Phase 4 (editor routing registry).
- [x] Phase 4 complete: introduced `editorRouting` registry/resolver and migrated `Editor` to declarative route->view rendering.
- [ ] Next implementation slice: Phase 5 (menu/event harmonization).