Skip to content

Migrate from Airtable to Red Cliff Record#65

Open
Aias wants to merge 16 commits into
mainfrom
rcr-migration
Open

Migrate from Airtable to Red Cliff Record#65
Aias wants to merge 16 commits into
mainfrom
rcr-migration

Conversation

@Aias

@Aias Aias commented Jul 2, 2026

Copy link
Copy Markdown
Owner

Red Cliff Record now holds everything the site's Airtable base does and more, in Postgres. Migrates barnsworthburning onto the rcr database via the @aias/hozo schema package and retires Airtable.

The site becomes the public window into rcr's unified record model: artifacts, entities, and concepts all render in the same detail panel, listed at /artifacts, /entities, and /concepts with /records/{id}/{slug} permalinks (slug derived from the title, Notion-style). Legacy section routes redirect; old Airtable rec-ID URLs get a clean break. The trail keeps its exact interaction contract — panels spawn from record links, prune after the selected segment, dedupe, rotate palettes — but simplifies to one fetch shape now that every record type is panel-able.

Under the hood, the Airtable SDK, the internal /api layer, and the view-model mapping are gone. Load functions query Postgres directly through Drizzle with hozo's schema and relations; ranked queries sort by elo with rating/recency tiebreaks; search is trigram ILIKE across title/content/summary/abbreviation with a type filter; images render from the media table with real alt text. Deployment moves from Cloudflare Workers to adapter-node under pm2 on the mac mini behind a Cloudflare Tunnel (scripts/deploy/README.md).

Depends on Aias/red-cliff-record#132. DO NOT MERGE UNTIL @aias/hozo 0.4.0 IS PUBLISHED TO NPM — the interim file: dependency resolves only against the local worktree; swap it for ~0.4.0 once published.

MIGRATION.md holds the full plan (decisions, verified data, work items for both repos, and the cutover checklist) and is deleted once the migration lands.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 2, 2026

Copy link
Copy Markdown

Deploying barnsworthburning with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6bdda74
Status:🚫  Build failed.

View logs

@Aias Aias force-pushed the rcr-migration branch from 8b7686d to cd189f9 Compare July 2, 2026 12:29
@Aias Aias marked this pull request as ready for review July 5, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant