Skip to content

Adds a sign-in prompt to add-on dispatch form#1254

Merged
allanlasser merged 3 commits intomainfrom
allanlasser/issue1250
Jan 12, 2026
Merged

Adds a sign-in prompt to add-on dispatch form#1254
allanlasser merged 3 commits intomainfrom
allanlasser/issue1250

Conversation

@allanlasser
Copy link
Copy Markdown
Member

Fixes #1250

During interviews, I've observed users confused why they can't dispatch an action while signed-out. This replaces the disabled "Dispatch" button with a prompt to sign-in.

The sign-in link in the prompt contains a next param that redirects back to the add-on page and serializes any form values so they'll be picked back up when returning.

This adds a "Forms / Add-On Dispatch / Signed Out" story testing the signed out state.

Fixes #1250

Encodes form values in the `?next` param so that returning to the form after signing in persists any entered values.
@netlify
Copy link
Copy Markdown

netlify Bot commented Jan 8, 2026

Deploy Preview for documentcloud-frontend-next ready!

Name Link
🔨 Latest commit 18b8ff7
🔍 Latest deploy log https://app.netlify.com/projects/documentcloud-frontend-next/deploys/695ff7868cde210007572d94
😎 Deploy Preview https://deploy-preview-1254.muckcloud.com
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 47 (🔴 down 15 from production)
Accessibility: 0 (no change from production)
Best Practices: 92 (no change from production)
SEO: 83 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 8, 2026

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 53.02% 7225 / 13625
🔵 Statements 53.02% 7225 / 13625
🔵 Functions 48.71% 228 / 468
🔵 Branches 76.42% 1170 / 1531
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/lib/components/forms/AddOnDispatch.svelte 0% 0% 0% 0% 1-259
Generated in workflow #968 for commit 18b8ff7 by the Vitest Coverage Report Action

@allanlasser allanlasser requested a review from eyeseast January 8, 2026 14:54
@allanlasser allanlasser merged commit e6bb42c into main Jan 12, 2026
10 checks passed
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.

Provide sign-in instructions in add-on dispatch area

2 participants