You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Approvals: GET /api/v1/requests has no filter for recently decided requests, so the portal has no Recently decided card #304
Part of #20. Found while building #300 (portal slice 2).
What is missing
The mockup's Approvals tab (mockups/portal/Main.dc.html, the isApprovals block) ends with a "Recently decided" card: the requests that were approved or rejected lately, each with who decided and where it went next. The mockup's GET /api/v1/requests row for the tab (docs/diagrams/portal-architecture/README.md, row 23) names ?status=pending_approval&approver=me only.
GET /api/v1/requests (cmapi/contract/openapi.json, main d51560d, 2026-11-15) filters by status, state, approver=me, clusterId, requestedBy and q. No parameter gives the requests decided recently, or decided by the caller, so the portal could only fetch pages and filter in the browser, which the portal's rules forbid (filters are server parameters).
What the portal does until it exists
The portal's Approvals tab has no "Recently decided" card. A decision made in the tab stays on its card with the mockup's callout until the tab is left. cmapi-portal-ui/MOCKUP-CONTRACT.md lists this as a difference with this issue's number.
Done when
GET /api/v1/requests takes a parameter for decided requests (for example decided=recent, newest decision first), documented and with a recorded sample.
The portal shows the card from it, and the difference line goes.
Activity