Migrate from Airtable to Red Cliff Record#65
Open
Aias wants to merge 16 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.