Skip to content

Upload places: a draft without a place preselects another ticket's place; renewed links and Export after relaunch #352

Backlog

Description

@morepriyam

Found while validating #335 on the iPhone 17e simulator, Galaxy S24 Ultra (Android 17) and Android emulator (API 36) (2026-11-30). Build: Pulse 2.8.0, main 0ec70e18 + #349.

Three gaps in how a draft relates to the place (ticket) link it was made for. Two of them (F13, F14) are design questions with options below. The third (F24) is a confusing end state that follows from two rules that are each by design.

1. A draft without its own place preselects another ticket's place (F13) — design question

Origin: this has been the default since #290. src/features/upload/pairing/upload-choice.ts says: "Any other draft defaults to the newest destination, as it always has."

Repro (iOS sim):

  1. Pair several place links (each names a ticket), then record and upload a project for one of them.
  2. Home → that project → Draft options → Duplicate.
  3. Open the copy → Export.

Expected: a destination that belongs to a different ticket isn't preselected, or Upload asks before using it.
Actual: "Upload to Ticket 42 on localhost:8767" is preselected (one of five place destinations). One tap on Upload sends the copy to that ticket's link.

From code-reading, the same applies to any draft without a place (place ? ownDestination : pool[0]): duplicates, imported .pulse files and Blank projects. Only the duplicate was run.

Options:

  • A. Preselect nothing for a draft without a place; the person picks.
  • B. Preselect only the newest destination that isn't a place (a plain server pairing), and never preselect a place for a draft that isn't its own. This keeps one-tap upload for plain-server users.
  • C. Keep the default, but when it's a place, show the place's label and confirm before uploading.

2. A renewed link for a delivered place (F14) — design question

Origin: the #349 flow (open; issue #347). The #335 acceptance item reads "Renewing the link keeps the first approved address."

Repro (iOS sim, local signed-token PulseVault):

  1. Open a place link (ref user1:ticket:ticket42) with return timehuddle://open/app/tickets/ticket42?team=team7 → Connect & allow return → record → Upload. The single-use link is now used up and its destination row is removed.
  2. Open a new link for the same ref with a different return (…/tickets/other99).

Actual: the return sheet asks again. Approving it stores other99 on the new destination, while the delivered draft keeps ticket42. The new link opens an empty recorder, not the delivered draft.
Expected: not decided. "Keeps the first approved address" holds only while the place's destination row exists.

Options:

3. After a relaunch, Export for a delivered project drops Watch (F24)

Repro:

  1. Pair with return → record → Upload. Export shows Watch and Back to TimeHuddle.
  2. Force-stop, relaunch, open the project → Export.

Actual: Back to TimeHuddle is still there, but Watch is gone.

  • Emulator and sim: the UPLOAD carousel lists other saved destinations, none selected, with Upload disabled.
  • S24: Share / Photos / Back to TimeHuddle / X.

Why (code-reading):

  • export-screen.tsx shows Watch only for an upload that finished while the screen was open ("no persistent buttons").
  • A watch link that carries the upload token is held in memory for the session only (upload-manager.ts, WatchLink), because that token can also delete the video. Only shareable links are saved and restored.
  • Back to TimeHuddle (Return delivered Pulse projects to their originating TimeHuddle build #349) is stored on the draft, so it survives the relaunch.

Expected: a delivered project's Export reads as delivered, for example "Uploaded to Ticket 42" with Back to TimeHuddle, plus Share link when a shareable link was saved. It shouldn't show a disabled Upload over unrelated destinations.

Direction: for an uploaded draft whose own destination is gone, replace the destination carousel with a delivered summary. Keep token-bearing links session-only. Watch links are a later phase of #252.

Acceptance

Refs: #335 (F13, F14, F24), #349, #347, #290, #252.

Activity

  1. moved this from Ready to In Progress in Scrum Team Jerryon Dec 3, 2026
  2. moved this from In Progress to Done in Scrum Team Jerryon Dec 3, 2026
  3. morepriyam commented on Dec 4, 2026

    @morepriyam
    CollaboratorAuthor

    Reopening: #382 fixed part 1 only (a draft without its own place no longer preselects another ticket's place; verified on a Pixel 6a and merged). Parts 2 and 3 (renewed place links, F14; Export after relaunch, F24) remain open, pending the decisions listed on #335.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions