-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Add a Settings page to configure people in workspace #3681
Conversation
I will be making progress on this one over the weekend so I can ask clarifying questions on Monday. |
@marcaaron Sorry for polluting the PR with merged commits from Rajat's branch. Should I squash the commits to one or can I leave it like that? @MitchExpensify Progress update: I have shamelessly used great work from Rajat and Joe. I have added the People page, so far with title, tagline and the two buttons where only Invite button does what it should so far. I will need to update the I have set up state property Tomorrow I will work on the table and |
@marcaaron I guess with the commit history, we can just leave it like this and once Rajat's PR will be approved and merged into main, this diff will disappear. |
2a05467
to
00a1071
Compare
Squashing commits is fine as long as reviews have not yet started.
I would maybe suggest we take out the unmerged changes from Rajat's PR and set up this view as as standalone page for now. We can always tie everything together later and it would make the changes here easier to review (or we can wait until Rajat's changes are merged, but that seems less ideal). |
@marcaaron Can you please give me a hint what is the best way for writing something like For now, I have included mockData for easier troubleshooting of the design and in case you do not have the correct Next, I will work on adding the the Remove onyx functionality. The checkboxes on page should already work. i will also look into taking the Rajat changes out. @shawnborton I thought you might be the best one to ask regarding design, for the Admin badge, there is the little tick. Is that already somewhere in code or is it something new I should add. In that case, would you have an example of something similar? Thank you! @marcaaron I wanted to ask for a clarification to this last bullet point of the doc:
I cannot see anything helpful to find out if the user is admin in Thank you guys for any feedback on the code so far! |
We probably can just use the regular
We can access the current user's login via |
@mountiny the asset already exists as an .svg, it's probably named There is some other design feedback I have too about the overall style of the modal, but I know we have another contributor working on some of these styles for the Expensify Card stuff. @marcaaron what do you recommend we do here? Wait and do a follow up? |
Sounds fine as long as the focus is on what's inside the modal @shawnborton? The rest we can cover with Rajat since we should be removing the code from here so we can tackle the relevant changes in each. So just this area and not the overall style of the modal. |
Cool, that works for me! |
@shawnborton Feel free to leave the design feedback here, I will tackle this first thing in a morning tomorrow and hopefully get close to finish! |
Things look good to me. But actually @michelle-thompson can you remind me, what do we need the checkmark for in the little |
I think we actually decided against that since this table will only show who's already been added to the workspace. |
Oh nice, that was easy. Mind adding an up-to-date mock here when you get a chance? |
Check out the linked issue though: https://github.com/Expensify/Expensify/issues/166468 You will see the checkmark there |
Boom! It's working very nicely now. I am testing it with the banner here (right now it won't work on localhost on the master branch, but I'm updating it in this PR:https://github.com/Expensify/Web-Expensify/pull/31302 and will test it when that one goes live) |
@@ -22,7 +22,7 @@ const optionPropTypes = PropTypes.shape({ | |||
participantsList: PropTypes.arrayOf(participantPropTypes), | |||
|
|||
// The array URLs of the person's avatar | |||
icon: PropTypes.arrayOf(PropTypes.string), | |||
icons: PropTypes.arrayOf(PropTypes.string), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍🏾
Another small design comment: maybe my eyes are playing tricks on me, but can someone confirm that the border width of the lines above & below the user rows are 1px? Same with the border divider between the left pane and right pane - is that 1px wide? Optically it feels like it might be 2 so just want to double check. |
@shawnborton The divider between left and main part is actually 2px wide and the row dividers are also 2px wide. Should it all be only 1px? |
Yup - they should all be 1px, thanks! |
Gonna update it! |
Gonna merge this since it's blocking some other things + the only remaining blocker was the border which is fixed. Thanks for the reviews @TomatoToaster !! |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Unfortunately the deploy comments are not working right now. This was deployed to staging yesterday. |
Android - App is crashing after entered an email of an account to add to the workspaceExpected Result:Able to add the number of accounts to the workspace Actual Result:App is crashing after entered an email of account Actions Performed:
Platform:iOS Build:1.0.76-0 Notes/Images/Video:Bug5144843_Screen_Recording_20210708-220332_Expensifycash.mp4 |
Looks like this is caused by this line because |
This PR caused a bug #17166. The |
Details
This PR adds a workspace configuration page where admins can remove people from their workspaces or use modal to invite new members.
cc @marcaaron @MitchExpensify @Jag96 @madmax330
Fixed Issues
Fixes https://github.com/Expensify/Expensify/issues/166468
Tests
Invite
button which will bring in a modal from a side. Enter an email of an account you want to add to the workspace.Remove
button should turn bright red. Click on theRemove
button.Remove
again to confirm the removal.QA Steps
Tested On
Screenshots
Web
Mobile Web
Desktop
iOS
Android