mirror of
https://github.com/bitbaum/substrata.git
synced 2026-12-04 03:27:31 +01:00
The company directory, the data series index and the careers SQL search each hand-rolled what listkit already ships: facet parsing and validation, facet counts with the facet's own selection lifted, a "show more" URL rebuilt from scratch, and a LIKE escape. The package rule says use the package. - lib/universe/directory.ts: the four filters are a ListSpec (directorySpec); parseQuery validates them, applyQuery filters, counts and draws the rows. Typed words stay with searchkit (textFilter), so a slip is still forgiven. - app/data/series/page.tsx: bottleneck, measure and origin are a ListSpec; applyQuery and matches replace the hand-written predicate and slice. - lib/list-more.ts: "Show more" keeps the ?n= URLs and writes the next one with writeQuery over the reader's params (empty and invalid values dropped). - lib/careers-query.ts: title search uses likeContains instead of a local escape. Same rows for the same URLs: 1890 directory filter combinations compared old against new, identical rows, matched counts and facet counts. Tests pin the spec, the ?n= paging and that a comma in typed words is not a list. Claude-Session: https://claude.ai/code/session_019MDtmuvTGrpo3VChP3skH8 Co-authored-by: Claude <noreply@anthropic.com>