feat(plan): Gate-Designer UX — Typ ändern, Löschen, Kanten, Status
Test Suite / lint-backend (push) Waiting to run
Test Suite / compose-smoke (push) Waiting to run
Test Suite / k6 /api/health Baseline (push) Blocked by required conditions
Test Suite / playwright-smoke (push) Blocked by required conditions
Deploy Development / deploy (push) Successful in 46s
Test Suite / pytest-backend (push) Has been cancelled
Test Suite / lint-backend (push) Waiting to run
Test Suite / compose-smoke (push) Waiting to run
Test Suite / k6 /api/health Baseline (push) Blocked by required conditions
Test Suite / playwright-smoke (push) Blocked by required conditions
Deploy Development / deploy (push) Successful in 46s
Test Suite / pytest-backend (push) Has been cancelled
Macht den Zielzustands-Designer bedienbar: Overlay-Panel statt schmalem Split, Gate-Typ im Edit, Löschen mit Schutz für erreichte Gates, Kantentyp-Wechsel mit Legende und visuelle Kennzeichnung aktiv/blockiert/abgeschlossen. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
b80f52cb50
commit
15f87eada2
12 files changed
+617
-88
No files matched your search
@@ -23,6 +23,19 @@ export const DESIGNER_EDGE_LABELS = {
|
||||
optional_branch: 'Optional',
|
||||
}
|
||||
|
||||
/** Kurz-Erklärung der Kantentypen (Semantik from → to in der DB). */
|
||||
export const DESIGNER_EDGE_DESCRIPTIONS = {
|
||||
requires:
|
||||
'Ziel-Gate benötigt Quell-Gate als erreicht (Voraussetzung). Join: alle Eingänge müssen erreicht sein.',
|
||||
blocks:
|
||||
'Quell-Gate blockiert Ziel-Gate, solange es noch aktiv ist (planned/active/at_risk).',
|
||||
related: 'Informativer Bezug — keine Blockade im Graph.',
|
||||
parallel_group:
|
||||
'Markiert parallele Gates in einer Gruppe (group_key) — blockiert nicht, dient der Struktur.',
|
||||
optional_branch:
|
||||
'Wie Voraussetzung, aber optional — blockiert das Ziel-Gate nicht, wenn offen.',
|
||||
}
|
||||
|
||||
/** @deprecated use DESIGNER_EDGE_KINDS */
|
||||
export const DEFERRED_TOPOLOGY_EDGE_KINDS = ['parallel_group', 'optional_branch']
|
||||
|
||||
@@ -40,3 +53,13 @@ export function resolveDependencyEndpoints(edgeKind, sourceId, targetId) {
|
||||
}
|
||||
return { from_item_id: sourceId, to_item_id: targetId }
|
||||
}
|
||||
|
||||
/**
|
||||
* Visuelle Drag-Richtung (Quelle → Ziel) aus gespeicherter Abhängigkeit.
|
||||
*/
|
||||
export function dependencyVisualEndpoints(dep) {
|
||||
if (dep.dependency_type === 'requires') {
|
||||
return { sourceId: dep.to_item_id, targetId: dep.from_item_id }
|
||||
}
|
||||
return { sourceId: dep.from_item_id, targetId: dep.to_item_id }
|
||||
}
|
||||
Reference in new issue
Block a user