Popover for remove copilot and change access level#47984
Conversation
|
hmmm, tried Modal.close but it didn't work trying other ideas |
|
How's the investigation going? |
|
@allgandalf @dangrous all resolved and screenshots updated. |
|
looking now! @allgandalf can you check off the checklist (iOS native test) if that's all good? The bot is sad. |
|
Okay so in my testing, updating a role works great but removing a delegate doesn't work at all. It looks like |
Didn't check off on purpose! |
Yeah i didn't check off the checklist for the same reason, wanted your 👀 as well! @rushatgabhane can you please look into this |
|
interestingg |
|
ahh when i merged There is a race condition between |
|
Fixed @allgandalf @dangrous Screen.Recording.2024-10-10.at.08.04.08.mov |
|
I will test the flow again later today and approve |
|
Awesome! Thanks for sussing that out |
allgandalf
left a comment
There was a problem hiding this comment.
Tested on iOS native, works great
dangrous
left a comment
There was a problem hiding this comment.
Okay let's do it! I found a very edge case bug where the popover shows up in a weird place if you have changed your screen size on web since loading the page / opening it last, but we have a number of edge case bugs that exist about changing screen size so I don't think it's a blocker, not really a thing we specifically support.
Thank you both for all your hard work on this!
I'm going to merge, and let's just keep an eye out for any additional bugs
|
✋ 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 by https://github.com/dangrous in version: 9.0.49-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.0.49-2 🚀
|
| } | ||
|
|
||
| requestValidationCode(); | ||
| setCurrentRole(option.value); |
There was a problem hiding this comment.
When the option is selected user is required to authenticate using magic code, which means this option is not selected yet. Thus when user just goes back without authenticating this option will be selected even though user did not complete required steps. https://github.com/Expensify/App/pull/53677/files
| pendingAction: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE, | ||
| pendingFields: {role: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE}, |
There was a problem hiding this comment.
We should have cleared pending fields on failureData as the above code caused #72381
Details
Fixed Issues
$ #46921
$ #46925
PROPOSAL:
Tests
Pre-req: be on copilot beta.
Add copilot
Change access level
Remove copilot
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Screen.Recording.2024-10-09.at.12.38.57.mov
Android: mWeb Chrome
iOS: Native
Screen.Recording.2024-10-09.at.12.19.24.mov
iOS: mWeb Safari
Screen.Recording.2024-10-09.at.12.34.53.mov
MacOS: Chrome / Safari
Screen.Recording.2024-09-29.at.12.56.22.mov
MacOS: Desktop
Screen.Recording.2024-10-09.at.11.51.56.mov