iamnbutler/iamnbutler.github.ioPublic

Personal Site

refactor: migrate nate.rip to site.standard schema #46

Mergediamnbutlermerged 3 commits intomainfromrefs/pull/46/head
  1. IA

    Migrate the nate.rip application from the old rip.nate.* collections to the new site.standard schema for improved consistency and maintainability.

    **Lexicon Changes** - Added `site.standard.document` lexicon for generic document records with fragmentType enum (post/shot/list/link) - Added `site.standard.publication` lexicon for publication metadata

    **Scripts** - Added `upload-publication.ts` to create publication singleton records - Added `migrate-to-standard.ts` to convert existing records from old schema to new schema - Updated `upload-link.ts`, `upload-post.ts`, and `upload.ts` to target site.standard.document collection with new field mappings (content→textContent, createdAt→publishedAt, url→externalUrl)

    **Frontend Updates** - Simplified `lib/atproto.ts` to fetch from a single COLLECTION_DOCUMENT with automatic fragmentType detection - Updated `lib/types.ts` to include atUri field on Fragment type - Updated `pages/f/[id].astro` to pass atUri to Base layout - Updated `layouts/Base.astro` to add atUri prop and rel="site.standard.document" link header

    **Dependencies** - Removed ~8 "peer" flags from package-lock.json (dependencies no longer peer-only) - Removed ~25 "dev" flags from esbuild platform-specific packages

    > Created by **GitHub Ace** · [View Session](https://ace.githubnext.com/iamnbutler/iamnbutler.github.io/01KJ3GFPMC45XAVAXPP42BP3WY)

  2. iamnbutlermerged 24bd42691abb8 months ago on GitHub

  3. iamnbutlerclosed8 months ago on GitHub

  4. iamnbutlerhead-ref-deleted8 months ago on GitHub