You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: resolve Prisma alunoId for ALUNO role to avoid FK violation (#174)
* fix: resolve Prisma alunoId for ALUNO role to avoid FK violation
getAuthRole() returns role=null for ALUNO (no funcionarios record).
Previous code used auth user.id as alunoId, but Prisma aluno.id
may differ from Supabase Auth UUID. Added resolveAlunoId() helper
that looks up the correct aluno.id by email before create.
Fixes: foreign key constraint violation on treinos_alunoId_fkey
when ALUNO saves AI-generated workout.
* fix(lint): suppress react-hooks/incompatible-library false positive on TanStack Table useReactTable
CI Quality Gates failing on data-table.tsx:46 — react-hooks/incompatible-library
warning treated as failure. TanStack Table useReactTable returns non-memoizable
fns by design; React Compiler rule is a false positive. Suppression unblocks
PR #174 + main CI.
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(lint): suppress TanStack Table lint + format middleware for prettier 3.9.4
data-table.tsx: eslint-disable useReactTable incompatible-library
rule (TanStack fns non-memoizable by design, false positive).
middleware.ts: prettier 3.9.4 reformats union type (local 3.8.3
stale vs CI 3.9.4).
Unblocks PR #174 Quality Gates and broken main CI.
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(format): exclude docs/superpowers/ from prettier check
Auto-generated plan files not source code. Broke CI format gate
on main + PR #174.
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Emiya Kiritsugu <emiyakiritsugu3@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments