Skip to content

Remove the server-side live share refresh stack once shares run on dfo-apis #78

Closed

Description

@jm-rivera

With shares served by dfo-apis (#77), the website's own server-side refresh stack is unreachable. src/lib/studio/liveShare.ts, src/lib/studio/liveShareResults.ts, the refresh, render and principal parts of src/lib/studio/liveBackend.ts, their tests and fixtures, the share_card_result table, LIVE_SHARE_WINDOW_S, and the live_unavailable and unavailable withdrawal paths in shareDialog.ts (emitted only by liveShare.ts) stay in the tree until production has served shares from dfo-apis without a fallback. cardDownload.ts also keeps DOWNLOAD_PENDING, liveRefusal, and the live_unavailable, unauthorized and refresh_not_configured cases, and liveCards.ts keeps retry_after_s and retryAt, none of which the new path reads.

Any removal must keep the share pages and embeds rendering from dfo-apis' share record and slot routes, and drop share_card_result through a migration rather than leaving an orphan table.

Done when

  • None of the files and symbols above remain, and pnpm typecheck, pnpm test and pnpm build pass.
  • A migration drops share_card_result, and the share migration round trip (scripts/share-migration-round-trip.ts) still passes on a local stack.

Activity

  1. self-assigned this
    on Nov 5, 2026
  2. jm-rivera commented on Nov 5, 2026

    @jm-rivera
    ContributorAuthor

    #119 removed liveShare.ts, liveShareResults.ts and the refresh parts of liveBackend.ts. Still to do: a migration that drops share_card_result (db/schema.ts keeps the table), and the live_unavailable state in shareDialog.ts.

  3. added a commit that references this issue on Nov 5, 2026
    18e133d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions