Skip to content

refactor: вынести ReportModel из AppModel - #86

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

fso13 merged 1 commit into
mainfrom
refactor/report-model

Conversation

@fso13

@fso13 fso13 commented Oct 23, 2026

Copy link
Copy Markdown
Owner

Что сделано

  • Вынесен ReportModel: exportReport, appVersion, ReportOptions и defaultReportFilename.
  • AppModel прокидывает tree/currentIndex/search/category/currentName/rootDisplayName, toast/error и форвардит objectWillChange.
  • Меню и палитра команд переведены на model.report.*; compatibility wrappers сохранены.
  • ReportModelTests: доступность экспорта, имя файла, опции отчёта.
  • AppModel: 1105 → 1064 строки; тесты: 150.

Refs #66

- Move exportReport, app version, report options and filename into ReportModel
- Attach tree/navigation/filter providers and toast/error callbacks
- Migrate menu and command palette to model.report
- Add ReportModelTests for export availability, filename and options
- AppModel is now 1064 lines; 150 tests green

Refs #66
@fso13
fso13 merged commit b40218f into main Oct 23, 2026
11 checks passed
@fso13
fso13 deleted the refactor/report-model branch October 23, 2026 12: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