pelagia-portal/App/app/(portal)/po/[id]
Claude (auto-fix) c503f839e8
All checks were successful
PR checks / checks (pull_request) Successful in 46s
PR checks / integration (pull_request) Successful in 31s
feat(po): make vendor field a searchable combobox
The vendor field on the PO forms was a plain native <select>, forcing
users to scroll the full vendor list. Mirror the item-search UX with a
searchable combobox that filters by vendor name and formal code
(vendorId), case-insensitively. The vendor list is already client-side,
so this is a pure in-memory filter — no API or DB change.

New VendorSelect component (components/ui/vendor-select.tsx) is a
self-contained portal-rendered combobox posting a hidden vendorId input,
so it drops into all three PO forms unchanged on the server:
- po/new/new-po-form
- po/[id]/edit/edit-po-form
- approvals/[id]/manager-edit-po-form

Preserves the optional field, "No vendor selected" empty option, and the
"{name} (CODE)" / "(unverified)" label. Unverified vendors (null code)
remain findable by name. Adds unit tests for the filter logic and
component behaviour.

Fixes #109
2026-06-24 05:16:57 +05:30
..
edit feat(po): make vendor field a searchable combobox 2026-06-24 05:16:57 +05:30
receipt fix(receipt): upsert Receipt record on repeat confirmations with notes 2026-06-19 04:01:26 +05:30
actions.ts feat(po): cancel POs (manager/superuser) + optional supersede link (#53) 2026-06-21 12:20:54 +05:30
email-actions.ts feat(po): email PO to vendor — PDF link in an Outlook draft (#14) 2026-06-24 02:45:48 +05:30
page.tsx Merge remote-tracking branch 'origin/master' into feat/email-po-to-vendor 2026-06-24 02:50:32 +05:30
vendor-id-form.tsx fix(ui): reset pending state on success for all save/confirm buttons 2026-05-27 04:36:29 +05:30