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.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
MES phone layout, round 3 — implementation plan
Spec / source: .ai/specs/2026-10-07-mes-phone-round-2.md (round 3 fixes its review findings)
Status: approved
Evidence: round-2 reviews in the session scratch mes-r2/ (review-layout.md 65, review-nav.md 74, review-operator.md 66, ac-report.md)
Branch: feat/mobile-redesign
🛑 Never commit. Adapt, never add. Keep green Start and red Pause. Phone-only changes use max-md: or useViewport().isPhone.
Decisions taken without the owner (the owner asked for no check-ins)
| Finding | Decision | Why |
|---|---|---|
| Inspection: move Reject and Partial into ⋯ (layout P1-1) | Not done. The 3 buttons share 1 row (flex-1) |
Spec 3.1.4 was owner-approved; 1 row fixes the height without moving actions |
| My Hours: Clock In in flow, no fixed bar (nav P1-7) | Not done. Fixed bar kept; recorded as an exception to R13.2 | Spec 1.7.2 was owner-approved |
| Finish returns to the origin, also on desktop (nav P1-1 step 3) | Done | It extends the owner-approved Back-to-origin change; flagged in the report |
Lift a shared AppBar into @carbon/react (nav P2-10) |
Deferred to a later round | A refactor, not a phone fault |
| Where extra timers go with 3 work types (nav P1-2 step 4) | Deferred | Needs an owner answer |
Progress
Owner: agent A — Operation and job graph (JobOperation.tsx, Controls.tsx, packages/react/src/BarProgress.tsx, JobDag.tsx, job.$jobId.tsx)
- A1: Below 768px render the
Timesmeters as the first block of the Details scroll content, after the context row; hide the[grid-area:status]copy withmax-md:hidden(layout P0-2.2, nav P1-6) - A2: Below 768px show the running label as the caption under the Pause button, not as its own row (layout P0-2.1)
- A3: Tab row
max-md:py-0; tabs stay 44px (layout P0-2.3) - A4: Facts row wraps on phones:
max-md:flex-wrap max-md:overflow-visible max-md:gap-y-1(layout P1-2) - A5: Move the job ⋮ menu into the
MesAppBaractions on phones; the context-row copy ismd:only (nav P2-8). Its label is alreadyt\More options`` - A6: Materials: trailing control in a fixed
w-28 justify-endslot; list full-bleed on phones (layout P2) - A7: Due Date row on 1 line on phones ("Sep 30, 2026 · Due last week") (layout P2)
- A8: Job graph on phones: dagre
nodesep: 24,ranksep: 56; the toolbar floats bottom-right (max-md:absolute max-md:bottom-4 max-md:right-4) (layout P0-3).minZoom: 0.6on fit is already in - A9: Operation dock carries
data-mes-bottom-barand--mes-bottom-bar-h: 91px(Controls.tsx) for the toast rule (B5)
Owner: agent B — Inspection, Assembly, origin, toasts, nav sheet
- B1: Inspection action bar is 1 row: 3 buttons
flex-1instead ofmin-w-[calc(50%-0.25rem)](InspectionView.tsx~`:924`) - B2: Inspection timer
aria-labelthrough Lingui (:1460); Characteristicth/tdmax-md:max-w-[150px], gauge pickerw-full min-w-0(InspectionMeasurementMatrix.tsx); meta bar wraps on phonesmax-md:h-auto max-md:flex-wrap max-md:py-1.5 - B3: Assembly: Lingui for "Complete", "Done", "More actions" and the timer labels; below 768px Complete moves to a bottom action bar like Inspection's Accept; phone title is the job ID, item ID in the subtitle (nav P1-3)
- B4: Origin through actions: hidden
frominQuantityModal;complete.tsxandfinish.tsxredirect to the origin (nav P1-1) - B5: Toasts above every bottom bar:
data-mes-bottom-bar+--mes-bottom-bar-hon the Picking footer, Inspection bar, Operation dock (attribute only — agent A owns that file, so B adds the attribute through a wrapper prop if needed, or reports it), My Hours bar; extend the toast rule inapps/mes/app/styles/tailwind.css(nav P1-4) - B6: Nav sheet:
scroll-fadeon the scroller, titlemax-md:text-[17px] max-md:font-semibold, remove the deadw-[17rem] max-w-[85vw](NavRail.tsx); close the sheet when its current row is tapped (nav P1-5, P2-11, P2-15) - B7:
useOriginlabels a job-graph origin "Job" (new Lingui string) (nav P2-12); More tab getsaria-haspopup="dialog"andaria-expanded(TabBar.tsx,MesTabBar.tsx) (nav P2-14); Console pill below the app bar on phones (nav P2-16)
Owner: main session — cards, toolbars, list pages
- M1: Schedule lone column full width: phone board is a plain snap scroller, card
max-md:max-w-none(operator P0-1, layout P0-1) - M2: Lone-column cards align to the 16px gutter (
group/column,max-md:group-only/column:px-4) - M3: Work cards: no band seam (
CardHeader max-md:pb-1,CardContent max-md:border-t-0 max-md:pt-1); short duration on phones (layout P1-4) - M4: Toolbar spacing
max-md:pt-3on Schedule and Assigned (layout P1-5) - M5: Jobs rows in 3 lines: tracking and avatar on line 1 (layout P1-6)
- M6: Picking detail: status in the app bar subtitle; name
md:truncateso 2 lines show on phones; lines full-bleed (layout P1-7) - M7: Picking phone Finish is
primaryand 48px (operator P2-1, P2-3) - M8: My Hours: card title hidden on phones; Clock In 48px (operator P2-3, P2-4). Also hide the card header when nothing is clocked in (layout P1-8)
- M9: Dispatch: the Description card was blank on every width because
generateHTMLreturns "" on the server and hydration keeps that markup; it now renders client-only; fold "Time Worked" into the body; Add and remove-part buttonslg(layout P1-3, operator P2-2) - M10: Maintenance tabs bleed to the edge; avatar name
text-xs(layout P2) - M11: Operation: Completed value
text-2xl font-semibold, per-piece time muted on phones, Issue labelled, quantity foreground, job ⋮ 44px and ID once, larger running label, captions and dot (operator P1-2…P1-5) - M12: Inspection status badge in the meta bar on phones; timer caption 12px (operator P1-6)
- M13: Job graph fit no smaller than 0.6 on phones (operator P1-7)
Verify (main session)
- V1:
pnpm exec turbo run typecheck --filter=mes --filter=erp --filter=@carbon/react; Biome on changed files;pnpm lingui:extract && pnpm lingui:clean - V2: Browser at 393×852: AC 7 passes (card bottoms 458 and 766, tab bar at 798), overflow 393 on all screens, the round-2 screenshot set re-taken into
mes-r3/ - V3: Browser at 1280×800: Schedule, Jobs, Operation, Picking, Inspection unchanged except the desktop Finish destination
- V4: Round-3 review by 3 read-only reviewers (layout, navigation, operator); repeat rounds until each scores ≥ 75
Run notes
- Inspection phone bar: with 3 buttons in 1 row, "Complete passed N" truncated to "C". It now takes its own full-width row only when passed units wait (
--mes-bottom-bar-h121px); otherwise the bar is 1 row. - Dispatch Description was blank at every width:
generateHTMLreturns "" during SSR and hydration keeps it. Both rich-text blocks now render client-only.