Cato and Claude
fc26f09019
refactor(lists): directory, series index and careers search through listkit ( #379 )
...
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 >
2026-11-12 08:26:30 +01:00
..
2026-10-27 21:44:15 +01:00
2026-10-29 11:57:03 +01:00
2026-10-24 11:04:03 +02:00
2026-10-23 13:00:25 +02:00
2026-10-02 10:16:53 -07:00
2026-10-23 13:43:18 +02:00
2026-10-27 10:36:52 +01:00
2026-10-27 10:36:52 +01:00
2026-10-02 06:09:29 -07:00
2026-10-24 18:49:23 +02:00
2026-10-27 21:44:15 +01:00
2026-10-24 18:49:23 +02:00
2026-10-22 20:47:56 +02:00
2026-10-24 10:36:20 +02:00
2026-10-09 07:32:12 -07:00
2026-10-23 13:00:25 +02:00
2026-09-25 02:13:44 -07:00
2026-11-12 05:55:48 +01:00
2026-09-24 02:17:26 -07:00
2026-10-07 09:08:05 -07:00
2026-09-25 23:10:52 -07:00
2026-09-24 14:10:02 -07:00
2026-09-15 04:13:32 -07:00
2026-10-24 10:24:53 +02:00
2026-11-05 20:51:47 +01:00
2026-10-12 04:09:08 -07:00
2026-10-12 06:34:47 -07:00
2026-10-12 05:11:11 -07:00
2026-10-12 03:31:04 -07:00
2026-10-24 18:49:23 +02:00
2026-09-24 11:22:12 -07:00
2026-09-21 00:08:47 -07:00
2026-10-24 18:49:23 +02:00
2026-10-27 12:35:27 +01:00
2026-10-27 21:44:15 +01:00
2026-10-24 18:49:23 +02:00
2026-10-25 12:23:32 +01:00
2026-10-27 21:44:15 +01:00
2026-10-27 15:37:22 +01:00
2026-10-27 15:51:29 +01:00
2026-09-24 02:05:07 -07:00
2026-10-25 12:54:53 +01:00
2026-10-27 08:56:43 +01:00
2026-09-15 02:41:54 -07:00
2026-10-12 10:18:54 -07:00
2026-10-24 09:33:33 +02:00
2026-10-24 09:26:12 +02:00
2026-10-24 09:26:12 +02:00
2026-10-29 11:57:03 +01:00
2026-11-12 08:16:31 +01:00
2026-09-18 08:10:31 -07:00
2026-11-12 05:19:53 +01:00
2026-09-24 16:02:40 -07:00
2026-10-12 10:18:54 -07:00
2026-10-24 11:49:38 +02:00
2026-09-17 06:57:53 -07:00
2026-10-24 10:51:06 +02:00
2026-10-24 08:29:39 +02:00
2026-09-24 13:47:14 -07:00
2026-10-01 08:34:52 -07:00
2026-09-25 08:39:07 -07:00
2026-09-25 08:39:07 -07:00
2026-11-05 19:44:23 +01:00
2026-10-17 03:27:27 -07:00
2026-09-25 05:22:39 -07:00
2026-09-25 01:44:30 -07:00
2026-09-24 02:28:15 -07:00
2026-10-25 12:23:32 +01:00
2026-11-12 08:16:31 +01:00
2026-10-27 21:07:46 +01:00
2026-09-25 05:40:44 -07:00
2026-09-30 10:06:24 -07:00
2026-10-30 23:35:59 +01:00
2026-10-24 08:43:42 +02:00
2026-11-12 07:57:25 +01:00
2026-09-17 06:07:52 -07:00
2026-10-23 13:47:27 +02:00
2026-10-23 13:47:27 +02:00
2026-10-24 10:03:52 +02:00
2026-10-24 11:49:38 +02:00
2026-09-17 06:57:53 -07:00
2026-10-24 10:51:06 +02:00
2026-09-25 23:02:57 -07:00
2026-10-06 03:45:31 -07:00
2026-10-23 13:03:36 +02:00
2026-09-26 00:23:09 -07:00
2026-10-23 13:03:36 +02:00
2026-09-25 08:39:07 -07:00
2026-10-27 08:47:33 +01:00
2026-10-27 08:47:33 +01:00
2026-10-27 08:47:33 +01:00
2026-10-27 15:50:37 +01:00
2026-11-10 23:41:50 +01:00
2026-11-12 07:32:53 +01:00
2026-09-24 22:33:46 -07:00
2026-10-01 05:07:00 -07:00
2026-11-12 05:13:54 +01:00
2026-10-27 08:47:33 +01:00
2026-10-23 13:03:36 +02:00
2026-10-30 23:35:59 +01:00
2026-09-26 11:58:05 -07:00
2026-10-24 10:51:06 +02:00
2026-09-15 01:19:10 -07:00
2026-10-26 04:11:20 +01:00
2026-11-05 20:32:39 +01:00
2026-09-17 09:39:08 -07:00
2026-11-12 05:48:20 +01:00
2026-10-28 08:18:46 +01:00
2026-09-17 06:07:52 -07:00
2026-10-25 12:59:15 +01:00
2026-10-25 12:59:15 +01:00
2026-10-29 11:57:03 +01:00
2026-09-25 05:52:42 -07:00
2026-09-25 05:31:49 -07:00
2026-10-23 13:03:36 +02:00
2026-10-24 11:53:32 +02:00
2026-09-24 14:12:25 -07:00
2026-11-05 20:06:13 +01:00
2026-11-12 08:16:31 +01:00
2026-10-24 19:08:06 +02:00
2026-10-24 10:51:06 +02:00
2026-09-25 08:39:07 -07:00
2026-10-27 15:34:09 +01:00
2026-09-16 06:19:07 -07:00
2026-09-24 16:02:40 -07:00
2026-10-23 10:48:04 +02:00
2026-11-05 20:06:58 +01:00
2026-10-24 10:51:06 +02:00
2026-10-24 08:37:08 +02:00
2026-10-24 08:37:08 +02:00
2026-10-23 11:14:36 +02:00
2026-10-24 11:00:09 +02:00
2026-11-10 01:47:57 +01:00
2026-10-24 09:18:21 +02:00
2026-10-07 08:56:18 -07:00
2026-11-10 10:45:49 +01:00
2026-10-07 04:11:48 -07:00
2026-10-24 18:49:23 +02:00
2026-11-12 08:26:30 +01:00
2026-10-27 15:57:03 +01:00
2026-10-25 12:54:53 +01:00
2026-10-27 19:39:10 +01:00
2026-10-27 15:50:37 +01:00
2026-11-05 21:02:53 +01:00
2026-11-12 06:15:56 +01:00
2026-10-07 08:48:39 -07:00
2026-10-27 21:07:46 +01:00
2026-10-30 10:00:49 +01:00
2026-09-26 00:40:42 -07:00