Skip to content

Show Re-issue activation link for mobile_push channels too#82

Merged
SiteRelEnby merged 1 commit into
mainfrom
reissue-mobile-push
May 26, 2026
Merged

Show Re-issue activation link for mobile_push channels too#82
SiteRelEnby merged 1 commit into
mainfrom
reissue-mobile-push

Conversation

@SiteRelEnby
Copy link
Copy Markdown
Contributor

The Re-issue button on the channel detail page was gated on destination_type === "web_push", so mobile_push channels in pending_registration had no UI path to a fresh magic link. That breaks the two cases noted in load testing:

  • Re-imported channels. The Sheaf importer drops the activation hash / expiry deliberately (per-instance state that doesn't ride along), so an imported mobile_push channel sits in pending_registration with no link.
  • Consumed-but-unfinished. If a redemption half-completes, the token is gone but the channel stays pending_registration.

Backend (POST /v1/channels/{id}/reissue-activation) already accepts any push type (_PUSH_TYPES = {web_push, mobile_push}); only the frontend gate needed widening. One-line condition change.

ruff / tsc / eslint clean. Frontend only.

The Re-issue button on the channel detail page only appeared for
web_push, so mobile_push channels in pending_registration (notably ones
restored by re-import, where the original activation hash/expiry
deliberately doesn't ride along) had no way to get a fresh magic link.
The backend reissue endpoint already accepts any push type; the
frontend gate just needed to match. Same fix covers the consumed-but-
unfinished case where the channel stays pending after a redeem half-
completes.
@SiteRelEnby SiteRelEnby merged commit cb5d476 into main May 26, 2026
4 checks passed
@SiteRelEnby SiteRelEnby deleted the reissue-mobile-push branch May 26, 2026 03:35
@SiteRelEnby SiteRelEnby mentioned this pull request May 26, 2026
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