Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobile: Add a copy button in code block view #26912

Open
mattermod opened this issue Apr 29, 2024 · 1 comment
Open

Mobile: Add a copy button in code block view #26912

mattermod opened this issue Apr 29, 2024 · 1 comment
Assignees
Labels
Difficulty/1:Easy Easy ticket Help Wanted Community help wanted Tech/React Native Mobile app

Comments

@mattermod
Copy link
Contributor

mattermod commented Apr 29, 2024

Add a copy button on the full screen that shows the code of the mobile app.

Here’s a Figma file showing the same.


Original issue reported:

https://github.com/mattermost/mattermost-mobile/issues/7659

Summary

Cannot copy text from a rendered code block.

Environment Information

  • Mattermost App Version: 2.9.0 (Build 48903) and later versions
  • Mattermost Server Version: 9.0.0 and later versions

Steps to reproduce

  1. Send a formatted message like this.
    ```nim
    echo "Hello World"
    
  2. Open the message & this code block.
  3. You cannot copy its text.

Expected behavior

I can copy the code from the code screen with a copy button on the top right.

Observed behavior

Cannot copy the code from the code full screen. It can be copied by long pressing on the code block in the message.


If you're interested please comment here and come join our "Contributors" community channel on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please join our "Developers" community channel.

New contributors please see our Developer's Guide.

JIRA: https://mattermost.atlassian.net/browse/MM-56802

@mattermod mattermod added Help Wanted Community help wanted Up For Grabs labels Apr 29, 2024
@marianunez marianunez changed the title Mobile: Cannot copy text from a code block Mobile: Add a copy button in code block view Apr 29, 2024
@apshada
Copy link
Contributor

apshada commented May 7, 2024

@amyblais Can i Work on this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Difficulty/1:Easy Easy ticket Help Wanted Community help wanted Tech/React Native Mobile app
Projects
None yet
Development

No branches or pull requests

4 participants