pelagia-portal/App/components/ui
Hardik 565f9d5833 feat: searchable accounting code picker + cost centres grouped by site
Accounting Code search (new/edit/import/manager-edit PO forms):
- New SearchableSelect component (components/ui/searchable-select.tsx):
  type-to-filter by code or name, results grouped by sub-category with
  sticky headers, highlighted selected item, clear button, Escape/outside-click
  to dismiss
- Replaces the plain <select> for the main Accounting Code field on all PO forms
- LineItemsEditor per-row account column also uses SearchableSelect (compact size)
  when multi-account mode is active

Cost Centre dropdown reorganised by site:
- New type CostCentreGroup replaces flat CostCentreOption
- Each site becomes an <optgroup> label (unselectable); the site itself is the
  first selectable option inside ("Haldia (Site)"), followed by its vessels
- Vessels with no site assigned appear under an "Unassigned Vessels" group
- Shared helpers buildCostCentreGroups() and buildAccountGroups() in
  lib/cost-centre-groups.ts — used by all four PO form pages

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-30 17:54:43 +05:30
..
admin-dialog.tsx chore: restructure repo — flatten App/pelagia-portal to App, rename Prototype→Wireframe and Spec→Design 2026-05-18 23:18:58 +05:30
badge.tsx chore: restructure repo — flatten App/pelagia-portal to App, rename Prototype→Wireframe and Spec→Design 2026-05-18 23:18:58 +05:30
button.tsx chore: restructure repo — flatten App/pelagia-portal to App, rename Prototype→Wireframe and Spec→Design 2026-05-18 23:18:58 +05:30
card.tsx chore: restructure repo — flatten App/pelagia-portal to App, rename Prototype→Wireframe and Spec→Design 2026-05-18 23:18:58 +05:30
confirm-delete-button.tsx fix(ui): use defined theme colors for danger/warning buttons 2026-05-27 13:11:10 +05:30
confirm-dialog.tsx feat(admin): confirm activate/deactivate via modal popup across all tables 2026-05-29 03:07:04 +05:30
delete-confirm-dialog.tsx feat(admin): collapse row actions into ⋯ dropdown menu 2026-05-29 02:58:54 +05:30
input.tsx chore: restructure repo — flatten App/pelagia-portal to App, rename Prototype→Wireframe and Spec→Design 2026-05-18 23:18:58 +05:30
label.tsx chore: restructure repo — flatten App/pelagia-portal to App, rename Prototype→Wireframe and Spec→Design 2026-05-18 23:18:58 +05:30
row-actions-menu.tsx feat(admin): collapse row actions into ⋯ dropdown menu 2026-05-29 02:58:54 +05:30
searchable-select.tsx feat: searchable accounting code picker + cost centres grouped by site 2026-05-30 17:54:43 +05:30
table-controls.tsx feat(admin): add client-side search, sort, and filter chips to all admin tables 2026-05-29 02:46:52 +05:30
textarea.tsx chore: restructure repo — flatten App/pelagia-portal to App, rename Prototype→Wireframe and Spec→Design 2026-05-18 23:18:58 +05:30
use-table-controls.ts feat(admin): add client-side search, sort, and filter chips to all admin tables 2026-05-29 02:46:52 +05:30