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-11-12 06:15:56 +01:00
2026-11-12 06:15:56 +01:00
2026-10-22 19:02:13 +02:00
2026-11-12 06:15:56 +01:00
2026-10-27 15:51:29 +01:00
2026-10-27 15:51:29 +01:00
2026-10-24 09:33:33 +02:00
2026-10-25 12:54:53 +01:00
2026-10-27 19:39:10 +01:00
2026-10-25 12:54:53 +01:00
2026-11-12 08:16:31 +01:00
2026-10-24 11:00:09 +02:00
2026-10-24 10:51:06 +02:00
2026-10-25 12:54:53 +01:00
2026-09-17 06:57:53 -07:00
2026-11-10 23:41:50 +01:00
2026-10-27 15:51:29 +01:00
2026-11-05 20:32:39 +01:00
2026-10-27 21:07:46 +01:00
2026-09-24 16:02:40 -07:00
2026-10-24 07:46:42 +02:00
2026-09-24 16:10:58 -07:00
2026-10-25 12:54:53 +01:00
2026-11-10 23:41:50 +01:00
2026-11-12 08:26:30 +01:00
2026-10-23 13:03:36 +02:00
2026-09-26 00:40:42 -07:00
2026-10-29 11:57:03 +01:00
2026-09-24 22:33:46 -07:00
2026-09-25 02:13:44 -07:00
2026-10-09 07:32:12 -07:00
2026-09-24 17:40:18 -07:00
2026-09-25 08:39:07 -07:00
2026-10-29 11:57:03 +01:00
2026-11-01 23:21:22 +01:00
2026-11-05 21:02:53 +01:00
2026-09-24 14:12:25 -07:00
2026-10-07 09:08:05 -07:00
2026-10-23 13:47:27 +02:00
2026-10-07 09:08:05 -07:00
2026-09-25 23:10:52 -07:00
2026-11-05 21:02:53 +01:00
2026-09-25 23:10:52 -07:00
2026-09-24 14:10:02 -07:00
2026-09-24 14:10:02 -07:00
2026-10-01 05:07:00 -07:00
2026-09-24 14:47:53 -07:00
2026-09-24 14:47:53 -07:00
2026-11-12 08:26:30 +01:00
2026-09-26 00:40:42 -07:00
2026-11-05 20:51:47 +01:00
2026-09-24 14:47:53 -07:00
2026-10-01 05:07:00 -07:00
2026-09-24 17:40:18 -07:00
2026-09-21 00:08:47 -07:00
2026-10-24 18:49:23 +02:00
2026-10-24 18:49:23 +02:00
2026-10-24 18:49:23 +02:00
2026-09-24 15:12:37 -07:00
2026-09-25 08:39:07 -07:00
2026-10-27 15:51:29 +01:00
2026-09-15 02:41:54 -07:00
2026-10-23 13:47:27 +02:00
2026-10-30 10:00:49 +01:00
2026-09-24 14:12:25 -07:00
2026-09-24 11:59:07 -07:00
2026-10-12 10:18:54 -07:00
2026-09-24 14:47:53 -07:00
2026-09-24 15:12:37 -07:00
2026-09-24 13:48:53 -07:00
2026-09-24 15:12:37 -07:00
2026-09-24 02:28:15 -07:00
2026-09-26 00:00:11 -07:00
2026-09-28 04:36:35 -07:00
2026-09-16 08:01:48 -07:00
2026-11-05 21:02:53 +01:00
2026-10-01 08:34:52 -07:00
2026-09-24 13:13:56 -07:00
2026-10-25 12:54:53 +01:00
2026-10-01 08:34:52 -07:00
2026-10-12 10:18:54 -07:00
2026-09-24 11:59:07 -07:00
2026-10-17 03:27:27 -07:00
2026-09-24 21:50:18 -07:00
2026-11-05 19:44:23 +01:00
2026-09-24 11:59:07 -07:00
2026-09-24 22:33:46 -07:00
2026-09-25 05:40:44 -07:00
2026-09-25 09:08:26 -07:00
2026-09-24 16:02:40 -07:00
2026-10-27 21:44:15 +01:00
2026-10-22 23:02:26 +02:00
2026-10-27 10:40:36 +01:00
2026-09-24 14:47:53 -07:00
2026-09-24 14:47:53 -07:00
2026-09-15 01:19:10 -07:00
2026-09-25 23:02:57 -07:00
2026-10-06 03:29:35 -07:00
2026-09-24 14:47:53 -07:00
2026-10-27 19:39:10 +01:00
2026-11-12 08:26:30 +01:00
2026-09-26 00:23:09 -07:00
2026-09-24 11:59:07 -07:00
2026-10-23 13:47:27 +02:00
2026-09-24 22:33:46 -07:00
2026-09-24 14:47:53 -07:00
2026-09-25 23:02:57 -07:00
2026-09-24 14:12:25 -07:00
2026-09-26 00:23:09 -07:00
2026-09-25 05:31:49 -07:00
2026-09-24 13:48:53 -07:00
2026-09-24 16:02:40 -07:00
2026-10-25 12:54:53 +01:00
2026-10-25 12:54:53 +01:00
2026-11-10 10:45:49 +01:00
2026-09-24 14:47:53 -07:00
2026-10-27 08:47:33 +01:00
2026-11-10 10:45:49 +01:00
2026-09-25 08:39:07 -07:00
2026-09-24 11:22:12 -07:00
2026-09-17 09:39:08 -07:00
2026-10-24 19:08:06 +02:00
2026-09-24 22:33:46 -07:00
2026-11-12 05:48:20 +01:00
2026-09-15 15:26:35 -07:00
2026-10-25 12:54:53 +01:00
2026-09-24 13:48:53 -07:00
2026-09-24 16:02:40 -07:00
2026-09-24 13:48:53 -07:00
2026-09-24 13:48:53 -07:00
2026-11-05 20:06:13 +01:00
2026-09-24 13:48:53 -07:00
2026-11-12 08:16:31 +01:00
2026-10-24 10:51:06 +02:00
2026-10-24 19:08:06 +02:00
2026-09-24 16:02:40 -07:00
2026-09-24 15:12:37 -07:00
2026-10-23 13:47:27 +02:00
2026-10-29 11:57:03 +01:00
2026-10-01 05:07:00 -07:00
2026-11-12 08:16:31 +01:00
2026-11-12 08:16:31 +01:00
2026-10-24 11:49:38 +02:00
2026-10-23 11:14:36 +02:00
2026-11-10 01:47:57 +01:00
2026-10-01 07:19:51 -07:00
2026-09-25 23:02:57 -07:00
2026-09-24 02:28:15 -07:00
2026-11-12 08:16:31 +01:00
2026-11-12 08:16:31 +01:00
2026-10-07 08:56:18 -07:00
2026-10-12 10:18:54 -07:00
2026-10-06 03:29:35 -07:00
2026-10-06 03:29:35 -07:00
2026-09-26 00:00:11 -07:00
2026-10-30 10:00:49 +01:00
2026-09-24 16:16:13 -07:00