AP1.9a: Arbeitsmodi-Shell mit Scope, Objekt-Routen und Legacy-Redirects.
Deploy Development / deploy (push) Successful in 47s
Test Suite / pytest-backend (push) Failing after 1m46s
Test Suite / k6 /api/health Baseline (push) Has been skipped
Test Suite / playwright-smoke (push) Has been skipped
Test Suite / lint-backend (push) Successful in 2s
Test Suite / compose-smoke (push) Has been skipped
Deploy Development / deploy (push) Successful in 47s
Test Suite / pytest-backend (push) Failing after 1m46s
Test Suite / k6 /api/health Baseline (push) Has been skipped
Test Suite / playwright-smoke (push) Has been skipped
Test Suite / lint-backend (push) Successful in 2s
Test Suite / compose-smoke (push) Has been skipped
Ersetzt die Vorhaben-Tab-Navigation durch Cockpit/Ausführen/Planen/Kontrolle/Team, Deep Links für APs/Projekte/Gates und Programm-Scope im Header. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
33831a8c2c
commit
e42edd86fa
54 files changed
+2489
-150
No files matched your search
@@ -0,0 +1,146 @@
|
||||
# ADP — AP1.9 PM Work Modes & Frontend IA Reset v0.1
|
||||
|
||||
**Status:** vorgeschlagen (PO-Freigabe ausstehend)
|
||||
**Stand:** 2026-07-08
|
||||
**Autor:** Product/Architektur (Cursor-Session, PM-Feedback)
|
||||
**UI-Konzept:** `docs/product/Kairo_PM_Frontend_UI_Concept_v0.1.md`
|
||||
**Auslöser:** Frontend strukturiert nach Objekten (Vorhaben-Tabs), nicht nach Programmmanager-Arbeitslogik
|
||||
|
||||
---
|
||||
|
||||
## Problem
|
||||
|
||||
Nach AP1.2c–AP1.6 existiert ein IA-Skeleton (Workspace, Initiative-Übersicht, Unterseiten), aber:
|
||||
|
||||
1. **Alle Arbeitsflächen hängen unter `/initiatives/:id/...`** — Querschnitt (alle Tasks, alle Blocker, Next Step portfolio-weit) fehlt als eigene Fläche.
|
||||
2. Tab **Ausführung** vermischt Struktur (Projects), Ist (Actions), Blocker — widerspricht Plan/Ist-Trennung und PM-Use-Cases.
|
||||
3. **Workspace** ist Widget-Sammlung ohne klaren Modus „Cockpit“.
|
||||
4. Weitere UI-Patches auf Unterseiten **verstärken** das Anti-Pattern (Vision §7, Canonical OM §8.1).
|
||||
|
||||
Ohne Entscheidung wird jede weitere Feature-Arbeit (Tasks, KI, Portfolio-Prio) erneut „irgendwo unter Vorhaben“ landen.
|
||||
|
||||
---
|
||||
|
||||
## Betroffene Regeln
|
||||
|
||||
| Dokument | Regel |
|
||||
|----------|--------|
|
||||
| Vision v0.2 §7 | Drei Ebenen: Workspace → Initiative-Übersicht → Unterseiten |
|
||||
| Vision v0.2 §7.1–7.2 | Workspace = Querschnitt; Initiative-Übersicht = Steuerung im Alltag |
|
||||
| Canonical OM §8.1–8.4 | Übersicht entscheidet; getrennte Hauptflächen Plan / Ausführung / Eingang / Journey |
|
||||
| ADP PO Product Layering | Gates ≠ operativer Plan; Ausführung = Ist-Kern |
|
||||
| Principle Gate / Sprint0 | Kein weiteres InitiativeDetail-Omnibus |
|
||||
|
||||
**Erweiterung (dieses ADP):** Vision-Ebenen bleiben fachlich; **Präsentation** wird um **App-weite Arbeitsmodi** ergänzt. Unterseiten-Inhalte **migrieren in Modi + Scope**, nicht in tiefere Verschachtelung.
|
||||
|
||||
---
|
||||
|
||||
## Optionen
|
||||
|
||||
| Option | Kurzbeschreibung | Pro | Contra |
|
||||
|--------|------------------|-----|--------|
|
||||
| **A** | Status quo + weiter patchen | Kein Migrationsaufwand | PM-Use-Cases bleiben unbedienbar; KI ohne Einstieg |
|
||||
| **B** | Nur Widgets auf Workspace erweitern | Schnell | Kein Plan/Kontrolle-Modus; Vorhaben-Tabs bleiben |
|
||||
| **C** | **Fünf App-Modi + Scope-Selector** (UI Concept v0.1) | Entspricht PM-Logik; Querschnitt; Agent-ready | Einmaliger IA-Umbau; Redirects nötig |
|
||||
|
||||
---
|
||||
|
||||
## Entscheidung (Empfehlung: Option C)
|
||||
|
||||
### 1. App-Hauptnavigation = Arbeitsmodi
|
||||
|
||||
| Modus | Route | Ersetzt / absorbiert |
|
||||
|-------|-------|----------------------|
|
||||
| Cockpit | `/cockpit` | `/workspace`, Portfolio-Widgets |
|
||||
| Ausführen | `/work/*` | `/my-actions`, Tab Ausführung (Ist-Teil) |
|
||||
| Planen | `/plan/*` | Tabs Plan, Eingang, Project-Struktur |
|
||||
| Kontrolle | `/control/*` | Initiative-Steuerung, Journey, Plan-Ist-Aggregate |
|
||||
| Team | `/team` | Workload (neu) |
|
||||
|
||||
**Objekt-Routen (first-class, parallel zur Modus-Nav):** `/actions/:id`, `/projects/:id`, `/gates/:id`, `/tasks/:id` (AP1.5d). Beim Öffnen: Scope und aktiver Modus aus Objektdaten ableiten; Redirects von legacy nested URLs.
|
||||
|
||||
Vorhaben-Katalog: `/initiatives` — **Scope setzen**, nicht primärer Arbeitscontainer.
|
||||
|
||||
### 2. Scope-Selector (global)
|
||||
|
||||
- Portfolio | Initiative | optional Project
|
||||
- URL: `?initiative=&project=` (Query) — **Scope Lock** bis ADP v0.2
|
||||
- React Context: `ProgramScopeProvider` in `AppLayout`
|
||||
|
||||
### 3. InitiativeSubNav — deprecate
|
||||
|
||||
- Tabs `Steuerung | Zielzustände | Ausführung | Eingang | Nachvollziehbarkeit` werden **entfernt** (nach AP1.9a Redirects)
|
||||
- Inhalt wandert in Modi (siehe UI Concept §11)
|
||||
|
||||
### 4. Harte Guardrails (Scope Lock)
|
||||
|
||||
| Verboten | Erlaubt |
|
||||
|----------|---------|
|
||||
| Neue Sektionen auf `InitiativeExecutionPage` | Hotfix bis AP1.9a |
|
||||
| Inline-CRUD auf Modus-Übersichten | Detail-Route / Modal |
|
||||
| Dritte parallele Navigationshierarchie | Scope + Modus nur |
|
||||
| Project-Lifecycle / Steering pro Project | ADP Recursive Containers |
|
||||
|
||||
### 5. Implementierungspakete
|
||||
|
||||
```text
|
||||
AP1.9a Shell, Routen, Scope, Redirects, Platzhalter-Screens
|
||||
AP1.9b Cockpit + Work/Heute (AP-Querschnitt)
|
||||
AP1.9c Control (Snapshot, Journey, Plan-Ist)
|
||||
AP1.9d Plan (Structure, Gates, Inbox)
|
||||
AP1.9e Team (Workload)
|
||||
```
|
||||
|
||||
AP1.5d (Tasks) **füllt** `/work` — ändert IA nicht.
|
||||
AP1.8 (Portfolio-Prio) **erweitert** `/cockpit`.
|
||||
AP1.7 (Agent API) **mappt** auf Modus-Endpunkte.
|
||||
|
||||
---
|
||||
|
||||
## Risiko
|
||||
|
||||
| Risiko | Mitigation |
|
||||
|--------|------------|
|
||||
| Große Migration / gebrochene Bookmarks | Redirect-Tabelle, 6 Monate |
|
||||
| Doppelpflege alt/neu | Freeze auf alten Tabs ab AP1.9a Start |
|
||||
| Scope in URL vs. State | Ein Provider, Tests für Deep-Links |
|
||||
| Überengineering Mobile | 9a nur Desktop+Mobile Nav-Parität; Detail polish later |
|
||||
|
||||
---
|
||||
|
||||
## Rückbaubarkeit
|
||||
|
||||
- Modi-Routen isoliert unter `frontend/src/modes/` (neu)
|
||||
- Alte Initiative-Routen als Redirect-Layer bis Entfernung
|
||||
- Scope-Provider optional abschaltbar für Tests
|
||||
- ADP v0.2 kann Modus-Namen anpassen ohne OM-Änderung
|
||||
|
||||
---
|
||||
|
||||
## Auswirkung auf Roadmap
|
||||
|
||||
| Paket | Änderung |
|
||||
|-------|----------|
|
||||
| AP1.5d | Bleibt; liefert Task-Daten für `/work` |
|
||||
| AP1.4c Gate-UI | Gehört in `/plan/gates`, nicht Initiative-Tab |
|
||||
| AP1.8 | Cockpit-Feature |
|
||||
| AP1.7 | Nach AP1.9b+c (Leseschnittstellen stabil) |
|
||||
|
||||
**Nächstes Code-Paket nach PO-Freigabe:** AP1.9a (Shell) — **nicht** weiter AP1.5e-UI.
|
||||
|
||||
---
|
||||
|
||||
## PO-Freigabe
|
||||
|
||||
- [ ] Option C angenommen
|
||||
- [ ] UI Concept v0.1 bestätigt
|
||||
- [ ] AP1.9a–e Reihenfolge OK
|
||||
- [ ] InitiativeSubNav-Abschaffung OK
|
||||
|
||||
---
|
||||
|
||||
## Referenzen
|
||||
|
||||
- `docs/product/Kairo_PM_Frontend_UI_Concept_v0.1.md`
|
||||
- `docs/product/Kairo_Corrected_MVP_Roadmap_v0.2.md` (Abschnitt AP1.9)
|
||||
- `docs/product/Kairo_Implementation_Truth_Table_v0.1.md`
|
||||
Reference in new issue
Block a user