Commit graph

21 commits

Author SHA1 Message Date
ThatGuySam
f1cb66c477 fix(build): retry transient sitemap endpoint fetches
The TypeScript helper refactor exposed a separate production risk: builds can fail when the sitemap-endpoints API returns a transient 5xx during Pagefind index generation. Move that fetch into a small helper with retry logic and add a focused prebuild test so this failure mode is caught without waiting on a full deploy.

Constraint: Must keep Pagefind index generation behavior the same when the endpoint is healthy
Rejected: Ignore the failure as external-only | transient 5xx responses can still block deploys and CI repeatedly
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: When external build inputs can fail transiently, add a small retryable helper plus a direct test before relying on full deploy verification
Tested: pnpm exec vitest run test/prebuild/load-sitemap-endpoints.test.ts; pnpm run typecheck; pnpm run test-prebuild
Not-tested: Full production redeploy completion before push
2026-04-04 18:18:23 -05:00
ThatGuySam
e1da6eb880 feat(search): add pagefind provider support
Add Pagefind indexing and browser search adapters behind a provider switch.

This lets prebuild generate either Stork or Pagefind search artifacts and lets the existing search UI run against Pagefind while preserving scoped filters, excerpts, and result metadata.
2026-03-15 13:42:07 -05:00
ThatGuySam
727f84e4c2 refactor(search): extract shared filter helper
Share filter parsing and provider mapping logic between Stork and upcoming search adapters.

This keeps the existing Stork API stable while adding Pagefind-oriented filter serialization under test.
2026-03-15 13:41:33 -05:00
ThatGuySam
1c2ce65f7d test(stork): cover node 22 runtime detection
Add focused regression tests for the environment helper and Stork binary target selection so the Ubuntu 24 and Apple Silicon path stays protected.
2026-03-15 11:58:05 -05:00
ThatGuySam
48be5593d3 update: refactor primary prebuild tests to vitest 2024-12-27 15:07:28 -06:00
ThatGuySam
bff6fd4494 update: refactor filters test to vitest 2024-12-27 15:04:46 -06:00
ThatGuySam
fddfa9d5a4 update: disable ava test suites 2024-12-27 14:48:54 -06:00
Sam Carlton
c45a3e5275 Add colon to allowed characters 2022-10-03 16:06:22 -05:00
Sam Carlton
7f55f6f80f Add plus to allowed title characters 2022-10-03 16:01:54 -05:00
Sam Carlton
25708dccae Enable setting filters via string 2022-06-05 10:28:34 -05:00
Sam Carlton
62401d1f76 Add support for updating existing filters 2022-06-04 19:49:36 -05:00
Sam Carlton
be18f711d6 Add suppor for underscores in filter values 2022-06-04 19:13:57 -05:00
Sam Carlton
127d6db399 Enable toggleable filters class 2022-06-04 18:27:39 -05:00
Sam Carlton
f2dc9488d8 Include hasPreviousPage in test 2022-06-03 19:08:29 -05:00
Sam Carlton
f838955dc3 Add hasNextPage to pagination 2022-05-20 14:39:09 -05:00
Sam Carlton
ae0be1b78f Test that last page can have less than the rest 2022-05-18 17:24:59 -05:00
Sam Carlton
fef9002c8f Add paginate test 2022-05-18 17:06:04 -05:00
Sam Carlton
2d7ab15978 Move listings to their own directory 2022-04-30 15:03:01 -05:00
Sam Carlton
972aca20bd Disable logger 2022-04-30 14:50:21 -05:00
Sam Carlton
323f0d0d6b Add support for listing head markup 2022-04-30 14:47:44 -05:00
Sam Carlton
3797250254 Enable multiple prebuild files 2022-04-30 14:45:09 -05:00