Project 05 of 84
Cates Works
Operating platform for the Cates Works web consultancy ('Web applications, made to work'): public marketing site, authenticated client portal, internal admin console, and a shared Hono API plus PostgreSQL outbox worker, in one pnpm monorepo.
- Status
- Shipped
- Last activity
- 2026
- Live
- Stack
- TypeScript
- pnpm workspaces monorepo
- Next.js App Router
- Tailwind CSS
- Hono
- Drizzle ORM
- Supabase
- Kubb-generated API client
Highlights
- Moved the platform's Hono API and Postgres outbox worker from Render to CapRover on a Hostinger host: tag-driven ECR image builds for both services (fixing a CI gap where the worker image was never built) and a deploy workflow that only passes once https://api.cates.works/health returns a real 200. The old Render pipeline was deleted only after a 48-hour DNS soak.
- Expanded Playwright coverage from 5 to 53 specs (4 to 51 page-object files) in a 6-day pass (95 repo commits, 49 touching the e2e app). Every route in the public site, client portal and staff console gained state attributes (data-state, data-load-state, aria-busy) derived from the same state that drives rendering, which removed arbitrary waits from the tests.
- Fixed real accessibility and correctness defects that the e2e and quality-loop passes found in the same run: missing focus-visible rings, a live-region announcement for filter changes, focus moved to form success and error panels, CMS draft validation, and a reload race in the website editor.
- Added a build-time guard (pnpm check:dynamic-routes) that fails when CMS-backed detail routes land in Next.js's prerender manifest. Also made /capabilities/[slug] force-dynamic, because it had the same failure shape as the 2026-07-30 outage that took down every /work/<slug> page.
- Added gitleaks and trufflehog secret scanning to the Vercel and mobile release workflows. Then fixed a gate bug where continue-on-error let real findings pass silently, so deploys now block on a confirmed leak.
- Moved the platform's runtime secrets (API, outbox worker, 3 Vercel projects, mobile CI) into declarative 1Password-backed manifests. The marketing site's Vercel project went first as the reference migration, and a clean diff against the live project confirmed both plain and encrypted values matched.
- Moved CI onto a self-hosted macOS runner pool by replacing GitHub's Linux-only services: Postgres with a docker run container plus a readiness poll. Also fixed a cross-file database test deadlock and a marketplace manifest drift that had failed the skills-release check on every run.
- Added multi-channel distribution for Claude Code skills to the monorepo: a workspace package, an npm package and a plugin marketplace. It ships with Changesets versioning and a skills-release workflow that validates, syncs and publishes skill content.
- Added a staff-facing provider kill switch to the prospect-intelligence admin console, so platform staff can block outbound sends globally or per provider, with a recorded reason.
- Fixed a Supabase Advisor search_path warning on a CMS trigger function with a forward migration. Pinned search_path to public instead of empty to keep unqualified name resolution working, then verified on production with a rolled-back read and an Advisor re-check.
- Wrote the repo's CODING_STANDARDS.md and a domain GLOSSARY.md from its own config and majority code patterns. Then reconciled every session dossier's follow-ups against the beads tracker and corrected stale deploy docs (Render to CapRover, real dev ports).