fix(super-filtro): BUG-15 a BUG-22 + BUG-VOZ — rebased s/ HEAD (substitui #480)#485
Conversation
Incorpora PR #480 (fix/super-filtro-audit-bugs-15-23) sobre HEAD atual do main. BUG-15a — featured: contabilizado/chipeado mas sem filtro no useMemo → adicionado BUG-15b — isNew: filtro usava product.isNew (inexistente) → product.newArrival BUG-15c — hasPersonalization: ausente do tipo Product → adicionado em product-catalog.ts BUG-16 — gender: contabilizado mas sem bloco de filtro → adicionado BUG-17 — sizes: contabilizado mas sem filtro via variations.size_code → adicionado BUG-19 — stale closure em debouncedSearch: filtersRef+onFilterChangeRef pattern BUG-20 — fuzzySearchQuery usava searchParams.get stale → usa filters.search BUG-21 — priceRange threshold < 500 → < 9999 em useCatalogFiltering BUG-22 — activeFiltersCount priceRange < 500 → < 9999 em useCatalogState BUG-VOZ — sortMap sem best-seller-supplier/promo → adicionados em FiltersPage.tsx fix(lint): != null → !== null (eqeqeq) em useFiltersPageState.ts linha 415 Testes: 27/27 passando (super-filtro-bugfix-15-22.test.ts) Co-authored-by: Claude <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
Warning Review limit reached
More reviews will be available in 21 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 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 (6)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Substitui PR #480 (conflito resolvido — rebased sobre HEAD atual)
BUG-15a —
featured: contabilizado/chipeado mas sem filtro nofilteredProducts→ adicionadoBUG-15b —
isNew: usavaproduct.isNew(inexistente) →product.newArrivalBUG-15c —
hasPersonalization: ausente do tipoProduct→ adicionado emproduct-catalog.tsBUG-16 —
gender: contabilizado mas sem bloco de filtro → adicionadoBUG-17 —
sizes: contabilizado mas sem filtro viavariations.size_code→ adicionadoBUG-19 — Stale closure em
debouncedSearch: padrãofiltersRef + onFilterChangeRefBUG-20 —
fuzzySearchQueryusavasearchParams.getstale → usafilters.searchBUG-21 —
priceRangethreshold< 500→< 9999emuseCatalogFilteringBUG-22 —
activeFiltersCountthreshold< 500→< 9999emuseCatalogStateBUG-VOZ —
sortMapsembest-seller-supplier/best-seller-promo→ adicionados emFiltersPage.tsxfix(lint):
!= null → !== null(eqeqeq) emuseFiltersPageState.tsl.415Testes: 27/27 passando (
super-filtro-bugfix-15-22.test.ts). ESLint: 0 errors. Prettier: limpo.Summary by cubic
Corrige o Super Filtro: aplica filtros que faltavam, conserta busca/contagem e alinha o range de preço (0–9999). Também adiciona ordenações por voz e reduz flicker em transições.
Bug Fixes
hasPersonalizationno tipoProducte filtro aplicado.variations.size_code.filterseonFilterChange).filters.search(não osearchParamsstale).< 9999emuseCatalogFiltering.activeFiltersCountusa< 9999emuseCatalogState.best-seller-supplierebest-seller-promo.Refactors
React.startTransition+ valor diferido para evitar flicker durante ordenação.requestIdleCallback/fallback de timeout.Written for commit 44151cb. Summary will update on new commits. Review in cubic