feat(studio): operator QoL — flow runnability, audit grouping, batch approvals, welcome celebration (v0.42.0)
Four UX threads stitched into one commit. Each pulls Studio toward Stefan's "zero-learning-curve" goal — the feedback that earned its own memory entry. 1. Flow-Runnability-Indikator ───────────────────────── The Flows tab now fetches `listFlows` and `listModules` in parallel. Each card compares the flow's `requiredCapabilities` against the installed-modules' capability set; rows with missing modules show a "Needs: text.extract@^0" red pill row beneath the path and have their Run button greyed out + tooltip "Install the missing modules first." Operators stop hitting Run → cryptic hub error → frustration. 2. Welcome-Checklist Celebration ───────────────────────────── Once all four checklist signals flip to done, an `_AllDoneCelebration` card replaces the bare "All four steps complete" + Hide button. Three concrete next-threads with action buttons: "Read the audit log", "Set up the daily Today story" (opens the Flows / Today doc inline via `_DocReaderSheet`), and "Build your own module" (opens the architecture doc). Operator who just got set up sees what to do next instead of an empty "what now?" feeling. 3. Audit-Page Time-Bucket Headers + Flow-Run Detail ──────────────────────────────────────────────── The flat event list grows tiny "TODAY / YESTERDAY / EARLIER THIS WEEK / OLDER" section headers — bucket is computed in the operator's local timezone so an event at 23:55 yesterday in Berlin doesn't end up in "today" because UTC happened to spill into a new day. Plus: the event-detail dialog gains a "View flow run" action when the picked event has a `flow_execution`. It opens a drill-down that lists every event in the already-fetched 100-event window sharing the same execution id, sorted ascending — the operator reads the run from step.started top to flow.completed bottom. 4. Approvals-Batch-Aktionen ──────────────────────── Each pending approval card grows a checkbox. When ≥1 selected, a floating action bar appears at the bottom with "N selected · Select all · Clear · Reject all · Approve all". The parent loops sequentially through the per-record SDK calls so a partial failure produces "X done, Y failed" instead of a confusing all-or-nothing rollback. Reject prompts for a reason once and applies to the whole picked set. 13 new ARB keys cover the strings the four features needed. Studio's tests stay green. Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
parent
f90d8cc7a7
commit
2002486828
13 changed files with 1215 additions and 64 deletions
|
|
@ -406,6 +406,50 @@
|
|||
"error": { "type": "String" }
|
||||
}
|
||||
},
|
||||
"flowsMissingModulesLabel": "Braucht:",
|
||||
"flowsRunDisabledTooltip": "Erst die fehlenden Module installieren.",
|
||||
"welcomeChecklistAllSetTitle": "Du bist eingerichtet.",
|
||||
"welcomeChecklistAllSetBody": "Drei Stränge, an denen du als nächstes ziehen kannst:",
|
||||
"welcomeChecklistNextAuditTitle": "Audit-Log lesen",
|
||||
"welcomeChecklistNextAuditBody": "Jede Installation, jeder Flow-Lauf, jede Freigabe landet im hash-verketteten Log. Im Protokoll-Tab siehst du, was dein Hub gemacht hat.",
|
||||
"welcomeChecklistNextAuditButton": "Protokoll öffnen",
|
||||
"welcomeChecklistNextTodayTitle": "Daily-Today-Story einrichten",
|
||||
"welcomeChecklistNextTodayBody": "tools/today/propose.sh per Cron laufen lassen und die Editorial-Karte im Store füllt sich mit operator-kuratierten Stories.",
|
||||
"welcomeChecklistNextTodayButton": "Today-Doku öffnen",
|
||||
"welcomeChecklistNextModuleTitle": "Eigenes Modul bauen",
|
||||
"welcomeChecklistNextModuleBody": "Mit `fai new module <name>` ein Rust+WASM-Scaffold erzeugen. Das module-sdk übernimmt die WIT-Plumbing; du schreibst nur ein typisiertes invoke.",
|
||||
"welcomeChecklistNextModuleButton": "Doku lesen",
|
||||
"auditGroupToday": "HEUTE",
|
||||
"auditGroupYesterday": "GESTERN",
|
||||
"auditGroupThisWeek": "DIESE WOCHE",
|
||||
"auditGroupOlder": "ÄLTER",
|
||||
"auditEventViewFlowRun": "Flow-Lauf ansehen",
|
||||
"auditFlowRunDialogTitle": "Flow-Lauf · {flow}",
|
||||
"@auditFlowRunDialogTitle": { "placeholders": { "flow": { "type": "String" } } },
|
||||
"auditFlowRunDialogSubtitle": "{n} {n, plural, =1{Ereignis} other{Ereignisse}} für Lauf {execution}",
|
||||
"@auditFlowRunDialogSubtitle": {
|
||||
"placeholders": {
|
||||
"n": { "type": "int" },
|
||||
"execution": { "type": "String" }
|
||||
}
|
||||
},
|
||||
"approvalsSelectAll": "Alle wählen",
|
||||
"approvalsClearSelection": "Auswahl aufheben",
|
||||
"approvalsBatchSelected": "{n} ausgewählt",
|
||||
"@approvalsBatchSelected": { "placeholders": { "n": { "type": "int" } } },
|
||||
"approvalsBatchApprove": "Alle freigeben",
|
||||
"approvalsBatchReject": "Alle ablehnen",
|
||||
"approvalsBatchApproveDoneToast": "{n} Freigaben erteilt.",
|
||||
"@approvalsBatchApproveDoneToast": { "placeholders": { "n": { "type": "int" } } },
|
||||
"approvalsBatchRejectDoneToast": "{n} Freigaben abgelehnt.",
|
||||
"@approvalsBatchRejectDoneToast": { "placeholders": { "n": { "type": "int" } } },
|
||||
"approvalsBatchPartialFailure": "{ok} erledigt, {failed} fehlgeschlagen.",
|
||||
"@approvalsBatchPartialFailure": {
|
||||
"placeholders": {
|
||||
"ok": { "type": "int" },
|
||||
"failed": { "type": "int" }
|
||||
}
|
||||
},
|
||||
"flowsRunButton": "Starten",
|
||||
"flowsRunningTitle": "{name} läuft",
|
||||
"@flowsRunningTitle": { "placeholders": { "name": { "type": "String" } } },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue