feat: complete dashboard-vite parity and fix portal health/csp regressions

This commit is contained in:
egg
2026-02-09 09:22:23 +08:00
parent cf194bc3a3
commit 1e6d6dbd31
57 changed files with 13347 additions and 312 deletions

26
docs/env_sync_report.md Normal file
View File

@@ -0,0 +1,26 @@
# Environment Sync Report
- Source: `/home/egg/Project/DashBoard/.env`
- Target: `/home/egg/Project/DashBoard_vite/.env`
- Example Baseline: `.env.example`
- Keys in source env: 39
- Keys in vite .env.example: 54
- Missing keys auto-added to target: 15
## Auto-Added Keys
- `DB_POOL_TIMEOUT`
- `DB_POOL_RECYCLE`
- `DB_TCP_CONNECT_TIMEOUT`
- `DB_CONNECT_RETRY_COUNT`
- `DB_CONNECT_RETRY_DELAY`
- `DB_CALL_TIMEOUT_MS`
- `WIP_CACHE_TTL_SECONDS`
- `WATCHDOG_RUNTIME_DIR`
- `WATCHDOG_PID_FILE`
- `WATCHDOG_RESTART_HISTORY_MAX`
- `RESILIENCE_DEGRADED_ALERT_SECONDS`
- `RESILIENCE_POOL_SATURATION_WARNING`
- `RESILIENCE_POOL_SATURATION_CRITICAL`
- `RESILIENCE_RESTART_CHURN_WINDOW_SECONDS`
- `RESILIENCE_RESTART_CHURN_THRESHOLD`

View File

@@ -0,0 +1,9 @@
# Environment Usage Gap Report
- Parsed env keys used in code/tests: 37
- Keys present in `.env`: 63
- Missing keys: 2
## Missing Keys
- `CONDA_DEFAULT_ENV`
- `PYTEST_CURRENT_TEST`

View File

@@ -26,6 +26,7 @@ Result:
- PASS
- `routes 71`
- Redis/Oracle warnings observed in this local environment; app factory and route registration still completed.
- Note: current tree includes additional routes (query-tool / tmtt-defect / hardening paths), so fresh smoke now reports `routes 83`.
## Focused Test Gate (root project)

View File

@@ -41,7 +41,7 @@
### App import smoke
- `PYTHONPATH=src python -c "from mes_dashboard.app import create_app; app=create_app('testing'); print(app.url_map)"`
- Verified route initialization count (`routes 71`) in root-only execution context.
- Verified route initialization count (`routes 83`) in root-only execution context.
### HTTP smoke (Flask test client)
- Verify page renders and module asset tags resolve/fallback: