-
-
Notifications
You must be signed in to change notification settings - Fork 668
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
Allow copying a username #5166
Comments
@gnprice Can I work on this feature!? |
@hetanthakkar1 please pick an issue with a "help wanted" label; this one doesn't have a clear product plan. |
After a bit of discussion, a good way to solve this issue would be allowing the user to select (and therefore copy) the name in the user profile screen. Currently, it's not possible to select it. |
@hetanthakkar1 if you're interested in working on this, please feel free to post your proposed approach here. |
Hello @alya. |
Sure go ahed |
Thanks, @hetanthakkar1 😄 @alya, here is my approach to solving the issue. ApproachHow the Username is being shown.We have an Currently, We are passing I have thought of the below ways to solve this issue.
Please let me know if you feel any of the above approaches will be good and then I'll proceed with them. Thank you 😄 |
While working on this issue I found the below. Basically, when I click on someone's else username then I should see their account details but If I click on my username then I should see my profile details. But currently, in both cases, I'm been directed to the account details screen, which is also allowing me to send a private messages to myself. Please let me know if this is been done for a reason or it's an issue. |
Thanks for asking! I think for consistency, we should keep the interaction as-is. It's possible for users to want to see their own profile, or send themselves a message. |
@VishalSharma2000, your proposal 2, passing <ZulipText style={[styles.largerText, styles.halfMarginRight]} text={user.full_name} /> in
|
Okay, @alya. Thank you for clearing my doubt. |
@chrisbobbe I have added the
Some points to take care of:
Thank you 😄 |
Great! I'd be interested in a PR with that change.
I'll check out your PR and play with it myself, but I think this isn't likely to make the experience seem worse than it already is (i.e., currently you can't select the text at all). It also seems like the kind of thing that I expect to be hard to debug. So for now, I think we don't need to worry much about it. 🙂 |
Initially it was not possible to copy the `username` of the user therefore the user needs to remember the `username` but it can be troublesome when the `username` contains non-ASCII characters. So, made the `username` text in `AccountDetails` Screen selectable so that users can select the `username` text and can copy the `username` to their clipboard Fixes: zulip#5166
@chrisbobbe I have created the PR, please have a look. Since this is my first PR, it took me some time to read the documentation regarding commit message, creating pull request Please let me know if you feel any changes are required. |
Initially it was not possible to copy the `full_name` of the user therefore the user needs to remember the `full_name` but it can be troublesome when the `full_name` contains non-ASCII characters. So, made the `full_name` text in `AccountDetails` Screen selectable so that users can select the `full_name` text and can copy the `full_name` to their clipboard Fixes: zulip#5166
While it's possible to copy a particular message to the clipboard, it's not possible to copy a particular user's username. This would be very helpful when a username contains non-ASCII characters.
The text was updated successfully, but these errors were encountered: