feat: Add unlisted transcript review page for participants#29
Open
feat: Add unlisted transcript review page for participants#29
Conversation
Adds the ability for session hosts to share a secure, unauthenticated link with participants so they can view their own session transcript. ## What's included: - New `transcript_share_tokens` table (migration 032) - Server action to generate share tokens using NanoID - Public transcript page at `/transcript/[token]?access=public` - Share button in participant conversation modal - Email template for sending transcript links (optional) ## Privacy: - Each token is scoped to a single participant's `user_session_id` - Participants can only see their own messages, not other participants' - Links don't expire (valid until session/participant is deleted) - Page has noindex/nofollow meta tags ## Before merging:⚠️ Migration needs to be run manually. The automated migration is blocked by a pre-existing issue (missing migration `002_06122024_add_questions_to_prod`). Run this SQL directly in the database: ```sql CREATE TABLE transcript_share_tokens ( id UUID PRIMARY KEY DEFAULT gen_random_uuid(), token VARCHAR(21) NOT NULL UNIQUE, user_session_id UUID NOT NULL REFERENCES user_sessions(id) ON DELETE CASCADE ); CREATE INDEX idx_transcript_share_tokens_token ON transcript_share_tokens(token); ``` 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Summary
Adds the ability for session hosts to share a secure, unauthenticated link with participants so they can view their own session transcript without creating an account.
Can extend into auto-emailing all participants a link to read their transcript. Depends on how Harmonica sends emails.
How it works from this PR:
Changes
Before Merging
Run this SQL directly in the database:
Testing
After migration is applied: