From 7a034b31249a5108de4fb532d0438d57947095b8 Mon Sep 17 00:00:00 2001 From: Agent Zero Date: Thu, 23 Jul 2026 20:42:10 +0200 Subject: [PATCH] docs: update PROGRESS.md with Phase 5 Batch 1 (Tasks 5.1-5.3) completion --- PROGRESS.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/PROGRESS.md b/PROGRESS.md index ab3d571..9c4dbac 100644 --- a/PROGRESS.md +++ b/PROGRESS.md @@ -164,3 +164,47 @@ Siehe `MASTER-PLAN.md` für alle Tasks. - Backend: ai_ui_control plugin mit WS + REST, service_container registration ✅ - Frontend: useAIUIControl hook, aiUIControlStore, AIUIControlIndicator, i18n DE/EN ✅ - Neue Dateien: 8 (plugin: __init__.py, plugin.py, routes.py, schemas.py, websocket_manager.py; frontend: store, hook, API, indicator, tests) ✅ + +## Phase 5: API-Vollständigkeit & Frontend-Anbindung + +### Batch 1 (Tasks 5.1-5.3) + +| # | Status | Datum | Was gemacht wurde | +||---|--------|------|-------------------| +| 5.1 | ✅ done | 2026-07-23 | API-Audit: docs/api-audit.md mit 158 UI-Funktionen in 24 Kategorien, alle per API erreichbar. 0 fehlende Endpoints. UI-State (Sidebar/Tab/Filter) durch Task 5.2 abgedeckt. 9 Tests (Audit-Dokument + Endpoint-Reachability) | +| 5.2 | ✅ done | 2026-07-23 | User-Preferences-API: Model (UserPreference mit TenantMixin), API Router (GET/PUT/DELETE /api/v1/user/preferences), Migration 0028, Frontend API + useUserPreferences hook mit uiStore-Sync, i18n DE/EN, 13 Backend-Tests (CRUD, Tenant-Isolation, CSRF, RBAC) | +| 5.3 | ✅ done | 2026-07-23 | Workflow-API-Frontend-Modul: frontend/src/api/workflows.ts mit TypeScript types + React Query hooks (CRUD, Instances, Advance/Cancel), 13 Frontend-Tests | + +**Phase 5 Batch 1 Gesamt: ✅ Complete** + +### Verifikation Phase 5 Batch 1 +- TSC: 0 neue errors (nur 2 pre-existing Dms.tsx errors) ✅ +- Backend Tests: 22/22 pass (13 user_preferences + 9 api_audit) ✅ +- Frontend Tests: 13/13 pass (workflows.test.ts) ✅ +- 3 Commits mit klaren Messages ✅ +- TenantMixin für neues DB-Model (UserPreference) ✅ +- RBAC (require_permission) für alle neuen API-Routes ✅ +- i18n (de.json, en.json) für Frontend-Änderungen ✅ +- Keine .env committet ✅ +- Bestehende Patterns verwendet: apiClient, Zustand stores, React Query hooks ✅ + +### Neue Dateien Phase 5 Batch 1 +- `docs/api-audit.md` — API-Audit-Dokument +- `app/models/user_preference.py` — UserPreference SQLAlchemy Model +- `app/routes/user_preferences.py` — User Preferences API Router +- `alembic/versions/0028_user_preferences.py` — Migration +- `frontend/src/api/userPreferences.ts` — Frontend API module +- `frontend/src/hooks/useUserPreferences.ts` — useUserPreferencesSync hook +- `frontend/src/api/workflows.ts` — Workflow API frontend module +- `frontend/src/api/__tests__/workflows.test.ts` — Workflow API tests +- `tests/test_user_preferences.py` — User preferences backend tests +- `tests/test_api_audit.py` — API audit tests + +### Modifizierte Dateien Phase 5 Batch 1 +- `app/main.py` — user_preferences router import + include_router +- `app/routes/__init__.py` — user_preferences import +- `app/core/permission_registry.py` — user_preferences:read/write permissions +- `app/core/permissions.py` — user_preferences in legacy role permissions +- `tests/conftest.py` — UserPreference model import + Contact seed fix (industry field) +- `frontend/src/i18n/locales/de.json` — userPreferences i18n +- `frontend/src/i18n/locales/en.json` — userPreferences i18n