Resume private mobile share bundles after sign-in #1004

Closed
opened 2026-08-17 06:20:24 +00:00 by rockachopa · 0 comments
Member

Problem

The PWA share target stores private text, links, and screenshots in IndexedDB and redirects to ?launch=new&shared=bundle. Anonymous users are then sent through sign-in with that opaque continuation, but frontend/login.js limits shared to five characters and only accepts image. Successful token or passkey authentication therefore lands on Home, leaving the draft stranded on-device.

User impact

A signed-out mobile user can successfully authenticate yet appears to lose the content they shared. The private record also remains retained instead of being consumed once.

Acceptance criteria

  • Token and passkey sign-in preserve exactly ./?launch=new&shared=bundle.
  • The restored New issue flow consumes the private bundle once without putting its contents in the URL.
  • Unknown markers, duplicate keys, extra parameters, fragments, and invalid launch modes still fall back to ./.
  • Focused behavioral tests and the full suite pass.

This is distinct from #903/#904, which introduced private bundle staging and restoration but did not cover the anonymous sign-in boundary.

## Problem The PWA share target stores private text, links, and screenshots in IndexedDB and redirects to `?launch=new&shared=bundle`. Anonymous users are then sent through sign-in with that opaque continuation, but `frontend/login.js` limits `shared` to five characters and only accepts `image`. Successful token or passkey authentication therefore lands on Home, leaving the draft stranded on-device. ## User impact A signed-out mobile user can successfully authenticate yet appears to lose the content they shared. The private record also remains retained instead of being consumed once. ## Acceptance criteria - Token and passkey sign-in preserve exactly `./?launch=new&shared=bundle`. - The restored New issue flow consumes the private bundle once without putting its contents in the URL. - Unknown markers, duplicate keys, extra parameters, fragments, and invalid launch modes still fall back to `./`. - Focused behavioral tests and the full suite pass. This is distinct from #903/#904, which introduced private bundle staging and restoration but did not cover the anonymous sign-in boundary.
timmy was assigned by rockachopa 2026-08-17 06:20:24 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: stackchain/stackchain-dashboard#1004
No description provided.