HomePhabricator
Diffusion Comm 30e971082d98

[native] introduce copy username functionality to user profiles

Description

[native] introduce copy username functionality to user profiles

Summary:
With profiles, we want to give the user the ability to easily copy another user's username into their clipboard. This diff introduces this functionality.

In the figma doc, @ted described how this functionality should behave:

The “Copy username” toggle will turn into “Username copied!” to confirm that the username has been copied successfully. The toggle will revert back to the default state after 3 seconds.

Here are the screenshots of the designs:

Screenshot 2023-08-22 at 12.32.39 PM.png (2×3 px, 1 MB)

Depends on D8914

Test Plan:
Please see demo video below

Reviewers: atul, inka

Reviewed By: atul

Subscribers: ted, ashoat, tomek

Differential Revision: https://phab.comm.dev/D8915

Details

Provenance
ginsuAuthored on Aug 21 2023, 10:11 AM
Reviewer
atul
Differential Revision
D8915: [native] introduce copy username functionality to user profiles
Parents
rCOMM1fe7cfc2a30b: [native] introduce user profile component
Branches
Unknown
Tags
Unknown