-
Notifications
You must be signed in to change notification settings - Fork 155
Description
Current Behavior
The chat interface provides a message action menu with options to copy, share, and report messages. However, the "Copy" action copies the entire message content to the clipboard without allowing users to select specific portions of text. Users cannot highlight or select individual words, sentences, or paragraphs within a chat message.
Reproduction Steps:
- Navigate to the chat page in the app
- Long-press or tap on any AI-generated message to open the action menu
- Observe the available options: Copy, Share, Report
- Tap "Copy" and observe that the entire message is copied to clipboard
- Expected: There should be a way to select only specific portions of text from the message
- Actual: No option exists to select partial text from messages
Expected Behavior
Users should be able to access a text selection mode for chat messages that allows them to highlight and copy specific portions of text. This should be accessible through the existing message action menu alongside the current "Copy" option.
Acceptance Criteria:
- A "Select Text" option is added to the message action menu
- Tapping "Select Text" navigates to a new screen displaying the message content with text selection enabled
- Users can select any portion of the message text using standard text selection gestures
- The new screen has appropriate navigation (back button) and styling consistent with the app theme
Steps To Test
- Run the app and navigate to the chat page
- Long-press on any chat message to open the action menu
- Verify that a "Select Text" option appears in the menu
- Tap "Select Text" and verify that a new screen opens displaying the message
- Attempt to select portions of the text by long-pressing and dragging
- Verify that text selection works and you can copy selected portions
- Use the back button to return to the chat page
- Verify that the app theme and styling are consistent on the new screen
Submission
Download https://cap.so/ to record your screen (use Studio mode). Export as an mp4, and drag and drop into an issue comment below.
Guide to submitting pull requests: https://hackmd.io/@timothy1ee/Hky8kV3hlx