AP0.7: Tenant Hardening, Actor Directory und Data Layer Minimum
Deploy Development / deploy (push) Successful in 47s
Test Suite / pytest-backend (push) Successful in 42s
Test Suite / lint-backend (push) Successful in 2s
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 12s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-07-05 07:25:01 +02:00
1 parent 36487d2869
commit db06af0489
32 files changed
+1424 -43

No files matched your search

+12 -1
View File
@@ -5,6 +5,10 @@ import { ActorSelect } from './ActorSelect.jsx'
export function ActionForm({
initial = {},
actors = [],
actorsLoading = false,
actorsError = null,
actorsUsedFallback = false,
onReloadActors,
onSubmit,
onCancel,
busy = false,
@@ -55,7 +59,14 @@ export function ActionForm({
))}
</select>
</label>
<ActorSelect actors={actors} defaultSelected={defaultActors} />
<ActorSelect
actors={actors}
defaultSelected={defaultActors}
loading={actorsLoading}
error={actorsError}
usedFallback={actorsUsedFallback}
onRetry={onReloadActors}
/>
<div className="form-actions">
<button type="submit" className="btn btn-primary" disabled={busy}>
{busy ? 'Speichern …' : submitLabel}
+41 -4
View File
@@ -1,4 +1,36 @@
export function ActorSelect({ actors = [], defaultSelected = [], label = 'Zugewiesene Actors' }) {
const ACTOR_TYPE_LABELS = {
human: 'Mensch',
agent: 'Agent',
working_group: 'Arbeitsgruppe',
external_system: 'Externes System',
}
export function ActorSelect({
actors = [],
defaultSelected = [],
label = 'Zugewiesene Actors',
loading = false,
error = null,
usedFallback = false,
onRetry,
}) {
if (loading) {
return <p className="muted actor-select-hint">Actors werden geladen …</p>
}
if (error && !actors.length) {
return (
<div className="actor-select actor-select--error">
<p className="error">{error}</p>
{onRetry && (
<button type="button" className="btn btn-secondary" onClick={onRetry}>
Erneut laden
</button>
)}
</div>
)
}
if (!actors.length) {
return (
<p className="muted actor-select-hint">
@@ -18,12 +50,17 @@ export function ActorSelect({ actors = [], defaultSelected = [], label = 'Zugewi
defaultChecked={defaultSelected.includes(actor.id)}
/>
{actor.name}
{actor.actor_type && <span className="muted"> ({actor.actor_type})</span>}
{actor.actor_type && (
<span className="muted">
{' '}
({ACTOR_TYPE_LABELS[actor.actor_type] || actor.actor_type})
</span>
)}
</label>
))}
{actors.length === 1 && (
{usedFallback && (
<p className="muted actor-select-hint">
AP0.6: Nur der aktuelle Actor — Tenant-Actor-Liste folgt in AP0.7.
Actor Directory nicht erreichbar — Fallback auf aktuellen Actor.
</p>
)}
</fieldset>