Allow editing of Workspace names#4298
Conversation
|
@HorusGoul @MitchExpensify I don't think we want to add another pencil icon. Let's keep the one pencil icon, and then when a user selects that we open this right pane, which allows a user to edit their workspace avatar OR their workspace name. |
|
Was just testing it and I agree with @kevinksullivan, that will be cleared, two same icons right next to each other seem weird. |
|
@shawnborton I am also curious for your thoughts on this one. I think we've discussed the idea of a business overview page for the purpose of editing name, avatar, business address, etc... But in the meantime, I think it is ok to stick with a single pencil icon that opens the right pane for editing avatar and/or name. |
|
Awesome, I'll move the avatar editor inside the modal and leave only 1 pencil icon.
Sure! |
|
Completely agree after seeing the mock! So much better |
mountiny
left a comment
There was a problem hiding this comment.
Haven't spotted any blockers in the code! Tested and works well 🎉 Great job!
I just found this little issue regarding the pencil button on iOS. I think it's related to the border being drawn inside the circle instead of outside: Maybe that's why we had the other width/height values before. I'm gonna send another commit with a fix. |
|
Great catch! I am just wondering whether the Avatar change flow is not getting too hidden with this change. But that is not an issue now I guess, we will find out based on user feedback if they struggle to change the avatar. |
|
It should be ready for review again, and all videos have been updated in case you want to take a look! |
mountiny
left a comment
There was a problem hiding this comment.
Thanks for catching that small problem. LGTM
|
Looks good, thanks! |
| onChangeText={name => this.setState({name})} | ||
| onSubmitEditting={this.submit} | ||
| /> | ||
| <Text style={[styles.mt2]}>{this.props.translate('workspace.editor.nameInputHelpText')}</Text> |
There was a problem hiding this comment.
Can we also use fontSizeLabel and colorMuted here? This way it appears like hint text under the input.
There was a problem hiding this comment.
I see there's a formHint style that has those! I just sent the commit with the changes 😄
|
Actually after looking at this a second time, I wonder if it feels weird that you see the avatar image with a pencil icon twice. Maybe for consistency's sake, we should remove the pencil icon from the first screen and just make it so that tapping the avatar or the workspace name will launch the rightDocked modal. From here, I would expect the avatar to have the pencil icon on it. This way we stay more consistent with say editing your profile, where you have to first click on your avatar image (with no pencil icon). |
|
Yeah I agree with Shawn. Showing the pencil icon twice feels like overkill here, and I like keeping user avatar and workspace avatar designs consistent. |
Tapping the avatar or the workspace name to access the editor could look weird, as there would be no visual hints for the user. If we want to make this consistent with the user profile editor, we need to add a new menu option like this one: What do you think? |
|
That is a good point, at the same time, I would say it is not very uncommon from other applications and UIs that you click on the avatar/name to change it (Facebook for example). What I would suggest is instead of adding another This will ensure a consistency between these two without over-engineering the Workspace page. What do you think? 👀 |
|
I just submitted the changes to make it that way for both the User profile and the Workspace profile. I've also updated the videos 😄 |
mountiny
left a comment
There was a problem hiding this comment.
Great, tested! Love this flow.
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging in version: 1.0.82-8🚀
|
|
🚀 Deployed to production by @francoisl in version: 1.0.83-1 🚀
|




Details
Adds an edit button at the right side of the workspace name that opens a modal where you can change the workspace name.
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/171962
Tests/QA Steps
Tested On
Screenshots
Web
Screen.Recording.2021-08-02.at.09.50.02.mov
Mobile Web
Screen.Recording.2021-08-02.at.09.54.38.mov
Desktop
Screen.Recording.2021-08-02.at.09.50.02.mov
iOS
Screen.Recording.2021-08-02.at.09.43.59.mov
Android
Screen.Recording.2021-08-02.at.09.48.46.mov