← story.propek
STORY 9.28
Credentials, Audio Leak, Silent Fails, zIndex
Epic: 9 — CRM
PENDING
ACCEPTANCE CRITERIA (2/3)
AC1: Adicionar `credentials: 'include'` no `apiFetch()` para todas as chamadas
AC2: Remover `credentials: 'include'` duplicado em `sendMedia` (ja vira do apiFetch)
AC3: Verificar que login, logout, auth/me continuam funcionando
TIMELINE
08/04/2026
fix(crm): credentials, audio leak, silent fails, zIndex, ESLint setup [Story 9.28]
685754e
ARQUIVOS (9)
apps/crm/src/lib/api.ts H1: credentials include; M6: changePassword sem id; sendMedia sem credentials duplicado
apps/crm/src/lib/audio.ts NOVO: funcao compartilhada playNotificationSound + SoundType + SOUND_OPTIONS
apps/crm/src/app/conversas/page.tsx M2: importar audio.ts; M5: feedback nos catches; M7: zIndex 50; remove eslint-disable
apps/crm/src/components/topbar.tsx M2: importar audio.ts (remove 40 linhas duplicadas)
apps/crm/src/app/pipeline/page.tsx M7: zIndex 100
apps/crm/src/app/usuarios/modals.tsx M6: chamada changePassword sem id
apps/crm/src/lib/auth-context.tsx Remove eslint-disable orphan
apps/crm/eslint.config.mjs H3: ESLint flat config com typescript-eslint
apps/crm/package.json H3: eslint + typescript-eslint devDeps; lint script