refactor(A1): Progression-Lanes aus Graph statt Strang=Project
Deploy Development / deploy (push) Successful in 53s
Test Suite / pytest-backend (push) Successful in 4m52s
Test Suite / lint-backend (push) Successful in 3s
Test Suite / compose-smoke (push) Has been skipped
Test Suite / k6 /api/health Baseline (push) Successful in 18s
Test Suite / playwright-smoke (push) Successful in 31s
Deploy Development / deploy (push) Successful in 53s
Test Suite / pytest-backend (push) Successful in 4m52s
Test Suite / lint-backend (push) Successful in 3s
Test Suite / compose-smoke (push) Has been skipped
Test Suite / k6 /api/health Baseline (push) Successful in 18s
Test Suite / playwright-smoke (push) Successful in 31s
Ersetzt strand_project_id/Stream-Projects in der A1-Steuerung durch graph-abgeleitete Lanes (requires-Ketten + Join). Recurring bindet nur noch am Gate; Re-Abnahme-Docs und ADP dokumentieren die Korrektur. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
88a03a65f2
commit
17add13d9d
12 files changed
+396
-125
No files matched your search
@@ -27,7 +27,7 @@ export function JoinWaitlistPanel({ progressionState = null }) {
|
||||
<div>
|
||||
<h2>Join-Fortschritt</h2>
|
||||
<p className="section-lead muted">
|
||||
Konsolidierte Meilensteine — welche Strang-Gates fehlen noch zum Schalten?
|
||||
Konsolidierte Meilensteine — welche Eingangs-Gates fehlen noch zum Schalten?
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -25,12 +25,6 @@ function exercisesForGate(recurringItems = [], gateId) {
|
||||
)
|
||||
}
|
||||
|
||||
function strandLabel(gate, projectsById) {
|
||||
const projectId = gate.strand_project_id
|
||||
if (!projectId) return 'Training'
|
||||
return projectsById.get(projectId)?.title || 'Strang'
|
||||
}
|
||||
|
||||
function ExerciseRow({ exercise, canManage, busy, onCompleted }) {
|
||||
const [measurement, setMeasurement] = useState('')
|
||||
const [submitting, setSubmitting] = useState(false)
|
||||
@@ -99,31 +93,24 @@ function ExerciseRow({ exercise, canManage, busy, onCompleted }) {
|
||||
}
|
||||
|
||||
/**
|
||||
* A1 — Heutige Übungen aller aktiven Work-Gates, gruppiert nach Strang.
|
||||
* A1 — Heutige Übungen aller aktiven Work-Gates, gruppiert nach Gate.
|
||||
*/
|
||||
export function WorkTodayPracticePanel({
|
||||
initiativeId,
|
||||
roadmapItems = [],
|
||||
recurringItems = [],
|
||||
projects = [],
|
||||
canManage = false,
|
||||
onCompleted,
|
||||
busy = false,
|
||||
}) {
|
||||
const projectsById = useMemo(
|
||||
() => new Map((projects || []).map((project) => [project.id, project])),
|
||||
[projects],
|
||||
)
|
||||
|
||||
const gates = useMemo(() => activeWorkGates(roadmapItems), [roadmapItems])
|
||||
|
||||
const grouped = useMemo(() => {
|
||||
return gates.map((gate) => ({
|
||||
gate,
|
||||
strand: strandLabel(gate, projectsById),
|
||||
exercises: exercisesForGate(recurringItems, gate.id),
|
||||
}))
|
||||
}, [gates, recurringItems, projectsById])
|
||||
}, [gates, recurringItems])
|
||||
|
||||
const todayExercises = grouped.flatMap((group) => group.exercises)
|
||||
const pending = todayExercises.filter((item) => !item.today_completed)
|
||||
@@ -137,7 +124,7 @@ export function WorkTodayPracticePanel({
|
||||
<p className="section-lead muted">
|
||||
{gates.length > 0
|
||||
? `${gates.length} aktive Gate(s) — pro Übung erledigen, optional Messwert notieren.`
|
||||
: 'Tages-Tracking für aktive Work-Gates auf allen Strängen.'}
|
||||
: 'Tages-Tracking für aktive Work-Gates.'}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -151,12 +138,10 @@ export function WorkTodayPracticePanel({
|
||||
Alle Übungen für heute erledigt — nächste Fälligkeit morgen.
|
||||
</p>
|
||||
)}
|
||||
{grouped.map(({ gate, strand, exercises }) =>
|
||||
{grouped.map(({ gate, exercises }) =>
|
||||
exercises.length === 0 ? null : (
|
||||
<div key={gate.id} className="work-today-practice__strand">
|
||||
<h3 className="work-today-practice__strand-title">
|
||||
{strand} — {gate.title}
|
||||
</h3>
|
||||
<h3 className="work-today-practice__strand-title">{gate.title}</h3>
|
||||
<ul className="item-list work-today-practice__list">
|
||||
{exercises.map((exercise) => (
|
||||
<ExerciseRow
|
||||
|
||||
@@ -212,7 +212,6 @@ export function buildProviderProps(provider, input) {
|
||||
initiativeId: ops.initiativeId,
|
||||
roadmapItems: ops.roadmapItems || [],
|
||||
recurringItems: ops.recurringItems || [],
|
||||
projects: ops.projects || [],
|
||||
canManage: capabilities.has('kairo.recurring.manage'),
|
||||
busy: ops.formBusy,
|
||||
onCompleted: async () => {
|
||||
|
||||
Reference in new issue
Block a user