feat(F-194): completed feature
This commit is contained in:
21
work/artifacts/F-194/implementer.md
Normal file
21
work/artifacts/F-194/implementer.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# F-194 — Fix evidence
|
||||
|
||||
## Changes
|
||||
|
||||
### Fix 1: `crypto.randomUUID()` runtime TypeError
|
||||
- `project/apps/pos/src/components/PaymentModal.tsx`: replaced `crypto.randomUUID()` with `generateIdempotencyKey()` (already imported pattern from `@/lib/idempotency` with safe fallback).
|
||||
- `project/apps/pos/src/app/(terminal)/page.tsx`: same fix for the free-item lineId.
|
||||
|
||||
### Fix 2: IVA, Auditoría, Logs → inside Settings
|
||||
- Moved routes: `app/(dashboard)/{tax-rates,audit,logs}/page.tsx` → `app/(dashboard)/settings/{tax-rates,audit,logs}/page.tsx`
|
||||
- Updated `permissions.ts` NAV_ITEMS: `/tax-rates` → `/settings/tax-rates`, `/audit` → `/settings/audit`, `/logs` → `/settings/logs`
|
||||
- Added "Sistema" sub-navigation in settings sidebar with links to each sub-page.
|
||||
- Added "← Ajustes" breadcrumb link at the top of each moved page.
|
||||
|
||||
## Validation
|
||||
- Admin typecheck: PASS
|
||||
- POS typecheck: PASS
|
||||
- Admin build: PASS (routes show `/settings/{audit,logs,tax-rates}`)
|
||||
- POS build: PASS
|
||||
- Backend unit tests: 268/268 PASS
|
||||
- `./scripts/verify.sh`: PASS
|
||||
Reference in New Issue
Block a user