fix: On new PO screen Vendors should have search #110

Merged
shad0w merged 1 commit from claude/issue-109 into master 2026-06-23 23:52:48 +00:00
Owner

Automated fix by Claude Code for #109.

Closes #109

Review, merge, then create a release tag (vX.Y.Z) to deploy.

Automated fix by Claude Code for #109. Closes #109 Review, merge, then create a release tag (vX.Y.Z) to deploy.
shad0w added 1 commit 2026-06-23 23:47:12 +00:00
feat(po): make vendor field a searchable combobox
All checks were successful
PR checks / checks (pull_request) Successful in 46s
PR checks / integration (pull_request) Successful in 31s
c503f839e8
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
shad0w merged commit 7245bb1962 into master 2026-06-23 23:52:48 +00:00
Sign in to join this conversation.
No description provided.