Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
ERP phone redesign of 12 screens — implementation plan
Spec: .ai/specs/2026-10-08-erp-phone-detail-redesign.md (approved 2026-10-08)
Status: approved
Research: .ai/research/2026-10-08-erp-phone-redesign-mapping.md (file:line for every screen)
Designs: local-docs/mobile-design/review-2026-10-08/index.html (after-*.json)
Branch: feat/mobile-redesign
🛑 Never commit. The owner commits.
🛑 Desktop must not change. Gate every change with max-md: / md:hidden classes or useViewport().isPhone.
🛑 Adapt, don't add: no new data, no new features. Every action that exists today must stay reachable.
🛑 Every new user-facing string uses Lingui (useLingui().t or <Trans>).
🛑 If an assumption in a task is false, STOP and report. Do not improvise.
Paths are relative to apps/erp/app/ unless they start with packages/ or .ai/.
Progress
- Task 1: One ⋯ per record on phones (S3)
- Task 2: Icon cell in the record action bar (S4)
- Task 3: Split button shows only its main action in the bar (S5)
- Task 4: Page items in the record app-bar ⋯ (S6)
- Task 5: Record tab setter (S7)
- Task 6: Files cards on phones (S8)
- Task 7:
emptyStateprop onSortableList(S9) - Task 8: Trailing row action in phone lists (S10)
- Task 9: Extra items in the list toolbar ⋯ (S11)
- Task 10: Subtitle under the section switcher title (S12)
- Task 11: Detail page tops: app bar subtitle and hero subtitle (S1, S2)
- Task 12: Sales Order body
- Task 13: Purchase Order body
- Task 14: Quote body
- Task 15: Quotes list rows
- Task 16: Job body
- Task 17: Part body
- Task 18: Quantity detail
- Task 19: Storage Unit edit sheet
- Task 20: Picking List detail
- Task 21: Issue detail
- Task 22: Production and Purchasing Planning
- Task 23: Strings, typecheck, lint
- Task 24: Browser verification at 393 and 1440
Dependencies
- Tasks 1–10 are independent of each other (shared parts). Run them in any order.
- Task 11 needs nothing.
- Tasks 12, 13, 16 need Tasks 1–3. Task 13 also needs Task 5. Tasks 16 and 17 need Tasks 4 and 7.
- Tasks 12–14, 20 and 21 need Task 6 where they touch Files cards.
- Task 22 needs Tasks 8, 9, 10.
- Task 23 needs all code tasks. Task 24 needs Task 23.
Shared commands
# Typecheck (scoped; whole-repo typecheck runs out of memory)
pnpm exec turbo run typecheck --filter=erp --filter=@carbon/react --filter=@carbon/printing
# Expected: "Tasks: N successful, N total"
# Lint the files you changed
pnpm exec biome check --write <changed files>
# Expected: no errors (pre-existing warnings are fine)
Task 1: One ⋯ per record on phones (S3)
Depends on: none Files:
- Modify:
components/Layout/RecordHeader.tsx—RecordPhoneChrome(about:166-247) - Precedent: the current
RecordPhoneChromeapp-barDropdownMenu(:189-212)
Steps:
- Make the app-bar
DropdownMenucontrolled by the existinguseOverflowSheetstore:open={open} onOpenChange={setOpen}. - Inside its
DropdownMenuContent, keep "Copy ID" and{menu}first. - If
hasOverflowis true, add aDropdownMenuSeparatorand then<overflowSlot.Target className="flex flex-col [&>*]:w-full" />after{menu}. - Render the app-bar ⋯ when
menu || copyValue || hasOverflowis true. - In the
BottomBar, delete the ⋯IconButtonthat opened the overflow sheet. - Delete the "Actions"
BottomSheetthat heldoverflowSlot.Target. - Keep
closeOverflowas the rowonSelect. It now closes the app-bar menu, because the menu reads the same store.
Verify:
pnpm exec turbo run typecheck --filter=erp
# Expected: success
Manual: on a phone (393px), SO000025's app bar ⋯ lists Copy ID, the menu items, then the overflow actions. The bottom bar has no ⋯.
Out of scope: desktop header row; what each header puts in menu or overflow.
If an overflow action opens its own dropdown and that dropdown fails inside the menu sheet, STOP and report.
Task 2: Icon cell in the record action bar (S4)
Depends on: none Files:
- Modify:
packages/react/src/ActionPresentation.tsx— addiconOnly?: booleanto thebarkind. - Modify:
packages/react/src/Button.tsx— icon-only bar rendering (around the presentation block, about:205-260). - Modify:
components/Layout/RecordHeader.tsx— a newiconSlotandRecordAction slot="icon". - Precedent:
presentationsandslotsmaps inRecordHeader.tsx:58-70.
Steps:
- In
ActionPresentation, change the bar kind to{ kind: "bar"; emphasis: "primary" | "secondary"; iconOnly?: boolean }. - In
Button, ifpresentation?.kind === "bar" && presentation.iconOnly:- Render with
isIcon,size="lg", variantsecondary. - Do not add
w-full. Addshrink-0. - Render
leftIcononly. Putchildrenin<span className="sr-only">. Do not renderrightIcon.
- Render with
- In
RecordHeader.tsx, createconst iconSlot = createPortalSlot();. - Add
icon: { kind: "bar", emphasis: "secondary", iconOnly: true }topresentationsandicon: iconSlottoslots. Extend theslotprop type with"icon". - In the
BottomBarrow, render<iconSlot.Target className="flex shrink-0 empty:hidden" />before the primary target. - Show the bar when the icon slot is filled too (
iconSlot.useFilled()).
Verify: typecheck (shared command). Expected: success.
Out of scope: moving any action into the icon slot (Tasks 12–14 do that).
Task 3: Split button shows only its main action in the bar (S5)
Depends on: none Files:
- Modify:
packages/react/src/SplitButton.tsx(:40-125)
Steps:
- If
presentation?.kind === "bar", do not render the chevronDropdownMenu. - Keep the main
Buttonfull width (min-w-0 flex-1) and droprounded-r-nonein that case. - Do not change the
rowkind or desktop.
Verify: typecheck. Manual in Tasks 13 and 16.
Out of scope: where the dropdown items go (Tasks 13 and 16 add them to the ⋯).
Task 4: Page items in the record app-bar ⋯ (S6)
Depends on: none Files:
- Modify:
components/Layout/RecordHeader.tsx - Precedent:
createValueSlotincomponents/Layout/Mobile/slots.tsx:66-97;recordTabsSlotincomponents/Layout/Panels.tsx:26.
Steps:
- Export
recordMenuSlot = createValueSlot<ReactNode>()fromRecordHeader.tsx. - In
RecordPhoneChrome, readconst pageMenu = recordMenuSlot.useValue();. - Render
{pageMenu}after{menu}and before the overflow target, with aDropdownMenuSeparatorbetween them. - Count
pageMenuin the condition that shows the app-bar ⋯.
Verify: typecheck. Manual in Tasks 16 and 17.
Out of scope: callers (Tasks 16, 17).
Task 5: Record tab setter (S7)
Depends on: none Files:
- Modify:
components/Layout/Panels.tsx—CompactRecordTabs(:114-196)
Steps:
- Export
RecordPanelContext = createContext<(panel: "content" | "explorer" | "properties") => void>(() => {}). - In
CompactRecordTabs, wrap the panel body in<RecordPanelContext.Provider value={setPanel}>. - Export a hook
useShowRecordPanel()that returns the context value.
Verify: typecheck.
Out of scope: desktop panels.
Task 6: Files cards on phones (S8)
Depends on: none Files:
- Modify:
modules/sales/ui/Opportunity/OpportunityDocuments.tsx— header New:104-119and:414-437, thead:121-135 - Modify:
modules/purchasing/ui/SupplierInteraction/SupplierInteractionDocuments.tsx— thead:100-105, New:345 - Modify:
components/Documents.tsx— New:237-249, thead:253-266 - Precedent:
components/RecordDocuments.tsx:129(thead hidden on phones when empty)
Steps:
- Add
max-md:hiddento the card-header "New"Filebutton (or itsCardAction) in each file. - If the file list is empty, add
max-md:hiddento the table header, asRecordDocuments.tsx:129does. - Keep
FileDropzone's phone "Upload" button as the only upload control.
Verify: typecheck. Manual: SO000025 Files card shows one "Upload" and no "Name Size Created" row.
Out of scope: desktop Files cards; RecordDocuments.tsx.
Task 7: emptyState prop on SortableList (S9)
Depends on: none Files:
- Modify:
components/SortableList.tsx(:325-327returns<Empty />) - Precedent:
components/Table/components/Compact/CompactEmpty.tsx
Steps:
- Add an optional prop
emptyState?: ReactNode. - If
itemsis empty andemptyStateis set, returnemptyState. Otherwise return<Empty />as today.
Verify: typecheck.
Out of scope: components/Empty.tsx (about 49 users).
Task 8: Trailing row action in phone lists (S10)
Depends on: none Files:
- Modify:
components/Table/types.ts:48—mobile?: "P1" | "P2" | "P3" | "P4" | "action"; - Modify:
components/Table/components/Compact/resolveSlots.ts— addaction?: Column<T, unknown>toCompactSlots; set it to the first column withmeta.mobile === "action". - Modify:
components/Table/components/Compact/resolveSlots.test.ts— one test: a column markedactionresolves toslots.actionand to no other slot. - Modify:
components/Table/components/Compact/CompactRow.tsx
Steps:
- Make the type and
resolveSlotschanges above. - In
CompactRow, renderrenderCell(row, slots.action)after the text column and before the expand button. Userelative z-10 shrink-0 self-center [&_button]:h-11 [&_button]:min-w-11. - If
selectionis set, do not render the action cell.
Verify:
pnpm --filter erp exec vitest run app/components/Table/components/Compact/resolveSlots.test.ts
# Expected: all tests pass, including the new one
Out of scope: any table annotation (Task 22).
Task 9: Extra items in the list toolbar ⋯ (S11)
Depends on: none Files:
- Modify:
components/Table/Table.tsx(props near:170, compact render near:1109) - Modify:
components/Table/components/Compact/CompactList.tsx - Modify:
components/Table/components/Compact/CompactToolbar.tsx(:60-135)
Steps:
- Add
mobileMenuItems?: ReactNodetoTable. Pass it toCompactList, then toCompactToolbar. - In
CompactToolbar, includemobileMenuItemsinhasMenu. - Render
{mobileMenuItems}first in theDropdownMenuContent, then aDropdownMenuSeparatorif more items follow.
Verify: typecheck.
Out of scope: desktop toolbar.
Task 10: Subtitle under the section switcher title (S12)
Depends on: none Files:
- Modify:
components/Layout/Mobile/MobileAppBar.tsx(:79-104)
Steps:
- In the
canSwitchbranch, wrap the title button content in a column. - Under
titleText, rendersubtitlewith the same classes the non-switch branch uses (min-w-0 max-w-full truncate text-xs text-muted-foreground). - Keep the chevron beside the title line, not beside the subtitle.
Verify: typecheck. Manual in Task 22.
Task 11: Detail page tops: app bar subtitle and hero subtitle (S1, S2)
Depends on: none Files and values (table rows; header paths in the research file §Part A and §Part B):
| Screen | Header file | Hero subtitle |
Route that sets the app bar subtitle |
|---|---|---|---|
| Sales Order | modules/sales/ui/SalesOrder/SalesOrderHeader.tsx |
customer name | routes/x+/sales-order+/$orderId.tsx → "Sales Order" |
| Purchase Order | modules/purchasing/ui/PurchaseOrder/PurchaseOrderHeader.tsx |
supplier name, then " · Rev N" when revisionId > 0 |
routes/x+/purchase-order+/$orderId.tsx → "Purchase Order" |
| Quote | modules/sales/ui/Quotes/QuoteHeader.tsx |
customer name, then " · Rev N" when revisionId > 0 |
routes/x+/quote+/$quoteId.tsx → "Quote" |
| Job | modules/production/ui/Jobs/JobHeader.tsx |
item readable ID + " · Qty N" | routes/x+/job+/$jobId.tsx → "Job" |
| Part | modules/items/ui/Parts/PartHeader.tsx |
part name | routes/x+/part+/$itemId.tsx → "Part" |
| Quantity | routes/x+/inventory+/quantities+/$itemId.tsx (standalone RecordHero, precedent InspectionView.tsx:506) |
item name | same route → "Quantities" |
| Picking List | modules/inventory/ui/PickingLists/PickingListHeader.tsx |
first distinct pickingListLines[].job.jobId, "+N" when more, then " · " + assignee full name |
routes/x+/picking-list+/$pickingListId.tsx → "Picking List" |
| Issue | modules/quality/ui/Issue/IssueHeader.tsx |
nonConformance.name |
routes/x+/issue+/$id.tsx → "Issue" |
Steps:
- For each row, pass the hero value as
subtitletoRecordHeader. Read names from the route data the header already uses. - In each route, call
useSetAppBarOverride(useMemo(() => (isPhone ? { subtitle: t\Sales Order` } : null), [isPhone, t])). Precedent:components/NewRecordPage.tsx:20`. - Do not change any breadcrumb (
handle). - For the picking list assignee, read
assigneeUser.fullName. If the assignee was just changed optimistically, look the name up withusePeople().
Verify: typecheck. Manual: SO000025 app bar reads "SO000025 / Sales Order"; the hero line shows the customer with an ellipsis.
Out of scope: desktop header row (it never shows subtitle).
Task 12: Sales Order body
Depends on: 1, 2, 6, 11 Files:
- Modify:
modules/sales/ui/SalesOrder/SalesOrderSummary.tsx—LineItems(:346-708), totals (:244-339) - Modify:
modules/sales/ui/SalesOrder/SalesOrderHeader.tsx— PreviewRecordAction(:391-415) - Precedent for the phone row:
components/Layout/Mobile/SheetRow.tsx(SheetRowContent)
Steps:
- On phones, render each line as one row: line 1 part number (truncate) + line total (
shrink-0), line 2 part name (muted, truncate), line 3 "{qty} × {unit price} {unit}". - On phones, make the row a
Linktopath.to.salesOrderLine(orderId, lineId). Hide the Edit link, the badges and the inline expand (md:only). - In totals, on phones, show a "Shipping" row with the amount. Its tap calls the existing
onEditShippingCost. Hide the "Add Shipping" link on phones. - Change the Preview
RecordActiontoslot="icon". - Keep the card order:
OpportunityState, summary, Notes, Files, Shipping, Payment.
Verify: typecheck. Manual: AC 1, 4, 5 of the spec.
Out of scope: desktop summary; line page route.
Task 13: Purchase Order body
Depends on: 1, 2, 3, 5, 6, 11 Files:
- Modify:
modules/purchasing/ui/PurchaseOrder/PurchaseOrderSummary.tsx—LineItems(:53+), badge (:200-210) - Modify:
modules/purchasing/ui/PurchaseOrder/PurchaseOrderHeader.tsx— Preview (:329-353), Finalize split (:355-385)
Steps:
- Apply Task 12 steps 1–2 with
path.to.purchaseOrderLine. - Remove the "1 ⇄" badge on phones.
- On phones, show the first 3 lines. If there are more, show a "See all {count}" button. It calls
useShowRecordPanel()("explorer"). - Change Preview to
slot="icon". - If
isPhone, add aRecordAction slot="overflow"Button "Mark as Planned" with the existing handler (:203-208). Do not render it on desktop.
Verify: typecheck. Manual: AC 2, 6.
Task 14: Quote body
Depends on: 1, 2, 6, 11 Files:
- Modify:
modules/sales/ui/Quotes/QuoteSummary.tsx— rows:160-275 - Modify:
modules/sales/ui/Quotes/QuoteHeader.tsx— Preview:197-238, slots:104-112, Reopen:136-155 - Modify:
modules/sales/ui/Quotes/QuotePaymentForm.tsx(:49-61),QuoteShipmentForm.tsx(:81-101)
Steps:
- On phones, restyle each row as in Task 12 step 1. Keep tap-to-expand and
LinePricingOptions. Hide the Edit link and badges on phones. - Change Preview to
slot="icon". Leave Share (status Sent) as it is. - If
isPhoneand the status is Expired, add a primaryRecordAction"Reopen" with the existing reopen handler. Keep themenuitem. - In both forms, if
isQuoteLockedand on a phone, show one muted line: "Locked while the quote is {status}. Reopen it to edit."
Verify: typecheck. Manual: Q000008 bar shows Preview icon + Reopen; tapping a line expands it.
Task 15: Quotes list rows
Depends on: none Files:
- Modify:
modules/sales/ui/Quotes/QuotesTable.tsx— status cell:117-145, customer cell:98-115 - Precedent:
QuoteStatus.tsx:19;packages/react/src/DateTime.tsx:48-52
Steps:
- In the status cell, for Draft: keep
BarProgresswithmax-md:hidden. Add amd:hiddenspan with<QuoteStatus status="Draft" />and "{completedLines} of {lines} lines complete". - In the customer cell, add a
md:hiddenspan " · Exp. {date}" usingDateTimewithdateOptions={{ month: "short", day: "numeric" }}. Show it only whenexpirationDateis set.
Verify: typecheck. Manual: AC 16.
Task 16: Job body
Depends on: 1, 3, 4, 7, 11 Files:
- Modify:
modules/production/ui/Jobs/JobMakeMethodTools.tsx(:309-385) - Modify:
modules/production/ui/Jobs/JobBillOfProcess.tsx(:1049-1078),JobBillOfMaterial.tsx(:559-586) - Modify:
modules/production/ui/Jobs/JobEstimatesVsActuals.tsx(:311-329) - Modify:
modules/production/ui/Jobs/JobHeader.tsx— Pause:393-441, Release split:443-469 - Precedent for the empty state:
components/Table/components/Compact/CompactEmpty.tsx
Steps:
- In
JobMakeMethodTools, addmax-md:hiddento theMenubar. ProviderecordMenuSlot.useProvide(...)withDropdownMenuItems for Get Method, Save Method, Configure and Item Master. Each item calls the same disclosure the Menubar button opens. Memoize the node. - Pass
emptyStatetoSortableListin BOP and BOM: icon tile, "No operations yet" / "No materials yet", one sentence, and the existing add action. - In Estimates vs Actual, on phones, stack the title over a full-width
TabsList(max-md:flex-col max-md:items-stretch). - In
JobHeader, ifisPhoneand the status is not Ready or In Progress, do not render the Pause action. - If
isPhone, add aRecordAction slot="overflow""Mark as Planned" with the existing handler.
Verify: typecheck. Manual: AC 7, 8.
If JobMakeMethodTools mounts on job+/$jobId.make.$methodId.tsx too, the slot items show there as well. That is correct.
Task 17: Part body
Depends on: 1, 4, 7, 11 Files:
- Modify:
modules/items/ui/Item/MakeMethodTools.tsx(:234-380) - Modify:
routes/x+/part+/$itemId.details.tsx(Bill of Process at:337) - Modify:
modules/items/ui/Item/ItemManufacturingForm.tsx(:96-103) - Modify:
components/SortableList.tsxonly if rows clip (step 4)
Steps:
- Apply Task 16 step 1 to
MakeMethodTools(Get Method, Save Method, Item Master). Wrap "Item Master" in Lingui. - On phones, render the version dropdown as a chip above Bill of Process. Extract the version control into
MakeMethodVersionSelectin the same folder. Render it in the tools on desktop and aboveBillOfProcesson phones (md:hidden). - In
ItemManufacturingForm, on phones, make Save full width. Disable it until the form has touched fields. Precedent:DefaultDisabledSubmit(packages/form/src/components/Submit.tsx:42-58). - Open ADCS-001 on a phone. If BOP/BOM row text clips, relax the
truncateinSortableList.tsx:120tomax-md:whitespace-normalfor the title only. If nothing clips, skip this step. - Pass
emptyStateto BOP and BOM as in Task 16 step 2.
Verify: typecheck. Manual: AC 9.
Task 18: Quantity detail
Depends on: 11 Files:
- Modify:
modules/inventory/ui/Inventory/InventoryDetails.tsx(:57-171) - Modify:
modules/inventory/ui/Inventory/InventoryStorageUnits.tsx(:270-476) - Modify:
modules/inventory/ui/Inventory/InventoryItemHeader.tsx(:47-52) - Modify:
routes/x+/inventory+/quantities+/$itemId.details.tsx(:225-255) - Modify:
components/Table/components/Compact/CompactToolbar.tsx(duplicate ⋯ fix) - Precedent: tiles
routes/x+/sales+/_index.tsx:384; rowsCompactRow.tsxclasses; empty lineCompactEmpty.tsx
Steps:
- Add
variant?: "quantity"toInventoryDetailsandInventoryStorageUnits. Pass it only from$itemId.details.tsx. Every step below applies only whenvariant === "quantity"and on phones. - Grid:
max-md:grid-cols-2 max-md:gap-3. Under PO and SO figures, add "↑ Incoming" / "↓ Outgoing". On the jobs tile, add "Supply / demand". - Usage window: show a "Daily usage" label before the existing
DateSelectchip. - Move the external-link icon to the app-bar ⋯ as "Item Master" (
recordMenuSlotfrom Task 4 is not mounted here; useAppBarActionswith oneDropdownMenu). - Fix the duplicate ⋯: in
CompactToolbar, do not fillAppBarActionswhile acompactFocuspane is shown. Read the state theResizablecompactFocususes (packages/react/src/Resizable.tsx:32-44). If no readable state exists, STOP and report. - Move "Update Inventory" to a
BottomBar(components/Layout/Mobile/ChromeSlots.tsx:38). - Render storage units as phone rows (unit, quantity, tracking ID, expiry). Keep the batch group toggle and the per-row ⋯. If there are no rows, show one line: "No storage unit holds this item."
Verify: typecheck. Manual: AC 10, 11.
Task 19: Storage Unit edit sheet
Depends on: none Files:
- Modify:
modules/inventory/ui/StorageUnits/StorageUnitForm.tsx(:68-178) - Modify:
packages/printing/src/ui/PrintButton.tsx(:30-127) — addlabel?: ReactNode(default stays "Print")
Steps:
- Apply every change only when
isEditingand on phones. - Add
max-md:h-[calc(100dvh-env(safe-area-inset-top)-12px)]toModalDrawerContent. Do not usesize="full". - Render
Submitin the header, left of the ×. Hide the footer Save and Cancel on phones. - In the footer, render
PrintButtonfull width withlabel={t\Print label`}`. - Replace the read-only
Locationwith the read-onlyInputBasepattern at:126-137. Add<Hidden name="locationId" />and the helper text "Set when the unit was created". - On phones, pass no
termIdto Parent Storage Unit and Work Center. Keep Storage Types'termId.
Verify: typecheck. Manual: AC 12.
Task 20: Picking List detail
Depends on: 1, 11 Files:
- Modify:
modules/inventory/ui/PickingLists/PickingListLines.tsx(:180-572) - Modify:
modules/inventory/ui/PickingLists/PickingListHeader.tsx(:108-218) - Modify:
components/Assignee.tsx(:115-205) — controlledopen/onOpenChangeprops - Precedent: overline header
components/Table/components/Compact/CompactList.tsx:295-302
Steps:
- On phones, replace
BarProgresswith an overline header: the job on the left, "{progress}% picked" on the right. - On phones, drop the inner bordered box. Render each line as its own
Card. - Replace the quantity badge with "To pick {n} {unit}" and "Picked {n} {unit}". If
line.status === "Short", add a "Short"Statuspill. - Put Short and Pick on their own row as two
flex-1size="lg"buttons. On phones Pick usesvariant="secondary". Apply the same to Scan and Unpick. - In the header, change the Assignee action to
slot="overflow"as a Button "Assign". It opens theAssigneepicker through the new controlledopenprop.
Verify: typecheck. Manual: AC 13.
Task 21: Issue detail
Depends on: 6, 11 Files:
- Modify:
components/ActionTasks/ActionTaskList.tsx(:94-135),ActionTaskAddModal.tsx(:64-73) - Modify:
modules/quality/ui/Issue/ReviewersList.tsx(:56-187)
Steps:
- On phones, Actions: a
CardAction"Add" button opens the existing add modal. Hide the dashed tile. If empty, show one line: "No actions yet." - On phones, Approval Requirements: always render the card. Its header "Add" opens the empty-state modal while empty. With requirements, it opens the "Add Requirement" modal. Hide the dashed tile. If empty, show "No approval requirements yet."
- Do not add a properties card on Overview.
Verify: typecheck. Manual: AC 14. Also open a Change Notice's Actions card on a phone; it must still work.
Task 22: Production and Purchasing Planning
Depends on: 8, 9, 10 Files:
- Modify:
modules/production/ui/Planning/ProductionPlanningTable.tsx(Order col:487-525, On Hand:433-441, toolbar:587-607) - Modify:
modules/purchasing/ui/Planning/PurchasingPlanningTable.tsx(Order col:563-600, Supplier:440-460, toolbar:661-685) - Modify:
routes/x+/production+/planning.tsx,routes/x+/purchasing+/planning.tsx(app bar subtitle)
Steps:
- Add
meta: { mobile: "action" }to each Order column. - Pass
mobileMenuItemswith aDropdownMenuItem"Recalculate". It callsmrpFetcher.submit({}, { method: "post", action: path.to.api.mrp(locationId) }). Disable it whilemrpFetcher.state !== "idle". - On phones, hide the Recalculate button in
primaryAction. Add onemd:hiddenmuted line: "MRP runs every 3 hours. To run it now, use ⋯ › Recalculate." - In each route, set the app bar subtitle "Production" / "Purchasing" on phones (Task 11 pattern).
- Production: add
meta: { mobile: "P3", mobileLabel: true }to On Hand. - Purchasing: in the Supplier cell, add a
md:hidden" · {onHand} on hand" after the supplier. Wrap "No Supplier" in Lingui.
Verify: typecheck. Manual: AC 15.
Task 23: Strings, typecheck, lint
Depends on: 1–22 Steps:
- Run
pnpm lingui:extract && pnpm lingui:clean. - Run the shared typecheck. Expected: success.
- Run
pnpm exec biome check --writeon every changed file. Expected: no errors. - Run
pnpm --filter erp exec vitest run app/components/Table/components/Compact/resolveSlots.test.ts. Expected: pass.
Task 24: Browser verification at 393 and 1440
Depends on: 23 Steps:
- Log in with the
authskill (ERPhttp://localhost:3000,[email protected]). - At 393×852, check every acceptance criterion 1–16 and 18 of the spec. Screenshot each screen into the session scratchpad.
- At 1440×900, open the 12 screens and compare with
local-docs/mobile-design/review-2026-10-08/shots/desktop behaviour (AC 17). Desktop must look as before. - Close the browser session.
- Write the results under "Run notes" below.
Run notes
- Tasks 1–10 ran in the main session. Five agents started Tasks 11–22 in parallel. The owner stopped them because 4 parallel typechecks used all the RAM. The main session then finished and reviewed every task one group at a time, with one typecheck at the end.
- Verify: one scoped typecheck (
erp,@carbon/react,@carbon/printing) passes.resolveSlots.test.tspasses (5 tests). Biome is clean on every file this plan changed.apps/erp/app/root.tsxhas 2 Biome errors, but that file had uncommitted changes before this plan and this plan does not touch it. - Browser at 393×852: all 12 screens load, and no screen scrolls sideways. Checked: one ⋯ on SO (Copy ID, menu, then Cancel / Ship / Invoice), the Preview icon cell, the SO line link, "See all 30" opening the Lines tab, the Quote Reopen primary, the Job Release-only bar, the Part version chip above Bill of Process, the quantity tiles and Update Inventory bar, the full-screen Storage Unit sheet, the Picking List buttons, the Issue cards, the planning Make / Order buttons, and the Quotes list text.
- Browser at 1440×900: the 11 screens show their desktop layout as before.
- Deviations:
- No commits (the owner commits).
- Task 18 step 5:
compactFocushas no readable state. A value slot (useHideListAppBarMenuinCompactToolbar.tsx) keeps the list's ⋯ out of the quantity page's app bar. - Added after the browser check: on phones the SO and PO summary card hides its repeated ID and truncates the customer / supplier name. The planning "Qty to Order" leaves the phone row, because the Make / Order button shows the same number.
- The planning "Make", "Order" and "Blocked" labels now use Lingui (they show on phone rows).
- Not checked in the browser: saving the Storage Unit sheet, the Assign sheet, the Approval Requirement modals, the Part Save enable rule, and BOP / BOM row clipping with long names (ADCS-001 rows showed no clipping).