feat(F-194): completed feature

This commit is contained in:
chattie
2026-08-22 22:29:26 +02:00
parent ca12f46bff
commit b85670cb51
15 changed files with 73 additions and 6 deletions

View 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