rspace-online/modules/rsocials/components
Jeff Emmett 831c8b1c24 feat: refactor rSocials from monolith to full rApp
Decompose the 2,116-line mod.ts into a canonical rApp matching the
rFlows/rBooks pattern with Automerge sync, web components, and
extracted CSS.

New files:
- schemas.ts: SocialsDoc, ThreadData, Campaign types + Automerge schema
- local-first-client.ts: browser-side sync client
- lib/types.ts: shared types, DEMO_FEED, PLATFORM_LIMITS
- lib/image-gen.ts: server-only fal.ai + file upload helpers
- components/folk-thread-builder.ts: compose/preview/readonly component
- components/folk-thread-gallery.ts: thread listing grid component
- components/folk-campaign-manager.ts: campaign viewer with import modal
- components/socials.css: all extracted CSS (~550 lines)

mod.ts slimmed to ~616 lines: ensureDoc, image APIs, page routes
injecting <folk-*> web components, file→Automerge migration, seed
template, and module export. Thread/campaign CRUD moved from REST
to Automerge local-first sync.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 20:42:18 -08:00
..
folk-campaign-manager.ts feat: refactor rSocials from monolith to full rApp 2026-03-04 20:42:18 -08:00
folk-socials-canvas.ts fix: add wasm plugin to folk-flows-app build + add missing rsocials components 2026-03-04 20:34:32 -08:00
folk-thread-builder.ts feat: refactor rSocials from monolith to full rApp 2026-03-04 20:42:18 -08:00
folk-thread-gallery.ts feat: refactor rSocials from monolith to full rApp 2026-03-04 20:42:18 -08:00
socials-canvas.css fix: add wasm plugin to folk-flows-app build + add missing rsocials components 2026-03-04 20:34:32 -08:00
socials.css feat: refactor rSocials from monolith to full rApp 2026-03-04 20:42:18 -08:00