feat: chat sharing UI and playbook viewer (/playbook/:uuid)#116
Open
nv78 wants to merge 1 commit intoclaude/add-multimodal-support-QBQcafrom
Open
feat: chat sharing UI and playbook viewer (/playbook/:uuid)#116nv78 wants to merge 1 commit intoclaude/add-multimodal-support-QBQcafrom
nv78 wants to merge 1 commit intoclaude/add-multimodal-support-QBQcafrom
Conversation
Frontend: - Chatbot.js: share button (visible for authenticated users with messages) calls GET /generate-playbook/:chat_id → shows modal with copy-to-clipboard URL - PlaybookView.js: new /playbook/:uuid route renders a read-only snapshot of a shared chat with an "Import to my chats" button that calls POST /playbook/:uuid and navigates to the new chat - routes.js + RouteConstants.js: register /playbook/:uuid route (public, no auth required) Backend: - /retrieve-shared-messages-from-chat now accepts playbook_url in addition to chat_id, using retrieve_messages_from_share_uuid() from db.py - Import retrieve_messages_from_share_uuid in app.py https://claude.ai/code/session_01C9mHttiQ4ZAaBbQecVV7uu
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
GET /generate-playbook/:chatIdand displays a modal with a copy-to-clipboard shareable URL/playbook/:uuid): public read-only page that renders a shared chat snapshot; includes an "Import to my chats" button that callsPOST /playbook/:uuidand navigates the user to their new copy/retrieve-shared-messages-from-chatto acceptplaybook_url(UUID), using the existingretrieve_messages_from_share_uuid()DB function that was already implemented but had no HTTP endpointWhat already existed (backend, untouched)
GET /generate-playbook/<chat_id>→ creates a share record, returns/playbook/{uuid}POST /playbook/<uuid>→ imports the shared chat into the requesting user's accountcreate_chat_shareable_url(),access_shareable_chat(),retrieve_messages_from_share_uuid()indatabase/db.pyTest plan
/playbook/some-uuid)/chat/<new_chat_id>with all messages loadedhttps://claude.ai/code/session_01C9mHttiQ4ZAaBbQecVV7uu