feat(suppliers): batch price update server action, audit logging, and floating save bar (#199) #205

Merged
yuris merged 3 commits from feat/phase-5-batch-price-update into main 2026-10-04 00:51:43 +00:00
Owner

Summary

Implements Phase 5 of Supplier Management (resolves #199):

  • Atomic updateSupplierPrices server action in apps/management/lib/suppliers/actions.ts
  • Enforces requireAdmin() boundary
  • Updates inventory buy/sell prices and supplier check timestamp atomically in a transaction
  • Records audit log in actionLogs
  • Responsive centered floating sticky save bar on desktop and mobile
  • Toast feedback and state synchronization upon save
  • Comprehensive action and component tests (641 tests total)

Verification

  • 36 test files passed (641 tests)
  • pnpm verify:management clean with 0 errors
### Summary Implements Phase 5 of Supplier Management (resolves #199): - Atomic `updateSupplierPrices` server action in `apps/management/lib/suppliers/actions.ts` - Enforces `requireAdmin()` boundary - Updates inventory buy/sell prices and supplier check timestamp atomically in a transaction - Records audit log in `actionLogs` - Responsive centered floating sticky save bar on desktop and mobile - Toast feedback and state synchronization upon save - Comprehensive action and component tests (641 tests total) ### Verification - 36 test files passed (641 tests) - `pnpm verify:management` clean with 0 errors
feat(suppliers): batch price update server action, audit logging, and floating save bar (#199)
Some checks failed
Checks / test @garage/catalog (pull_request) Successful in 1m13s
Checks / test garage (pull_request) Successful in 1m28s
Checks / typecheck apps/management (pull_request) Has been cancelled
Checks / typecheck apps/store (pull_request) Has been cancelled
Checks / lint (biome) (pull_request) Has been cancelled
Checks / test garage-store (pull_request) Has been cancelled
05bf7229de
fix(suppliers): validate prices, trigger store deploy, and persist buy prices across reload
Some checks failed
Checks / test @garage/catalog (pull_request) Successful in 1m13s
Checks / test garage (pull_request) Successful in 1m30s
Checks / test garage-store (pull_request) Successful in 1m16s
Checks / lint (biome) (pull_request) Has been cancelled
Checks / typecheck apps/store (pull_request) Has been cancelled
Checks / typecheck apps/management (pull_request) Has been cancelled
1ba068c836
fix(suppliers): preserve true historical purchase price in Modal Lalu column on save
All checks were successful
Checks / test @garage/catalog (pull_request) Successful in 1m14s
Checks / test garage (pull_request) Successful in 1m27s
Checks / test garage-store (pull_request) Successful in 1m18s
Checks / typecheck apps/management (pull_request) Successful in 1m36s
Checks / lint (biome) (pull_request) Successful in 11s
Checks / typecheck apps/store (pull_request) Successful in 1m22s
e4091507c3
yuris merged commit d051f18dd7 into main 2026-10-04 00:51:43 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
yuris/garage!205
No description provided.