Skip to content

chore(discover): remove the duplicate builders filter implementation - #377

Merged
Benjtalkshow merged 1 commit into
mainfrom
chore/dedupe-builders-filters
Aug 30, 2026
Merged

chore(discover): remove the duplicate builders filter implementation#377
Benjtalkshow merged 1 commit into
mainfrom
chore/dedupe-builders-filters

Conversation

@Benjtalkshow

Copy link
Copy Markdown
Contributor

Follow up to #374, which was merged so the contributor's work is recorded even though the shared rail had already landed in #371.

Every file #374 added was a second copy of something the tree already had, and nothing outside those files referenced any of them:

Removed Already provided by
builders-filter-rail.tsx FilterRail (#371), shared by both directories
builders-filter-sheet.tsx FilterSheet (#371). Never imported
GenericFilterRail in filter-rail.tsx FilterRail, which is already generic
lib/api/users.ts use-builders.ts, deriving DTOs from the generated schema
IMPLEMENTATION.md, BUILDER_FILTERS_SUMMARY.md Working notes
.vscode/settings.json Editor config

735 deletions, matching #374's 735 additions exactly. filter-rail.tsx is byte identical to its state before #374.

The hand written DTOs are the part worth calling out. They would have drifted silently the next time the backend changed, while Schemas['BuilderListItemDto'] cannot.

tsc, eslint and build all pass, and /builders still prerenders.

🤖 Generated with Claude Code

#374 was merged so the contributor's work is recorded, but the shared
filter rail had already landed in #371, so everything in it was a second
copy of something the tree already had. This removes that copy.

- builders-filter-rail and builders-filter-sheet duplicated FilterRail
  and FilterSheet, which both directories already share. Neither was
  imported anywhere.
- GenericFilterRail sat beside a FilterRail that is already generic.
- lib/api/users.ts hand wrote BuilderListItemDto and BuilderFiltersDto,
  which use-builders.ts derives from the generated schema. Hand written
  copies drift silently when the backend changes; the derived ones cannot.
- IMPLEMENTATION.md and BUILDER_FILTERS_SUMMARY.md were working notes,
  and .vscode/settings.json is editor config.

Nothing outside these files referenced any of them, so this is a straight
removal. filter-rail.tsx is byte identical to its state before #374.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 30, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
bounties Building Building Preview Aug 30, 2026 1:55pm

@Benjtalkshow
Benjtalkshow merged commit 670908b into main Aug 30, 2026
1 of 2 checks passed
@Benjtalkshow
Benjtalkshow deleted the chore/dedupe-builders-filters branch August 30, 2026 13:56
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.

1 participant