FPSMS-frontend
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kelvin.yau ea9ec91527 new po ui преди 2 седмици
..
details new po ui преди 2 седмици
detailsGrid new po ui преди 2 седмици
layout new po ui преди 2 седмици
mock new po ui преди 2 седмици
search new po ui преди 2 седмици
shared new po ui преди 2 седмици
PoWorkbenchShell.tsx new po ui преди 2 седмици
README.md new po ui преди 2 седмици
types.ts new po ui преди 2 седмици

README.md

PO Workbench module

Purchase order receiving workbench at /po/workbench.

Public API

Only PoWorkbenchShell is imported from outside this folder (via PoWorkbenchPageClient). Do not import subfolders from other routes.

Layout (desktop)

searchCriteria  |  detailsHeader
searchResults   |  details (form + line grid)
  • layout/PoWorkbenchShell 2×2 grid tokens and PoWorkbenchRegion pane chrome.
  • search/ — Criteria bar, advanced filters, PO list, /po/list hook and mappers.
  • details/ — Selected PO summary header.
  • detailsGrid/ — Receipt form and four-column line grid (mock lines until detail API).
  • shared/ — Result summary, receive status chip, shared icon/typography tokens.
  • mock/ — Optional local list fixtures (PO_WORKBENCH_LIST_MOCK_ROWS); not used by production shell.

Naming

Kind Pattern Example
Component PoWorkbench + PascalCase PoWorkbenchDetailsGrid.tsx
Hook usePoWorkbench + camelCase usePoWorkbenchListSearch.ts
Helper / layout poWorkbench + camelCase file poWorkbenchDetailsGridLayout.ts
Type PoWorkbench + domain PoWorkbenchListRow
Constant PO_WORKBENCH_* / DETAILS_GRID_* PO_WORKBENCH_GRID_TEMPLATE_COLUMNS

Data flow

  1. User filters → usePoWorkbenchListSearchGET /po/listPoWorkbenchListRow[].
  2. Selection → PoWorkbenchDetailsHeader + PoWorkbenchDetailsGrid.
  3. Detail lines: PO_WORKBENCH_DETAILS_GRID_MOCK_ROWS (replace with API later).

Comments

Source comments are in English. UI strings use i18n (poWorkbench, purchaseOrder for status labels).