feat: port stroy-bot-main as the hub page

Project picker, section cards and the period Excel export now live on the
app's home page. The selected project is shared app state, so the sidebar
hides sections with the same rules main used to disable its cards
(archived, finished, no edit0 right).

Queries are 1:1 with stroy-bot-main and covered by tests against a fake
HTTP client. Behaviour differences are listed in the migration checklist.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Тимур Городецкий
2026-10-15 16:49:32 +05:00
parent b868e8012d
commit bed230f045
32 changed files with 1626 additions and 6 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ export const LISTS = {
/** Библиотека с фотографиями отчётов: папка `{projectId}_{reportNumber}`. */
export const REPORT_PHOTO_LIBRARY = 'DocLib';
/** Библиотека с архивом проектов: папка `Архив/{название проекта}`. */
export const ARCHIVE_FOLDER_PATH = 'Shared Documents/Архив';
/** Путь (в URL) к папке архива проектов в библиотеке «Документы»; дальше — `/{название проекта}`. */
export const ARCHIVE_FOLDER_PATH = 'Shared%20Documents/Архив';
export type ListTitle = (typeof LISTS)[keyof typeof LISTS];