Новый экранчик для обзора дашей
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
|
||||
> High-level module structure for AI Context. Generated automatically.
|
||||
|
||||
**Generated:** 2026-02-23T11:15:39.876570
|
||||
**Generated:** 2026-02-23T14:44:08.540853
|
||||
|
||||
## Summary
|
||||
|
||||
- **Total Modules:** 71
|
||||
- **Total Entities:** 1340
|
||||
- **Total Modules:** 70
|
||||
- **Total Entities:** 1337
|
||||
|
||||
## Module Hierarchy
|
||||
|
||||
@@ -116,9 +116,9 @@
|
||||
### 📁 `__tests__/`
|
||||
|
||||
- 🏗️ **Layers:** API, Domain (Tests)
|
||||
- 📊 **Tiers:** CRITICAL: 3, STANDARD: 16, TRIVIAL: 21
|
||||
- 📊 **Tiers:** CRITICAL: 3, STANDARD: 16, TRIVIAL: 22
|
||||
- 📄 **Files:** 5
|
||||
- 📦 **Entities:** 40
|
||||
- 📦 **Entities:** 41
|
||||
|
||||
**Key Entities:**
|
||||
|
||||
@@ -561,9 +561,9 @@
|
||||
### 📁 `reports/`
|
||||
|
||||
- 🏗️ **Layers:** Domain
|
||||
- 📊 **Tiers:** CRITICAL: 5, STANDARD: 13
|
||||
- 📊 **Tiers:** CRITICAL: 5, STANDARD: 15
|
||||
- 📄 **Files:** 3
|
||||
- 📦 **Entities:** 18
|
||||
- 📦 **Entities:** 20
|
||||
|
||||
**Key Entities:**
|
||||
|
||||
@@ -813,9 +813,9 @@
|
||||
### 📁 `layout/`
|
||||
|
||||
- 🏗️ **Layers:** UI, Unknown
|
||||
- 📊 **Tiers:** CRITICAL: 3, STANDARD: 4, TRIVIAL: 24
|
||||
- 📊 **Tiers:** CRITICAL: 3, STANDARD: 4, TRIVIAL: 26
|
||||
- 📄 **Files:** 4
|
||||
- 📦 **Entities:** 31
|
||||
- 📦 **Entities:** 33
|
||||
|
||||
**Key Entities:**
|
||||
|
||||
@@ -851,9 +851,9 @@
|
||||
### 📁 `reports/`
|
||||
|
||||
- 🏗️ **Layers:** UI, Unknown
|
||||
- 📊 **Tiers:** CRITICAL: 4, STANDARD: 1, TRIVIAL: 9
|
||||
- 📊 **Tiers:** CRITICAL: 4, STANDARD: 1, TRIVIAL: 10
|
||||
- 📄 **Files:** 4
|
||||
- 📦 **Entities:** 14
|
||||
- 📦 **Entities:** 15
|
||||
|
||||
**Key Entities:**
|
||||
|
||||
@@ -1235,20 +1235,6 @@
|
||||
- 📄 **Files:** 1
|
||||
- 📦 **Entities:** 3
|
||||
|
||||
### 📁 `tasks/`
|
||||
|
||||
- 🏗️ **Layers:** Page, Unknown
|
||||
- 📊 **Tiers:** STANDARD: 4, TRIVIAL: 5
|
||||
- 📄 **Files:** 1
|
||||
- 📦 **Entities:** 9
|
||||
|
||||
**Key Entities:**
|
||||
|
||||
- 🧩 **TaskManagementPage** (Component)
|
||||
- Page for managing and monitoring tasks.
|
||||
- 📦 **+page** (Module) `[TRIVIAL]`
|
||||
- Auto-generated module for frontend/src/routes/tasks/+page.sv...
|
||||
|
||||
### 📁 `debug/`
|
||||
|
||||
- 🏗️ **Layers:** UI
|
||||
|
||||
@@ -115,6 +115,7 @@
|
||||
- ⬅️ READS_FROM `lib`
|
||||
- ⬅️ READS_FROM `t`
|
||||
- ƒ **spawnTask** (`Function`)
|
||||
- 📝 Execute task creation request and emit user feedback.
|
||||
- 📦 **DashboardTypes** (`Module`) `[TRIVIAL]`
|
||||
- 📝 TypeScript interfaces for Dashboard entities
|
||||
- 🏗️ Layer: Domain
|
||||
@@ -236,7 +237,9 @@
|
||||
- 🏗️ Layer: Domain (Tests)
|
||||
- 🔒 Invariant: Sidebar store transitions must be deterministic across desktop/mobile toggles.
|
||||
- ƒ **test_sidebar_initial_state** (`Function`)
|
||||
- 📝 Verify initial sidebar store values when no persisted state is available.
|
||||
- ƒ **test_toggleSidebar** (`Function`)
|
||||
- 📝 Verify desktop sidebar expansion toggles deterministically.
|
||||
- ƒ **test_setActiveItem** (`Function`)
|
||||
- ƒ **test_mobile_functions** (`Function`)
|
||||
- 📦 **frontend.src.lib.stores.__tests__.test_activity** (`Module`)
|
||||
@@ -332,6 +335,8 @@
|
||||
- 🏗️ Layer: Unknown
|
||||
- ƒ **getStatusClass** (`Function`) `[TRIVIAL]`
|
||||
- 📝 Auto-detected function (orphan)
|
||||
- ƒ **getStatusLabel** (`Function`) `[TRIVIAL]`
|
||||
- 📝 Auto-detected function (orphan)
|
||||
- ƒ **formatDate** (`Function`) `[TRIVIAL]`
|
||||
- 📝 Auto-detected function (orphan)
|
||||
- ƒ **onSelect** (`Function`) `[TRIVIAL]`
|
||||
@@ -412,6 +417,8 @@
|
||||
- 📦 **Sidebar** (`Module`) `[TRIVIAL]`
|
||||
- 📝 Auto-generated module for frontend/src/lib/components/layout/Sidebar.svelte
|
||||
- 🏗️ Layer: Unknown
|
||||
- ƒ **buildCategories** (`Function`) `[TRIVIAL]`
|
||||
- 📝 Auto-detected function (orphan)
|
||||
- ƒ **handleItemClick** (`Function`) `[TRIVIAL]`
|
||||
- 📝 Auto-detected function (orphan)
|
||||
- ƒ **handleCategoryToggle** (`Function`) `[TRIVIAL]`
|
||||
@@ -463,6 +470,8 @@
|
||||
- 📝 Auto-detected function (orphan)
|
||||
- ƒ **formatBreadcrumbLabel** (`Function`) `[TRIVIAL]`
|
||||
- 📝 Auto-detected function (orphan)
|
||||
- ƒ **getCrumbMeta** (`Function`) `[TRIVIAL]`
|
||||
- 📝 Auto-detected function (orphan)
|
||||
- 🧩 **TaskDrawer** (`Component`) `[CRITICAL]`
|
||||
- 📝 Global task drawer for monitoring background operations
|
||||
- 🏗️ Layer: UI
|
||||
@@ -481,7 +490,7 @@
|
||||
- 🏗️ Layer: Unknown
|
||||
- ƒ **handleClose** (`Function`) `[TRIVIAL]`
|
||||
- 📝 Auto-detected function (orphan)
|
||||
- ƒ **goToTasksPage** (`Function`) `[TRIVIAL]`
|
||||
- ƒ **goToReportsPage** (`Function`) `[TRIVIAL]`
|
||||
- 📝 Auto-detected function (orphan)
|
||||
- ƒ **handleOverlayClick** (`Function`) `[TRIVIAL]`
|
||||
- 📝 Auto-detected function (orphan)
|
||||
@@ -512,29 +521,6 @@
|
||||
- 📝 Bind global layout shell and conditional login/full-app rendering.
|
||||
- 🏗️ Layer: UI
|
||||
- 🔒 Invariant: Login route bypasses shell; all other routes are wrapped by ProtectedRoute.
|
||||
- 🧩 **TaskManagementPage** (`Component`)
|
||||
- 📝 Page for managing and monitoring tasks.
|
||||
- 🏗️ Layer: Page
|
||||
- ⬅️ READS_FROM `lib`
|
||||
- ➡️ WRITES_TO `t`
|
||||
- ⬅️ READS_FROM `t`
|
||||
- ƒ **loadTasks** (`Function`)
|
||||
- 📝 Loads tasks and environments on page initialization.
|
||||
- ƒ **refreshTasks** (`Function`)
|
||||
- 📝 Periodically refreshes the task list.
|
||||
- ƒ **handleSelectTask** (`Function`)
|
||||
- 📝 Updates the selected task ID when a task is clicked.
|
||||
- 📦 **+page** (`Module`) `[TRIVIAL]`
|
||||
- 📝 Auto-generated module for frontend/src/routes/tasks/+page.svelte
|
||||
- 🏗️ Layer: Unknown
|
||||
- ƒ **handleTaskTypeChange** (`Function`) `[TRIVIAL]`
|
||||
- 📝 Auto-detected function (orphan)
|
||||
- ƒ **handlePageSizeChange** (`Function`) `[TRIVIAL]`
|
||||
- 📝 Auto-detected function (orphan)
|
||||
- ƒ **goToPrevPage** (`Function`) `[TRIVIAL]`
|
||||
- 📝 Auto-detected function (orphan)
|
||||
- ƒ **goToNextPage** (`Function`) `[TRIVIAL]`
|
||||
- 📝 Auto-detected function (orphan)
|
||||
- 📦 **DatasetHub** (`Page`) `[CRITICAL]`
|
||||
- 📝 Dataset Hub - Dedicated hub for datasets with mapping progress
|
||||
- 🏗️ Layer: UI
|
||||
@@ -2466,6 +2452,8 @@
|
||||
- 📝 Auto-detected function (orphan)
|
||||
- ƒ **test_get_reports_filter_and_pagination** (`Function`) `[TRIVIAL]`
|
||||
- 📝 Auto-detected function (orphan)
|
||||
- ƒ **test_get_reports_handles_mixed_naive_and_aware_datetimes** (`Function`) `[TRIVIAL]`
|
||||
- 📝 Auto-detected function (orphan)
|
||||
- ƒ **test_get_reports_invalid_filter_returns_400** (`Function`) `[TRIVIAL]`
|
||||
- 📝 Auto-detected function (orphan)
|
||||
- 📦 **backend.src.api.routes.__tests__.test_datasets** (`Module`)
|
||||
@@ -2473,6 +2461,7 @@
|
||||
- 🏗️ Layer: API
|
||||
- 🔒 Invariant: Endpoint contracts remain stable for success and validation failure paths.
|
||||
- ƒ **test_get_datasets_success** (`Function`)
|
||||
- 📝 Validate successful datasets listing contract for an existing environment.
|
||||
- ƒ **test_get_datasets_env_not_found** (`Function`)
|
||||
- ƒ **test_get_datasets_invalid_pagination** (`Function`)
|
||||
- ƒ **test_map_columns_success** (`Function`)
|
||||
@@ -2481,6 +2470,7 @@
|
||||
- 📦 **backend.tests.test_reports_detail_api** (`Module`) `[CRITICAL]`
|
||||
- 📝 Contract tests for GET /api/reports/{report_id} detail endpoint behavior.
|
||||
- 🏗️ Layer: Domain (Tests)
|
||||
- 🔒 Invariant: Detail endpoint tests must keep deterministic assertions for success and not-found contracts.
|
||||
- ƒ **__init__** (`Function`) `[TRIVIAL]`
|
||||
- 📝 Auto-detected function (orphan)
|
||||
- ƒ **get_all_tasks** (`Function`) `[TRIVIAL]`
|
||||
@@ -2756,6 +2746,7 @@
|
||||
- 🏗️ Layer: Service
|
||||
- 🔒 Invariant: Resource summaries preserve task linkage and status projection behavior.
|
||||
- ƒ **test_get_dashboards_with_status** (`Function`)
|
||||
- 📝 Validate dashboard enrichment includes git/task status projections.
|
||||
- ƒ **test_get_datasets_with_status** (`Function`)
|
||||
- ƒ **test_get_activity_summary** (`Function`)
|
||||
- ƒ **test_get_git_status_for_dashboard_no_repo** (`Function`)
|
||||
@@ -2805,6 +2796,12 @@
|
||||
- ƒ **_load_normalized_reports** (`Function`)
|
||||
- 📝 Build normalized reports from all available tasks.
|
||||
- 🔒 Invariant: Every returned item is a TaskReport.
|
||||
- ƒ **_to_utc_datetime** (`Function`)
|
||||
- 📝 Normalize naive/aware datetime values to UTC-aware datetime for safe comparisons.
|
||||
- 🔒 Invariant: Naive datetimes are interpreted as UTC to preserve deterministic ordering/filtering.
|
||||
- ƒ **_datetime_sort_key** (`Function`)
|
||||
- 📝 Produce stable numeric sort key for report timestamps.
|
||||
- 🔒 Invariant: Mixed naive/aware datetimes never raise TypeError.
|
||||
- ƒ **_matches_query** (`Function`)
|
||||
- 📝 Apply query filtering to a report.
|
||||
- 🔒 Invariant: Filter evaluation is side-effect free.
|
||||
|
||||
@@ -32,6 +32,7 @@ Use these for code generation (Style Transfer).
|
||||
## 3. DOMAIN MAP (Modules)
|
||||
* **Module Map:** `.ai/MODULE_MAP.md` -> `[DEF:Module_Map]`
|
||||
* **Project Map:** `.ai/PROJECT_MAP.md` -> `[DEF:Project_Map]`
|
||||
* **Apache Superset OpenAPI:** `.ai/openapi.json` -> `[DEF:Doc:Superset_OpenAPI]`
|
||||
* **Backend Core:** `backend/src/core` -> `[DEF:Module:Backend_Core]`
|
||||
* **Backend API:** `backend/src/api` -> `[DEF:Module:Backend_API]`
|
||||
* **Frontend Lib:** `frontend/src/lib` -> `[DEF:Module:Frontend_Lib]`
|
||||
|
||||
30933
.ai/openapi.json
Normal file
30933
.ai/openapi.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user