Andrey Epifancev a329e5e9fb openspec: change console-files — файлы в контексте консолидации (#90)
Спека по решениям владельца 09.10.2026: stored_file.consolidation_id (период, не версия),
маршруты /consolidations/{cid}/legal-entities/{le}/files, рабочий стол = DESK ∪ BOUND,
заморозка через consolidation_document и ЕХ. Дочерние change'и — arm-core и arm-web.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-09 22:36:12 +04:00

20 lines
2.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## Порядок
Подробный план с шагами и тестами — superpowers writing-plans (ledger SDD); здесь — крупные задачи по репозиториям
в порядке зависимостей.
- [ ] 1. **docs** (этот change): `model/data-model-v5.18.dbml` + changelog, `model/entities-v5.18.md`, `04-data-model-guide.md`,
`05-domain-rules.md` §9.5, `10-user-journey.md` п. 2.5, `dev/frontend-api-guide.md`,
`dev/api-contract-files-directories.md`, `dev/api-contract-slice-4.md`, `dev/qa-guide.md`, `07-open-questions.md`
(целевая модель версий), ссылки на версию DBML в `CLAUDE.md` workspace и `repo-templates/*.CLAUDE.md`.
- [ ] 2. **arm-core** (change `console-files`, спеки `primary-files`, `documents-api`): модель `StoredFile.consolidation_id`,
миграция `0006_dbml_v5_18` с backfill и откатом, `make dbml-check`; `repositories/files.py` (рабочий стол);
`services/primary_files.py` (загрузка в консоль, проверки, переход версий, `page_desk`); `services/result_mapping.py`
(наследование при автозамене); маршруты `/consolidations/{cid}/legal-entities/{le}/files`; удаление query у
`POST /legal-entities/{id}/files`; `schemas/files.py`; README «Ошибки API»; тесты; `make check-full`.
- [ ] 3. **arm-web** (change `console-files`, спека `primary-files-ui`): стор `current_consolidation_id`, `services/api/files.ts`,
`widgets/FilesDrawer/*` (стол, переключатель, подпись консолидации, недоступная загрузка вне «в работе»), типы;
`make check`; ручной прогон сценария из design на стенде в Playwright со сверкой с макетом [39]/[40].
- [ ] 4. **Закрытие:** обновить `03-architecture.md` (если затронуты схемы), `07-open-questions.md`, `09-delivery-plan.md`
(строка про доработку 2d/4); архив change'ей в трёх репозиториях.