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:
@@ -13,6 +13,7 @@ import Agent from "./scenes/Agent";
|
||||
import Hub from "./scenes/Hub";
|
||||
import GeoAttendance from "./scenes/GeoAttendance";
|
||||
import Explainer from "./scenes/Explainer";
|
||||
import Approvals from "./scenes/Approvals";
|
||||
import CommandBar from "./components/CommandBar";
|
||||
import Toaster from "./components/Toaster";
|
||||
import Console from "./components/Console";
|
||||
@@ -167,6 +168,7 @@ export default function App() {
|
||||
{scene === "hub-it" && <Hub hub="it" />}
|
||||
{scene === "geo-attendance" && <GeoAttendance />}
|
||||
{scene === "explainer" && <Explainer />}
|
||||
{scene === "approvals" && <Approvals />}
|
||||
{scene === "settings" && <Settings />}
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user