feat(approvals): real work-item queue + active-step actions wired to EA2
New Approvals scene at landing chip + scene route. Pulls live work items from /api/ea2/work-items?view=all and renders: - Status counter (running/waiting/blocked) - Hub filter (chip row, dynamic from response) - Queue list (display_name + age + active step + hub + requester) - Selected case detail: active step, dispatch kind, form fields, available actions Clicking an action POSTs to /api/runtime/transactions/<id>/actions/<id> with the signed-in user as actor and refreshes both the transaction and the queue. This proves runtime EA2 writes are working end-to-end beyond just the wizard.
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@ import { buildLiveScenariosFromApi } from "../lib/buildScenarios";
|
||||
import { api, type ApiCall, type Actor } from "../lib/api";
|
||||
import type { ProcessScenario } from "../data/types";
|
||||
|
||||
export type SceneId = "landing" | "mission" | "history" | "studio" | "settings" | "login" | "sso-callback" | "chat" | "agent" | "hub-procurement" | "hub-hr" | "hub-it" | "geo-attendance" | "explainer";
|
||||
export type SceneId = "landing" | "mission" | "history" | "studio" | "settings" | "login" | "sso-callback" | "chat" | "agent" | "hub-procurement" | "hub-hr" | "hub-it" | "geo-attendance" | "explainer" | "approvals";
|
||||
export type DataMode = "snapshot" | "live";
|
||||
export type Theme = "dark" | "light";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user