Skip to content

Issue #14 - [FEATURE] Add text selection capability for chat messages #23

@rogelio-cmj

Description

@rogelio-cmj

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:

  1. Navigate to the chat page in the app
  2. Long-press or tap on any AI-generated message to open the action menu
  3. Observe the available options: Copy, Share, Report
  4. Tap "Copy" and observe that the entire message is copied to clipboard
  5. Expected: There should be a way to select only specific portions of text from the message
  6. 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

  1. Run the app and navigate to the chat page
  2. Long-press on any chat message to open the action menu
  3. Verify that a "Select Text" option appears in the menu
  4. Tap "Select Text" and verify that a new screen opens displaying the message
  5. Attempt to select portions of the text by long-pressing and dragging
  6. Verify that text selection works and you can copy selected portions
  7. Use the back button to return to the chat page
  8. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions