Skip to content

feat(surveys): add copyable participant link (Issue 1458) - #1469

Merged
leahpeker merged 2 commits into
mainfrom
feat-survey-copy-link
Sep 14, 2026
Merged

leahpeker merged 2 commits into
mainfrom
feat-survey-copy-link

Conversation

@leahpeker

Copy link
Copy Markdown
Collaborator

Summary

  • Add a SurveyCopyLinkButton that copies the absolute participant URL (${window.location.origin}/surveys/${slug}) via navigator.clipboard.writeText
  • Wire it into SurveyBuilderScreen's header and each row of SurveyAdminListScreen
  • Toast link copied on success, couldn't copy — try again on failure

Closes #1458

Test plan

  • make agent-frontend-lint
  • make agent-frontend-typecheck
  • make agent-frontend-test (1285 passed)
  • vitest coverage for both success and clipboard-failure paths, plus a row-level integration test in SurveyAdminListScreen.test.tsx

Note: make agent-ci's backend suite fails on this sandbox (test_sse.py::TestSseStreamAuth::*, test_rsvp_capacity_race.py) due to documented SQLite limitations (no pg_notify, no real row-locking under concurrent threads) — unrelated to this frontend-only change.

Closes a gap noted in code review — the existing catch block already
handles navigator.clipboard being absent (insecure context / older
browsers), but no test exercised that path.
@leahpeker
leahpeker merged commit a26e846 into main Sep 14, 2026
3 checks passed
@leahpeker
leahpeker deleted the feat-survey-copy-link branch September 14, 2026 16:17
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.

Add copyable participant link for surveys

1 participant