No description
Find a file
Hardik 0252e8eab4 feat(approvals): highlight submitter's edits to manager on resubmission
When a submitter edits and resubmits a PO after the manager requested edits
(EDITS_REQUESTED → MGR_REVIEW), the manager now sees exactly what changed.

Changes:
- edit/actions.ts: before mutating the PO, snapshot the current state
  (line items + header fields incl. vessel/account/vendor names) into the
  SUBMITTED action's metadata as { editSnapshot: { lineItems, fields } }.

- po-line-items-editor: add `originalItemsLabel` prop so the diff banner
  message can be context-specific (manager edit vs. submitter resubmit).

- po-detail: detect the resubmit snapshot from the most recent SUBMITTED
  action with editSnapshot metadata; show a "Changes from last review"
  amber table listing every header field the submitter changed (title,
  cost centre, account, vendor, project code, date required, place of
  delivery); pass the resubmit snapshot as originalItems to LineItemsEditor
  so changed line items are highlighted with strikethrough on prior values.
  Resubmit snapshot takes priority over manager-line-edit diff.
  Panel is only visible to MANAGER / SUPERUSER when status is MGR_REVIEW.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-16 04:17:51 +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 feat(approvals): highlight submitter's edits to manager on resubmission 2026-05-16 04:17:51 +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