Skip to content

chore(faxina): cleanup rebaseado (re-#92, substitui #53)#96

Closed
adm01-debug wants to merge 9 commits into
mainfrom
claude/faxina-rebased-2026-05-22
Closed

chore(faxina): cleanup rebaseado (re-#92, substitui #53)#96
adm01-debug wants to merge 9 commits into
mainfrom
claude/faxina-rebased-2026-05-22

Conversation

@adm01-debug
Copy link
Copy Markdown
Owner

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

Re-#92 — faxina cirúrgica rebaseada (substitui #53). 9 commits, 66 arquivos, -19.7k linhas. Apenas dead code low-risk; sem migrations/edge-functions/business-logic.


Summary by cubic

Removed dead code, orphaned e2e tests, and generated artifacts; fixed the dev build script and cleared two test-only lint errors. No runtime or business logic changes.

  • Refactors

    • Deleted the unused tests/e2e/** tree and committed artifacts; removed orphan utilities and scripts (src/lib/kit-og-image.ts, src/utils/kitPdfGenerator.ts, src/hooks/stock/index.ts, scripts/generate-theme-report.ts in favor of the .mjs, scripts/test-external-db.ts, src/test/setup.ts, and a duplicate audit MD).
    • Untracked audit outputs and updated .gitignore to ignore audit/db-frontend-coverage.json and audit/internal-schema.tsv; removed the stale public/api/health.json entry.
    • Simplified vitest.config.ts by dropping the now-unused tests/e2e/** exclude.
  • Bug Fixes

    • Fixed package.json build:dev by removing the call to missing scripts/generate-health.mjs.
    • Resolved two lint issues in tests (src/contexts/AuthContext.test.tsx, src/tests/AdminLayout.test.tsx) to satisfy the baseline gate.

Written for commit df01f4c. Summary will update on new commits. Review in cubic

claude added 9 commits May 22, 2026 09:53
- AUDITORIA_REDEPLOY_PROMO_GIFTS_2026-05-13_15-32 (1).md was a stale
  browser-download duplicate (note the " (1)" suffix); no consumers.
- src/test/setup.ts was orphan — vitest.config.ts uses tests/setup.ts.

https://claude.ai/code/session_01NMu9Cm7yXR5agyBFxvLgP4
audit/db-frontend-coverage.json (9.7k lines) and audit/internal-schema.tsv
(1.5k lines) are local audit outputs. .gitignore already declared the
intent — "Outputs de auditoria/triage — gerados localmente, não devem
versionar" — but these two slipped through. Adds explicit patterns and
removes them from the index (filesystem copies retained for local devs).

The hand-authored audit/ANALISE_BACKEND_SENIOR_2026-05-22.md stays tracked.

https://claude.ai/code/session_01NMu9Cm7yXR5agyBFxvLgP4
build:dev was running "node scripts/generate-health.mjs && vite build", but
the script does not exist anywhere in git history reachable from this
branch — so npm run build:dev failed immediately. No code reads the
public/api/health.json the script was meant to emit, so removing the
reference is safe. Also drops the orphan .gitignore entry that paired
with the missing script.

https://claude.ai/code/session_01NMu9Cm7yXR5agyBFxvLgP4
tests/e2e/ contained 40+ test files plus committed runtime artifacts that
were never executing:
- 9 specs use @playwright/test but playwright.config.ts uses testDir:'./e2e'
  (not tests/e2e) — never picked up.
- 31 are vitest files but vitest.config.ts explicitly excluded
  'tests/e2e/**' to avoid a worker deadlock from accidentally loading the
  Playwright files alongside them — so these never ran either.
- artifacts/ subtree was generated HTML/JSON snapshots checked in by past
  test runs.

Nothing outside tests/e2e/ referenced anything inside it (only vitest's
own exclude pattern + its explanatory comment). Baselines have zero
entries for this path, so no baseline churn.

Drops the now-unnecessary exclude entry from vitest.config.ts.

https://claude.ai/code/session_01NMu9Cm7yXR5agyBFxvLgP4
- scripts/generate-theme-report.ts — superseded duplicate of
  scripts/generate-theme-report.mjs (the .mjs is what
  e2e/theme-validation.spec.ts and package.json:test:theme-validation
  actually invoke).
- scripts/test-external-db.ts — strict subset of
  scripts/verify-external.ts (same purpose, smaller assertion set).

Both files were unreferenced by package.json, scripts, configs, CI, or
docs. Other unreferenced dev utilities (CORS codemods, list-users) are
intentionally kept as ad-hoc manual tools.

https://claude.ai/code/session_01NMu9Cm7yXR5agyBFxvLgP4
src/hooks/stock/index.ts contained only a single-line comment with no
exports. Zero importers across src/ and tests/. Removing the dead barrel
file keeps the directory clean (stockAlerts.ts and stockFetcher.ts
import each other and from src/hooks/products/ directly, not via the
barrel).

https://claude.ai/code/session_01NMu9Cm7yXR5agyBFxvLgP4
generateKitOgImage was only referenced by .lovable/memory feature notes
pointing at a PublicKitViewPage that does not exist in this codebase.
Verified zero imports (static or dynamic) anywhere in src/, tests/, e2e/,
and supabase/. Safe to remove.

https://claude.ai/code/session_01NMu9Cm7yXR5agyBFxvLgP4
Zero importers (static or dynamic) anywhere in src/, tests/, e2e/, or
supabase/. The active kit PDF export logic — if any — lives elsewhere;
this file was dead.

https://claude.ai/code/session_01NMu9Cm7yXR5agyBFxvLgP4
The eslint baseline gate (.eslint-baseline.json, 2026-05-14) is unaware
of two lint errors introduced into main by later commits, so any new
push triggers them as "new":

- src/contexts/AuthContext.test.tsx:38 — @typescript-eslint/
  consistent-type-imports flagged \`typeof import('@/services/authService')\`
  inside a vi.mock importOriginal call. Hoisted the module type as a
  type-only \`import type * as AuthServiceModule\` and used
  \`typeof AuthServiceModule\`.

- src/tests/AdminLayout.test.tsx:58 — @typescript-eslint/no-explicit-any
  flagged \`cb?: any\` inside a then() supabase-client mock. Replaced
  with the concrete callback signature \`(value: { data: never[]; error: null }) => void\`.

Neither file was touched semantically; both were blocking pre-push only
because the baseline predates the upstream churn.

https://claude.ai/code/session_01NMu9Cm7yXR5agyBFxvLgP4
Copilot AI review requested due to automatic review settings May 22, 2026 09:56
@vercel
Copy link
Copy Markdown

vercel Bot commented May 22, 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 22, 2026 9:56am

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 22, 2026

Warning

Rate limit exceeded

@adm01-debug has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 16 minutes and 43 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, 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 have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 2a02316f-38ae-4c90-8cf8-9ed6727e5062

📥 Commits

Reviewing files that changed from the base of the PR and between a7d560e and df01f4c.

⛔ Files ignored due to path filters (1)
  • audit/internal-schema.tsv is excluded by !**/*.tsv
📒 Files selected for processing (67)
  • .gitignore
  • AUDITORIA_REDEPLOY_PROMO_GIFTS_2026-05-13_15-32 (1).md
  • audit/db-frontend-coverage.json
  • package.json
  • scripts/generate-theme-report.ts
  • scripts/test-external-db.ts
  • src/contexts/AuthContext.test.tsx
  • src/hooks/stock/index.ts
  • src/lib/kit-og-image.ts
  • src/test/setup.ts
  • src/tests/AdminLayout.test.tsx
  • src/utils/kitPdfGenerator.ts
  • tests/e2e/admin-module.test.ts
  • tests/e2e/analytics-bi.test.ts
  • tests/e2e/artifacts/compare/viewer/audit-snapshot.html
  • tests/e2e/artifacts/compare/viewer/initial-comparison-view-styles.json
  • tests/e2e/artifacts/compare/viewer/initial-comparison-view.html
  • tests/e2e/artifacts/compare/viewer/initial-view.html
  • tests/e2e/artifacts/quotes/audit-report/builder-full.html
  • tests/e2e/artifacts/quotes/ci-final-resilient/builder-snapshot.html
  • tests/e2e/artifacts/quotes/ci-final/step-items.html
  • tests/e2e/artifacts/quotes/ci-report/identificacao/current.html
  • tests/e2e/artifacts/quotes/ci-report/itens/current.html
  • tests/e2e/artifacts/quotes/ci-visual/builder-layout.html
  • tests/e2e/artifacts/quotes/full-cycle/audit-snapshot-conditions.html
  • tests/e2e/artifacts/quotes/full-cycle/resilience-layout-stability.html
  • tests/e2e/artifacts/quotes/visual/quote-builder-initial.html
  • tests/e2e/artifacts/quotes/visual/step-identification.html
  • tests/e2e/auth-flow.test.tsx
  • tests/e2e/carts-excellence.spec.ts
  • tests/e2e/catalog-price-freshness-badge.test.tsx
  • tests/e2e/compare-exhaustive.test.ts
  • tests/e2e/compare-exhaustive.test.tsx
  • tests/e2e/compare-module.test.ts
  • tests/e2e/compare-module.test.tsx
  • tests/e2e/compare-ultra.test.ts
  • tests/e2e/compare-ultra.test.tsx
  • tests/e2e/compare-viewer-a11y.test.tsx
  • tests/e2e/compare-visual.test.ts
  • tests/e2e/compare-visual.test.tsx
  • tests/e2e/cross-cutting-regression.test.ts
  • tests/e2e/favorites-module.test.ts
  • tests/e2e/favorites-ui.test.tsx
  • tests/e2e/infra-banners-prod.test.tsx
  • tests/e2e/kit-builder-flow.test.ts
  • tests/e2e/mockup-regressions.spec.ts
  • tests/e2e/navigation-layout.test.tsx
  • tests/e2e/new-quote-advanced.test.tsx
  • tests/e2e/new-quote-cycle.test.tsx
  • tests/e2e/new-quote-exhaustive.test.ts
  • tests/e2e/new-quote-exhaustive.test.tsx
  • tests/e2e/new-quote-full-audit.test.tsx
  • tests/e2e/new-quote-resilience.test.tsx
  • tests/e2e/performance.test.ts
  • tests/e2e/phase1-foundation-types.test.ts
  • tests/e2e/phase2-filters-catalog.test.ts
  • tests/e2e/phase3-detail-experience.test.ts
  • tests/e2e/phase4-admin-grid.test.ts
  • tests/e2e/phase5-propagation.test.ts
  • tests/e2e/products-catalog.test.ts
  • tests/e2e/profile-user.test.ts
  • tests/e2e/quote-resilience.test.ts
  • tests/e2e/quotes-flow.test.ts
  • tests/e2e/seller-carts.test.ts
  • tests/e2e/tools-simulator.test.ts
  • tests/e2e/ui-components.test.tsx
  • vitest.config.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/faxina-rebased-2026-05-22

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

@supabase
Copy link
Copy Markdown

supabase Bot commented May 22, 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 ↗︎.

@adm01-debug
Copy link
Copy Markdown
Owner Author

Conflito vs main após merges de #93 (cleanup pass 1) e #95 (fix Header/sidebar). Branch claude/faxina-rebased-2026-05-22 preservada — rebase manual + reabrir quando o PAT for rotacionado.

@adm01-debug adm01-debug review requested due to automatic review settings May 22, 2026 10:20
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.

2 participants