feat: domain card layout, AT URI storage, pdsls.dev links
Relay (schema + data model): - Add last_at_uri TEXT column (idempotent ALTER TABLE ADD COLUMN IF NOT EXISTS) - batchUpsert now accepts CollectionEvent[] {name, atUri} instead of string[] - AT URI constructed per event: at://${did}/${collection}/${rkey} - Upsert updates last_at_uri on every conflict so it always reflects the most recently seen record for that collection Web (loader): - Group collections by two-segment domain prefix via SQL CTE (split_part(name,'.', 1) || '.' || split_part(name,'.', 2)) - avg_count = SUM(count) / COUNT(*) — normalised per collection type - Sort by count now orders by avg_count; date sorts use MAX/MIN across domain - COUNT(*) OVER () + MAX(avg_count) OVER () window functions replace the separate count + maxCount queries - Sub-query fetches all collections for visible domain cards via = ANY($domains) Web (UI): - Domain cards replace flat table rows - Domain header links to https://{reversed-domain} (e.g. social.attic → attic.social) - Bar width relative to max avg_count across all domains (respecting hide_bsky) - Each collection name links to https://pdsls.dev/${last_at_uri} when URI available - Date sorts work on MAX(last_seen) / MIN(first_seen) per domain https://claude.ai/code/session_01C5w4RGRwK9tB9DNmtaUwfc