Ecto warehouse operations · v0.4

Precise controls for work that has consequences.

This is the browser-based handoff for the Ecto repository. It fixes the interaction model and visual language while leaving room to extend workflows.

Handoff readiness: ready to continue

Foundations and core primitives are coherent. Product-specific patterns still need validation in the new application.

01

Calm by default

Color carries status and intent; decoration stays quiet.

02

Explicit state

Loading, invalid, disabled, selected, and focus states are part of the contract.

03

Stable geometry

Controls and data surfaces should not shift when state changes.

Semantic color

Live

Primary

Success

Warning

Danger

Never consume raw palette values in product UI.

Type roles

Live

Inbound reconciliation

Review received units against the expected manifest.

RCV-2026-0719 · LOT-88421

Geist Sans across the interface; tabular numerals align comparable values.

Iconography

Live
Warehouse
Search
Inventory
Success
Warning
More

Phosphor · Regular · 24px default. Compact controls request 16px or 20px explicitly.

02

Inputs

Labels stay visible, validation sits beside the field, and utility actions share the control boundary.

Search input

Live
⌘ K

Type to inspect the active input state.

Built from the FF input-group boundary. Consumers own debounce, URL state, and data fetching.

Input group

Live
PO
NY

Use the external purchase-order identifier.

Prefix and suffix content use one focus boundary.

Input copy

Live

Shipment URL

Container ID

The result is announced without moving the layout.

Select

Live

Borderless is for dense filter bars; bordered is the form default.

Slider

Live
Confidence threshold

Flag matches below this score for review.

Consequential values can be edited numerically as well as dragged.

Date selector

Live

Single or range on the shared Calendar + Popover. Presets fill common windows; range is the table-filter default.

Form

Live

We'll never share your email with anyone.

The shadcn Field primitive composed with our Input, searchable Combobox, and Button. Label, description, and validation share one structure; controls carry the standard focus wash.

Carded fieldset

Live
Receiving identity

Receiving identity

Keep related controls together without placing the native legend across the card border.

A screen-reader legend names the control group while the visible heading stays inside the bordered surface.

03

Selection

Values are stable domain strings, so reordering options does not corrupt controlled state.

Switch

Live

Switches change an immediate setting; they do not queue a form choice.

Checkbox group

Live
Required receiving checks

Use for zero-to-many choices.

Radio group

Live

Handling priority

Use for exactly one choice.

04

Actions

Button hierarchy follows consequence: one primary action, quiet utility actions, and explicit destructive intent.

Buttons

Live

Loading replaces the label but preserves width expectations in surrounding layouts.

Dropdown

Live

Pointer proximity moves one shared active surface; keyboard navigation follows the same menu anatomy.

05

Workflow and feedback

Navigation, progress, reordering, uploads, and system feedback share one compositional vocabulary while product modules keep their domain policy.

Badges

Live
DraftIn reviewReadyAttentionBlockedProduction
DataGrid · compactDraftAttentionReady
ReadyAttentionSyncedProduction18 records

Static, short metadata. DataGrid uses the same primitive at compact size; actionable values use a button or filter pill.

Breadcrumb

Live

The final item is the current page; intermediate items remain navigable.

Stepper

Live
Map source columns to Ecto fields.

Use for a user-controlled process with a known sequence and distinct content at each step.

Timeline

Live

Receipt created

Northstar Apparel manifest imported.

Count submitted

Morgan Chen counted 1,840 units.

Review decision

Six units still require ownership.

Use for immutable events and audit history. The shared status marker keeps completed, latest, and pending states legible in both themes while the rail stays continuous.

Route transition

Live

Deals

24 active records across three buyers.

Key the shared content boundary by route and supply direction. Persistent shell chrome stays still; reduced motion removes the entry transition.

Update thread

Live

Confirm delivery

Latest

Confirm departure

Completed workflow steps become newest-first authored notes. Replies stay collapsed per note and support explicit participant mentions.

Sortable

Live
Item identityRequired
Workflow statusRequired
Current owner
Last updated

Drag with a pointer or focus a handle and use the keyboard sensor; persist order outside the primitive.

Sonner toasts

Live

Use for non-blocking completion or recovery feedback; validation stays next to its field.

File upload

Live

Drop files here or choose files

Up to 4 files · 12 MB each

The native input remains the accessible source; drag and drop, limits, and removal compose around it.

Data empty state

Live

No receipts match this view

The current status and owner filters exclude every receipt.

Distinguish a genuinely empty dataset from a filtered result and expose the next useful action.

Skeleton loader

Live

Initial loading keeps the final geometry; background refresh retains readable content.

06

Data tables

One DataGrid core owns stable anatomy and interaction. Workflow variants compose only the capabilities and domain policy they need.

DataGrid · selectable browse

Live
/
Status

3 rows · 0 selected

Columns fit their rendered content and save changes automatically. Click row dead space to expand; use the checkbox to select. Hover a column header to reveal its resize handle.

Cell range selection

Candidate

Click and drag across cells, then copy the displayed values alone or include the visible column headers. The selection pastes into spreadsheets as tab-separated rows.

⌘/Ctrl CCopy selected cells

Drag across the table to select a rectangular range.

  • Ribbed Tank
    SKU-12018
    Location
    A-12-04
    On hand
    240
    Allocated
    72
    Available
    168
    Unit cost
    $12.50
  • Linen Shirt
    SKU-12041
    Location
    A-14-02
    On hand
    160
    Allocated
    48
    Available
    112
    Unit cost
    $18.25
  • Canvas Tote
    SKU-12106
    Location
    B-03-08
    On hand
    180
    Allocated
    36
    Available
    144
    Unit cost
    $9.75
  • Utility Overshirt
    SKU-12144
    Location
    B-07-01
    On hand
    96
    Allocated
    24
    Available
    72
    Unit cost
    $24.00
  • Merino Beanie
    SKU-12203
    Location
    C-02-06
    On hand
    64
    Allocated
    16
    Available
    48
    Unit cost
    $11.40

Header topologies

Flat and grouped headers share the same resize contract. Group captions own only their caption boundary; leaf headers retain the column boundaries operators resize.

Flat header

Grouped header

Core owns

  • Anatomy, focus, alignment, sizing, overflow, and responsive structure.
  • Loading, empty, error, selection, and accessibility vocabulary.
  • Extension points for pagination, virtualization, and persistence.

Variants own

  • Columns, domain formatting, identity, and status language.
  • Queries, permissions, validation, audit consequences, and recovery.
  • Which capabilities are enabled for a specific workflow.
CapabilityStatus
Cell range selectioncandidateSelects a rectangular cell range by pointer drag and copies displayed values with optional column headers.
Responsive layoutcandidateAdapts the desktop matrix into a labeled record list without removing actions.
SelectioncandidateProvides row/select-all mechanics and a contextual bulk-action surface.
Row actionscandidateProvides a consistent ellipsis menu target independent of selection and row navigation.
Column resizingcandidateFits rendered content before interaction, then keeps generous resize targets while preserving manual widths.
Column pinningcandidateKeeps immutable identity, aligned footer cells, and optional action columns visible during horizontal work.
Expandable rowscandidateKeeps expansion state and disclosure controls consistent while workflows own detail content.
PaginationcandidateCommunicates page size, visible range, total count, and navigation availability.
Column reorderingcandidateReorders movable columns while preserving locked identity and action boundaries.
Layout persistencecandidateStores sizing, order, visibility, and pinning under a user-scoped, versioned table identity.
EditingcandidatePreserves editor identity and exposes dirty, invalid, saving, conflict, and recovery states.
FilteringcandidateComposes typed field, operator, and value conditions while workflows retain query policy.
VirtualizationcandidateWindows measured rows for very large datasets while preserving table semantics and focus.
Stored recipesBrowse · candidateCopyable browse · candidateSelectable browse · candidateExpandable browse · candidateReorderable browse · candidateReconciliation · candidate

This candidate demonstrates the shared contract: stable identity, sorting, selection, resizing, row actions, density, and a responsive record-list presentation.

07

Cards and surfaces

Cards group one decision or object. Elevation communicates stacking context, not importance.

Relative surface ladder

Live
1
2
3
4
5
6
7
8

Components lift from their current substrate, so a menu opened in a dialog remains visually distinct.

Flat surface
Default grouping inside the page flow.
Open exceptions14
Raised surface
Interactive or temporarily emphasized.
Units received2,418
Overlay surface
Reserved for floating or modal layers.
Awaiting review06
08

Disclosure and views

Accordions reveal supporting detail; segmented controls switch compact peer views; tabs navigate content sections.

Accordion

Live

Quantity, lot, and condition mismatches remain attached to the receipt until an operator resolves them.

The full header remains the target; focus and expanded state stay visible.

Collapsible

Live

Use for one independently toggled supporting region. The trigger names what will be revealed; Accordion remains the pattern for peer sections.

Segmented progress

Live

3 / 5 checks complete

Use for a small, fixed set of equal completion gates. The feature owns the visible summary and domain copy.

Segmented control

Live
Receipt is ready for review3 checks complete

Use the bounded pill treatment for compact peer views, including views over a data table.

Tabs

Live
14 open exceptions

Use underline tabs for content-section navigation. Outgoing content leaves layout immediately; incoming content uses the shared short entry transition.

09

Overlays

Tooltips name unfamiliar controls. Dialogs interrupt only when a focused decision must resolve before work continues.

Tooltip

Live

A short delay prevents incidental pointer movement from producing noise.

Dialog

Live

Title and consequence precede the decision; the close control remains available.

Sheet / drawer

Live

Side-anchored task surface on the Dialog primitive: focus trap, Escape, and focus restoration are inherited; motion is open/close asymmetric and reduced-motion safe.

10

Scroll area

Desktop gets quiet custom scrollbars with a stable content gutter; touch-primary devices retain native momentum without native scrollbar chrome.

Scrollable activity

Live

The specialized data-grid scroller remains separate because grid geometry has different requirements.

11

Feedback & display

Persistent, non-toast feedback plus lightweight status and key-value display primitives that product surfaces reach for constantly.

Alert / banner

Live

Sync scheduled

The next platform sync runs at 14:00.

Reconciliation applied

4,000 units committed to allocation.

Inline, persistent feedback. Info and success announce politely; warning and error assert. Not a toast.

Status dot

Live
Received Awaiting inspection Blocked Draft

A lightweight state marker beside text, for dense rows where a full badge is too heavy. Pulse draws attention to live states and is hidden under reduced motion.

Error state

Live

A panel or table that failed to load, with a recovery action. Distinct from an empty state (no data) and from a toast (transient).

Description list

Live
Deal
Flamingo Estate · 27811
Buyer
TJX × Pluto LA
Carrier
Maersk Line · container MSCU-728194-2-long-identifier
Units
4,000

Semantic dl/dt/dd for detail panels and the right rail. Horizontal by default; opt into truncation per value.

Pagination

Live

Standalone list navigation for surfaces that are not a DataGrid. 44px targets, page-size control, and a live range readout.

12

Handoff contract

The new repository should carry the system as source code and a living route, rather than a detached screenshot or one-time component dump.

ComponentStatus
Input groupAdopt
Search inputAdopt
Input copyAdopt
SelectAdapted
SliderAdopt
SwitchAdapted
Checkbox groupAdopt
Radio groupAdopt
ButtonsAdapted
DropdownAdapted
BadgeAdapted
BreadcrumbAdopt
TimelineCandidate
Timeline statusCandidate
Update threadCandidate
Mention textareaCandidate
Route transitionCandidate
StepperCandidate
SortableCandidate
Sonner toastAdopt
File uploadCandidate
Empty stateCandidate
SkeletonAdopt
Form field + validationCandidate
Carded fieldsetCandidate
TextareaCandidate
Number fieldCandidate
ComboboxCandidate
Date and time inputCandidate
Alert and bannerCandidate
Error stateCandidate
Status dotCandidate
Description listCandidate
PaginationCandidate
Sheet and drawerCandidate
App shellCandidate
Right railCandidate
DataGrid coreAdopt
DataGrid filtersAdapted
Cell range selectionCandidate
Column reorderingCandidate
Column content sizingCandidate
Layout persistenceCandidate
CardsAdapted
SurfacesAdopt
AccordionAdopt
CollapsibleAdopt
Segmented controlAdopt
Segmented progressCandidate
TabsAdopt
TooltipAdapted
DialogAdapted
Scroll areaAdopt
01

Copy foundations first

Bring over global semantic tokens, Geist, the icon wrapper, and motion constants before components.

02

Keep this route in-app

Mount the browser at /design-system and exclude it from production navigation or gate it by environment.

03

Carry the written contracts

Keep DESIGN_SYSTEM.md and docs/design-system/* in the repository so contributors and coding agents share the same rules and copy manifest.

04

Promote through evidence

A pattern becomes stable after it works in at least two real workflows and passes keyboard, screen-reader, dark-mode, and reduced-motion checks.

05

Separate policy from anatomy

Shared components own structure and interaction; product modules own permissions, validation policy, and domain copy.

Candidate state gate

Record evidence for every state before promoting a reusable pattern.

  • Interaction statesDefault, hover, pressed, focus-visible, disabled, loading, empty, and error states.
  • Light and darkSemantic contrast and hierarchy remain legible in both supported themes.
  • Reduced motionMeaning survives when non-essential transitions and animation are removed.
  • Narrow widthThe primary task and recovery actions remain usable without hidden overflow.
  • Long contentLong labels, values, translated copy, and dense records wrap or truncate deliberately.
  • Keyboard and screen readerNames, roles, focus order, announcements, and keyboard interaction match the visual UI.