No description
Find a file
Hardik d297fd044f fix(po): add Submit for Approval button on draft PO detail and edit pages
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>
2026-05-16 16:32:44 +05:30
.claude chore(inventory): remove item detail page; move SiteSelect to shared components 2026-05-16 00:07:04 +05:30
App/pelagia-portal fix(po): add Submit for Approval button on draft PO detail and edit pages 2026-05-16 16:32:44 +05:30
design_handoff_pelagia_portal chore(inventory): remove item detail page; move SiteSelect to shared components 2026-05-16 00:07:04 +05:30
GstService fix(gst): correct microservice default port and captcha field name 2026-05-14 17:07:31 +05:30
Progress TODO update 15/05 2026-05-16 03:12:01 +05:30
Prototype chore(inventory): remove item detail page; move SiteSelect to shared components 2026-05-16 00:07:04 +05:30
Spec chore(inventory): remove item detail page; move SiteSelect to shared components 2026-05-16 00:07:04 +05:30
.gitignore chore: initialize Next.js 15 project with Tailwind, TypeScript and tooling config 2026-05-05 23:23:43 +05:30
DESIGN.md chore(inventory): remove item detail page; move SiteSelect to shared components 2026-05-16 00:07:04 +05:30
generate_po.py chore(inventory): remove item detail page; move SiteSelect to shared components 2026-05-16 00:07:04 +05:30
inspect_po.py chore(inventory): remove item detail page; move SiteSelect to shared components 2026-05-16 00:07:04 +05:30
PLAYRIGHT_TEST_DESIGN.md docs: add Playwright test design doc with scripts for inventory sort and tag fixes 2026-05-16 02:43:29 +05:30