Skip to content

chore: remove scripts de debug soltos na raiz (leftovers da Lovable)#511

Merged
adm01-debug merged 1 commit into
mainfrom
claude/cleanup-lovable-leftovers
May 29, 2026
Merged

chore: remove scripts de debug soltos na raiz (leftovers da Lovable)#511
adm01-debug merged 1 commit into
mainfrom
claude/cleanup-lovable-leftovers

Conversation

@adm01-debug
Copy link
Copy Markdown
Owner

@adm01-debug adm01-debug commented May 29, 2026

Limpeza de leftovers da Lovable

Remove dois scripts de debug/scratch deixados na raiz do repositório por commits automáticos da Lovable ("Changes"):

Arquivo O que era
test-filter.ts Script manual que invocava a edge function external-db-bridge e logava o resultado
simulate_latency_and_error.ts Script que monkey-patcha supabase.functions.invoke para injetar 3s de latência + 20% de erro artificial (ferramenta de teste de skeletons)

Por que é seguro remover

  • Não são referenciados por nenhum código, build, teste ou config (grep limpo).
  • Ficam fora do tsconfig (que inclui só src) → não são typechecked.
  • São ignorados pelo ESLint ("no matching configuration").
  • Logo: zero impacto em gates ou runtime — é apenas ruído no repositório.

simulate_latency_and_error.ts em particular não deveria acompanhar o código (monkey-patch do client Supabase).

Verificação

Em main atualizado, antes da remoção: npm ci ✅ · typecheck ✅ · lint:baseline ✅. A remoção não toca em nada do src.

Nota

Os outros artefatos dos mesmos commits da Lovable (a migração 20260529141006_*.sql e o e2e/teleport-comprehensive.spec.ts) parecem legítimos e os gates passam — deixei-os intactos.

https://claude.ai/code/session_01B2ghtor8Q4zfS5yQWCNDYW


Generated by Claude Code


Summary by cubic

Removed two root-level debug scripts left by Lovable auto-commits. Cleans up the repo with no build, test, or runtime impact.

  • Refactors
    • Removed test-filter.ts — manual invoker for edge function external-db-bridge.
    • Removed simulate_latency_and_error.ts — monkey-patches supabase.functions.invoke to inject 3s latency and 20% error.

Written for commit 2b53fd2. Summary will update on new commits.

Review in cubic

`test-filter.ts` e `simulate_latency_and_error.ts` eram scripts de debug/scratch
deixados na raiz por commits automáticos da Lovable ("Changes"). Ambos:
- importam o client do Supabase e fazem chamadas/monkey-patch para testes manuais;
- não são referenciados por nenhum código, build, teste ou config;
- ficam fora do tsconfig (só `src`) e são ignorados pelo ESLint.

São apenas ruído no repositório (e `simulate_latency_and_error.ts` ainda
monkey-patcha `supabase.functions.invoke` para injetar latência/erro — não deve
acompanhar o código de produção). Removidos. Sem impacto em gates ou runtime.

https://claude.ai/code/session_01B2ghtor8Q4zfS5yQWCNDYW
@vercel
Copy link
Copy Markdown

vercel Bot commented May 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
we-dream-big Ready Ready Preview, Comment May 29, 2026 2:31pm

@supabase
Copy link
Copy Markdown

supabase Bot commented May 29, 2026

This pull request has been ignored for the connected project doufsxqlfjyuvxuezpln because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 29, 2026

Warning

Review limit reached

@adm01-debug, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 26 minutes and 14 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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: c40a8527-03b1-4196-a1ba-855366130b04

📥 Commits

Reviewing files that changed from the base of the PR and between e6370cf and 2b53fd2.

📒 Files selected for processing (2)
  • simulate_latency_and_error.ts
  • test-filter.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/cleanup-lovable-leftovers

Comment @coderabbitai help to get the list of available commands and usage tips.

@adm01-debug adm01-debug marked this pull request as ready for review May 29, 2026 15:00
Copilot AI review requested due to automatic review settings May 29, 2026 15:00
@adm01-debug adm01-debug merged commit 0509c4c into main May 29, 2026
45 of 50 checks passed
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes two root-level debug/scratch TypeScript scripts left behind by automated Lovable commits, reducing repository noise without affecting build, lint, typecheck, or runtime behavior.

Changes:

  • Removed test-filter.ts, a manual script that invoked the external-db-bridge edge function and logged results.
  • Removed simulate_latency_and_error.ts, a script that monkey-patched supabase.functions.invoke to inject artificial latency/errors.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
test-filter.ts Deleted unused root-level manual debug script.
simulate_latency_and_error.ts Deleted unused root-level monkey-patch simulation script.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants