fix(ci): destrava gates do main (seller-scope + TS2322 quoteService + non-null) [rebased]#421
Conversation
…TS2322 quoteService) Rebaseado sobre o main atual (e14f8f0). Regressões pré-existentes que bloqueavam todos os PRs no CI (nenhuma introduzida por mim): - SidebarReorganized.tsx: anotação `// rls-allow` reposicionada para imediatamente acima do `.from('discount_approval_requests')` (o checker não a reconhecia 2 linhas acima). Sem mudança de comportamento. - CoverageInsightsDashboardPage.tsx: removido non-null assertion redundante (acesso já guardado por `values.length < 2`). - quoteService.ts (logHistory): `options?: Record<string,unknown>` gerava `{}` ao inserir em colunas tipadas (TS2322 ×4, vindo do #404). Campos string agora são narrowed via typeof; `metadata` cast para `Json`. Nota: o fix anterior de useUserManagement.ts foi descartado — o main já corrigiu via `untypedFrom`. Gates verdes localmente: tsc 484/486 (sem regressão), eslint (sem regressão), seller-scope (pass). https://claude.ai/code/session_01HjiGVkF3Df9GiFjDbfxDYn
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
More reviews will be available in 30 minutes and 54 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Destrava os gates do CI no
main(rebaseado sobree14f8f0)Supersede #413 (que tinha um fix redundante de
useUserManagement— omainjá corrigiu viauntypedFrom— e estava sobre ummainantigo). Esta PR está rebaseada sobre omainatual e corrige as regressões que bloqueiam todos os PRs no CI. Nenhuma foi introduzida por mim; confirmei rodando os gates contra omainpuro.Correções (3 arquivos)
SidebarReorganized.tsx: a anotação// rls-allow:estava 2 linhas acima do.from('discount_approval_requests'); o checker só a aceita na linha do.from(...)ou imediatamente acima. Reposicionada. (Comportamento inalterado — segue admin-only viaenabled: isAdmin.)main). É só formatação — sem mudança de lógica.quoteService.ts(logHistory):TS2322 ×4vindos do feat(quotes): migrate updateQuote to transactional backend RPC #404.options?: Record<string,unknown>produzia{}ao inserir em colunas tipadas. Campos string agora narrowed viatypeof;metadatacast paraJson.CoverageInsightsDashboardPage.tsx: removido non-null assertion redundante (acesso já guardado porvalues.length < 2).Verificação local (todos verdes, sobre
e14f8f0)check-tsc-baseline.mjs: 484 vs 486 → ✅ sem regressão (−2)check-eslint-baseline.mjs: ✅ sem regressãocheck-seller-scope.mjs: ✅ passTest plan
mainlogHistory) grava normalmenteFecha #413.
https://claude.ai/code/session_01HjiGVkF3Df9GiFjDbfxDYn
Generated by Claude Code
Summary by cubic
Unblocks CI on
mainby fixing the seller-scope check, TypeScriptTS2322errors inquoteService, and an ESLint non-null assertion. No behavior changes.// rls-allowto the line above.from('discount_approval_requests')so the checker picks it up; logic unchanged. Includes Prettier-only formatting in the file.TS2322inquoteService.logHistoryby narrowing string fields and castingmetadatatoJson.CoverageInsightsDashboardPage.Written for commit 46278aa. Summary will update on new commits. Review in cubic