Rock Gomes

Filter builder

Fieldset · 2026 · filter builder

A filter builder over 50,000 rows. It keeps your edits, and it asks you before it changes what you selected.

problem

When you change a filter, most apps guess what you meant or throw away your edits.

decision

When the app cannot know what you meant, it asks. Your edits stay until you save them or drop them.

result

A working demo you can try. I kept the hard logic apart from the screen code, and it has tests.

fieldset-filter-builder.netlify.app
Fieldset filter builder, live demo, a still picture
The live demo. Switch from 5k to 50k rows, then scroll.
role
I made the product and design decisions, and directed the build with Claude Code.
context
Side project, live demo, no backend
deliverables
A filter builder with saved views, over 50,000 rows
tools
React, TypeScript, Vite, Vitest, Netlify, Claude Code

Four things it does differently

try each one in the demo

1 of 4

206 selected, 173 still match

You select all 206 matching rows, then make the filter stricter. Now only 173 of them match. The app cannot know if you still want all 206, so it asks: keep all 206, trim to 173, or start over.

Headcount is now more than 900. A bar over the table says 173 of the 206 selected rows still match, with Keep all 206 and Trim to 173 matching.
Headcount changed from 200 to 900. The app shows both numbers and asks.

2 of 4

Edits stay when you switch views

Edit a saved view, switch to another, then come back. Your edits are still there, marked unsaved. One click brings back the saved version.

3 of 4

A deleted field does not break a view

A saved view can use a field that was deleted. The view still works. It marks that condition as ignored and skips it. You can then pick a different field for it.

The EMEA legacy view: its first condition uses region_emea (deleted) and is marked as ignored. The table still shows 3100 rows.
EMEA legacy: one condition is ignored because its field was deleted.

4 of 4

One view that cannot be changed

Nobody can rename, delete or save over the “All companies” view, so you can always go back to it. I added this lock after I saved over that view by accident.

how it is built

The logic is separate from the screen code

I built it with React and TypeScript, with no server. Your browser makes the 50,000 rows, the same rows every time. Only about 30 rows are on the page at once. I kept filtering, sorting, selection, and saved views apart from the React code, so I could write tests for the hard parts.

Next case study