-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Update delegate flow to use modal #56231
Update delegate flow to use modal #56231
Conversation
@jayeshmangwani Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
const currentDelegate = account?.delegatedAccess?.delegates?.find((d) => d.email === login); | ||
const updateDelegateErrors = account?.delegatedAccess?.errorFields?.addDelegate?.[login]; | ||
const updateDelegateErrors = account?.delegatedAccess?.errorFields?.updateDelegateRole?.[login]; |
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.
We should update it to use the correct error field so that the error message is displayed properly when an incorrect code is entered. This isn't directly related to this task, but I noticed it while testing this PR.
@cretadn22 There's a bug when pasting the magic code. The API call happens in the background, but the input page doesn't reflect this. Additionally, the RHP doesn’t show a successful update for the access level change. Please check the video below—I pasted the code, but the UI doesn’t show anything even though the API call was made. paste-bug.mov |
@jayeshmangwani The RHP should close after the API request is successful. I fixed that bug and made some improvements to remove the redundant route |
Thanks for fixing it, I'll check again in an hour |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid.movAndroid: mWeb Chromemweb-chrome.moviOS: NativeiOS.moviOS: mWeb Safarimweb-safari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
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.
LGTM 🚀
Yes, we’re seeing this console error on main as well. We could fix it in this PR, though I’m not sure if the same bug has been reported anywhere. |
I think it is out of scope, I just wanted to confirm that we were not introducing a new error. |
✋ 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/aldo-expensify in version: 9.0.97-0 🚀
|
Explanation of Change
Fixed Issues
$ #55718
PROPOSAL: #55718 (comment)
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Screen.Recording.2025-02-06.at.19.49.03.mov
Android: mWeb Chrome
Screen.Recording.2025-02-06.at.19.43.43.mov
iOS: Native
Screen.Recording.2025-02-06.at.19.47.22.mov
iOS: mWeb Safari
Screen.Recording.2025-02-06.at.19.38.43.mov
MacOS: Chrome / Safari
Screen.Recording.2025-02-06.at.19.32.21.mp4
MacOS: Desktop
Screen.Recording.2025-02-06.at.19.45.07.mov