Skip to content

refactor: вынести InspectorModel из AppModel - #84

Merged
fso13 merged 1 commit into
mainfrom
refactor/inspector-model
Oct 23, 2026
Merged

fso13 merged 1 commit into
mainfrom
refactor/inspector-model

Conversation

@fso13

@fso13 fso13 commented Oct 23, 2026

Copy link
Copy Markdown
Owner

Что сделано

  • Вынесен InspectorModel: inspectorNode, canQuickLook, quickLookURL, previewSelection/previewNode, метаданные (FileMetadata) и file actions (copyPaths, openInTerminal).
  • AppModel владеет inspector, прокидывает tree/currentIndex/selection и toast/error callbacks, форвардит objectWillChange; compatibility wrappers сохранены.
  • UI переведён на model.inspector.* (Inspector, Quick Look, Map/Largest/Types/Treemap/Duplicates/Similar, команды и палитра).
  • InspectorModelTests: цель инспектора, Quick Look, метаданные, копирование путей.
  • AppModel: 1146 → 1105 строк; тесты: 147.

Refs #66

- Move inspector target, Quick Look, metadata and file actions into InspectorModel
- Forward objectWillChange and attach tree/current/selection providers
- Migrate UI to model.inspector and keep compatibility wrappers
- Add InspectorModelTests for target, Quick Look, metadata and copy paths
- AppModel is now 1105 lines; 147 tests green

Refs #66
@fso13
fso13 merged commit 4130880 into main Oct 23, 2026
11 checks passed
@fso13
fso13 deleted the refactor/inspector-model branch October 23, 2026 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants