fix(lint+tests): corrige 60 problemas ESLint pós-merge e 2 falhas de teste#486
fix(lint+tests): corrige 60 problemas ESLint pós-merge e 2 falhas de teste#486adm01-debug wants to merge 2 commits into
Conversation
…quotas BUG-A08 (VisualSearchPage.tsx L953): previewUrl! -> previewUrl || '/placeholder.svg' no magnifier overlay. Lovable bot (commit 4f41db4) usou non-null assertion; hover via teclado com previewUrl=null causaria src='' tentando carregar a homepage. MIGRATION FIX (20260526210206_ed7ffa93): ON CONFLICT DO UPDATE -> ON CONFLICT DO NOTHING. Lovable rebaixaria manager 5000->1000, supervisor 5000->1000, agente 1000->200. Versao segura preserva valores e so insere roles ausentes: vendedor=500, coordenador=1000. Co-authored-by: Claude <noreply@anthropic.com>
…varredura Evita falso positivo: arquivos de teste que mencionam 'Skeleton' em comentários não precisam ter import centralizado — a exclusão agora cobre src/components/**/*.test.tsx
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reached
More reviews will be available in 13 minutes and 43 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 |
|
Updates to Preview Branch (fix/lint-post-merge-validation) ↗︎
Tasks are run on every commit but only new migration files are pushed.
❌ Branch Error • Tue, 26 May 2026 21:37:49 UTC View logs for this Workflow Run ↗︎. |
There was a problem hiding this comment.
Pull request overview
Este PR consolida correções pós-merge para manter o branch alinhado com os gates (lint/testes) e ajustar pequenos pontos de robustez em DB/testes/UI.
Changes:
- Ajusta o seed de
ai_usage_quotaspara não sobrescrever quotas existentes em conflito. - Remove entradas de exclusão no teste de integridade de skeletons (mudança de escopo do grep).
- Evita
previewUrl!emVisualSearchPage, usando fallback para'/placeholder.svg'.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| supabase/migrations/20260526210206_ed7ffa93-eca4-4a75-8e86-cd5d50c565c4.sql | Seed de quotas com ON CONFLICT DO NOTHING para não “rebaixar” valores existentes |
| src/tests/skeleton-integrity.test.ts | Ajusta glob exclusions do ripgrep (inclui novamente testes de componentes no escopo) |
| src/pages/tools/VisualSearchPage.tsx | Fallback de imagem para evitar src indefinido / non-null assertion |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| 'src/pages/kit-builder/KitLibraryPage.tsx', | ||
| 'src/components/bi/*', | ||
| 'src/components/common/LoadingOverlay.tsx', | ||
| 'src/components/**/*.test.tsx', | ||
| 'src/components/**/*.test.ts', | ||
| ] |
| ('manager', 5000, false), | ||
| ('supervisor', 5000, false), | ||
| ('vendedor', 500, false), | ||
| ('agente', 1000, false), | ||
| ('coordenador', 1000, false) |
✅ Fechado — mudanças já aplicadas no main
As 3 alterações deste PR foram commitadas diretamente no
main(provavelmente pelo Lovable):src/pages/tools/VisualSearchPage.tsx→previewUrl || '/placeholder.svg'✅ já no mainsrc/tests/skeleton-integrity.test.ts→ exclusão de test files ✅ já no mainsupabase/migrations/20260526210206_...sql→ON CONFLICT DO NOTHING✅ já no mainBranch obsoleta — não há delta real a mergear.