22 lines
1.0 KiB
Markdown
22 lines
1.0 KiB
Markdown
# 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
|