Skip to content

Share links: one fixed link per project, QR codes - #105

Merged
mehfuzh merged 1 commit into
mainfrom
share-link-qr
Nov 14, 2026
Merged

mehfuzh merged 1 commit into
mainfrom
share-link-qr

Conversation

@mehfuzh

@mehfuzh mehfuzh commented Nov 14, 2026

Copy link
Copy Markdown
Member
  • A project's share link id is derived from its project id (SHA-256 → 12 base62 characters; share::link_id in the app, linkIdFor in the share function), so Export always shows the project's link, even before anything is uploaded. A project's earlier random-id link is replaced on its next share.
  • QR code for the link: toggle on the link box in the app; on the share page, small beside the actions and large on click (for a projector). The page loads [email protected] from jsdelivr with an SRI hash.
  • Share page: the rendered page is kept in the edge cache for 30 s (no Supabase round trip per visit).
  • Export dialog: link box text centred, step contents aligned with step names, the link shown while uploading; "Your links" list removed.

The share function changes are already deployed.

Tests: cargo test --workspace; live share_again_keeps_the_link (same link on re-share, derived id, new video served).

- A project's link id is derived from its project id (SHA-256, 12 base62
  characters; share::link_id in the app, linkIdFor on the server), so the
  Export dialog always shows the link, even before anything is uploaded.
  A project's earlier random-id link is replaced by it on the next share.
- QR code for the link: a toggle on the link box in the app, and on the
  share page (small beside the actions, large on click, for a projector).
- Share page: rendered page kept in the edge cache for 30 s.
- Export dialog: link box text centred, step contents aligned with step
  names, link shown while uploading instead of the "Done closes this" note.
- "Your links" list removed from the Export dialog.
@mehfuzh
mehfuzh merged commit c7ba53d into main Nov 14, 2026
3 checks passed
@mehfuzh
mehfuzh deleted the share-link-qr branch November 14, 2026 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant