feat(management): seed comprehensive demo data and test accounts for local development #180
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Local development and automated agent testing currently lack realistic domain data. The existing demo seed script only populates two items without stock movements or lots (failing invariant audits), with zero customers, vehicles, purchases, or sales orders, and without provisioning the documented local test accounts.
Acceptance Criteria
apps/management/scripts/seed-demo.mtsto seed 14 realistic Indonesian catalog items across parts, consumables, and accessories with categories matching services, specifications, fitments, and prices.createPurchasewith FIFO lots, purchase items, and incoming stock movements ('IN').createOrderdepleting lots via FIFO and recording outgoing stock movements ('OUT').agent@garage.localwith admin role andoperator@garage.localwith operator role) are idempotently provisioned with passwordgaragepassword123.garage:seedtask indevenv.nixanddb:seedscript in rootpackage.jsonandapps/management/package.json.auditInvariantspasses with 0 integrity failures and 0 warnings.pnpm --filter garage typecheck), tests (pnpm --filter garage test), and biome checks pass with 0 errors.