No description
A draft PO had no way to be submitted without creating a brand new PO. Two surfaces are now fixed: Edit page (/po/[id]/edit): - updatePo action now accepts intent "submit" (alongside "save" and "resubmit"), which transitions a DRAFT PO to MGR_REVIEW, creates a SUBMITTED action, and fires notifications — identical behaviour to the new-PO submit flow - EditPoForm shows a primary "Submit for Approval" button when the PO is in DRAFT status; "Resubmit for Approval" remains for EDITS_REQUESTED PO detail page (/po/[id]): - New submitDraftPo server action in po/[id]/actions.ts handles the same DRAFT → MGR_REVIEW transition without requiring the full edit form - New SubmitDraftButton client component renders next to the Edit link in the detail header for DRAFT POs owned by the current user - Button order: Edit · Submit for Approval · Discard Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .claude | ||
| App/pelagia-portal | ||
| design_handoff_pelagia_portal | ||
| GstService | ||
| Progress | ||
| Prototype | ||
| Spec | ||
| .gitignore | ||
| DESIGN.md | ||
| generate_po.py | ||
| inspect_po.py | ||
| PLAYRIGHT_TEST_DESIGN.md | ||