feat(web): share forms via link, QR code & embed snippet#55
Merged
Conversation
Per-form distribution in the Manage Forms tab (concept §4/§9). For each live form, a Share panel offers: - the public link (/f/<slug>) with a copy button, - a QR code rendered server-side (no client dependency; served as a data: img), - an iframe embed snippet with a copy button. - adds qrcode (+ @types/qrcode); QR is generated in the server component, so nothing ships to the browser and CSP img-src data: already allows it. - share-button.tsx (client) toggles the panel and handles clipboard copy. - only live forms show the Share panel. - i18n: share section (DE/EN).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 1 finish — Task 5/5: Form distribution
Per-form distribution in the Manage Forms tab (concept §4 / §9). Each live form gets a Share panel:
the public link (
/f/<slug>) with a copy button,a QR code rendered server-side (no client dependency; served as a
data:image —img-src data:already allowed by the CSP),an iframe embed snippet with a copy button.
adds
qrcode(+@types/qrcode); the QR is generated in the server component.share-button.tsx(client) toggles the panel and handles clipboard copy.only live forms show the panel.
i18n:
sharesection (DE/EN).Verification
pnpm typecheck✅ ·pnpm lint✅ ·pnpm test✅ ·pnpm build✅This is the last of the 5 Phase-1-completion tasks (bot config, review embed, accept/reject + role grant, applicant self-service, distribution).