Commit Graph

33 Commits

Author SHA1 Message Date
aferrer d217edd4e5 test(i18n): sync inventory dictionary contracts 2026-06-19 17:14:22 +02:00
aferrer f32d55a7b0 feat(assets): add asset metadata views and enforce assignment transitions 2026-06-19 17:14:22 +02:00
aferrer 965a04a468 feat(items): adapt item flows to inventory schema defaults and SKU generation 2026-06-19 17:14:22 +02:00
aferrer 8e6a00c2a9 feat(people): adapt person user flows to status model 2026-06-19 01:05:33 +02:00
aferrer 01d89cd21b feat(auth): align login and bootstrap with new user schema 2026-06-19 01:05:33 +02:00
aferrer 92f83c708a refactor(i18n): update Spanish (es) locale strings for delivery note 2026-06-17 09:41:32 +02:00
aferrer d6b42d78e7 refactor: consolidate admin/users management under /people 2026-06-17 09:32:26 +02:00
aferrer 4f370eee70 refactor: move unified Person+User form to /people/new, admin-only 2026-06-17 08:51:23 +02:00
aferrer 1f5a849bf5 feat: unify Person and User creation form with conditional password 2026-06-16 21:48:59 +02:00
aferrer e5717461cf feat: add unified Person+User creation backend 2026-06-16 21:21:17 +02:00
aferrer 68c2983d36 refactor: remove username from User model, login by email only 2026-06-16 16:18:42 +02:00
aferrer cf6820a7aa refactor: rename remaining recipient references to person/people 2026-06-16 13:34:15 +02:00
aferrer 29c7c19cd8 refactor: complete i18n rename recipients to people, finalize tests 2026-06-16 12:25:57 +02:00
aferrer ecc3cf1b55 refactor: rename recipients route to people, update all frontend references 2026-06-16 11:26:21 +02:00
aferrer 73552dbb05 feat(i18n): localize admin users UI surfaces 2026-06-15 16:01:19 +02:00
aferrer 0cbbe60299 feat(i18n): localize admin users backbone 2026-06-15 15:35:08 +02:00
aferrer 349559f4e0 feat(i18n): localize assignment validation messages 2026-06-15 01:15:24 +02:00
aferrer bfea2b77ab feat(i18n): localize inventory assignments UI 2026-06-15 00:47:25 +02:00
aferrer 9b713c42e2 feat(i18n): localize recipient validation messages 2026-06-14 22:41:20 +02:00
aferrer c0ae7a034a feat(i18n): localize recipients UI 2026-06-14 18:33:57 +02:00
aferrer ea37fc8d70 test(i18n): cover movement page localization 2026-06-14 02:05:01 +02:00
aferrer f62cd6fb37 feat(i18n): localize movement UI 2026-06-14 01:20:23 +02:00
aferrer 7d5ab64653 feat(i18n): localize asset validation messages 2026-06-13 17:23:01 +02:00
aferrer 3d6b13dc1c feat(i18n): localize inventory assets UI 2026-06-13 17:07:51 +02:00
aferrer c67e86c91b feat(i18n): localize item validation messages 2026-06-13 11:28:28 +02:00
aferrer 964b1648ca feat(i18n): localize inventory items UI 2026-06-13 11:12:02 +02:00
aferrer 9f7d1b8ef8 feat(i18n): localize category action messages 2026-06-12 23:21:08 +02:00
aferrer e9a07eb28e feat(i18n): localize inventory categories UI 2026-06-12 23:01:33 +02:00
aferrer 589b042e7c feat(i18n): localize submit button states 2026-06-12 09:51:19 +02:00
aferrer 2fa6611719 feat(i18n): localize shell and common UI 2026-06-11 17:54:56 +02:00
aferrer c3cf4182ad feat(i18n): add language switcher 2026-06-11 16:16:06 +02:00
aferrer ac3dfe69cd feat(i18n): add locale dictionaries and pilot surfaces 2026-06-11 04:55:47 +02:00
aferrer f2b9239d82 test: add initial unit integration and e2e coverage
Adds the initial testing baseline for the project:

   Unit coverage:
   - Zod schemas for items, assignments, movements, categories, auth, recipients, users, and assets
   - password hashing and verification helpers
   - auth role helper functions

   Integration coverage with PostgreSQL Testcontainers:
   - item use-cases: create, duplicate names, delete constraints
   - assignment use-cases: create, insufficient stock, return, double return
   - asset use-cases: available/assigned creation and lifecycle transitions
   - user use-cases: create/update, uniqueness, admin safeguards, password reset
   - category use-cases: create/update/delete constraints
   - recipient use-cases: create/update and uniqueness constraints

   E2E smoke coverage with Playwright:
   - unauthenticated redirect to login
   - seeded admin login
   - dashboard load
   - admin users page
   - inventory items page
   - assignments page

   Also configures:
   - Vitest
   - Playwright
   - PostgreSQL Testcontainers helpers
   - deterministic E2E admin bootstrap
   - test artifact ignores

   Validation:
   - bun run test: 9 files / 37 tests passed
   - bun run test:e2e: 3 passed
   - bunx tsc --noEmit: passed
   - bunx prisma validate: passed
2026-06-07 04:14:01 +02:00