-
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
Feature/35716 changing owner flow #37869
Feature/35716 changing owner flow #37869
Conversation
2660d0c
to
2124c90
Compare
e14442c
to
2d361a8
Compare
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.
Looking better. I left a couple of comments. In addition, we have the following issues:
- Unknown error page is not shown. I couldn't get to the unknown error page even when I got a
405 Resource in incorrect state
error
error.mov
- Stale error shows momentarily when navigating and before loading spinner
staleDataShows.mov
It seems like the TS error might be related to cache. I see that we disable the default export error here.
|
@luacmartins I've just addressed your last comments including a refactor to handle payment card form inside the common change owner check page. Regarding bugs, you've raised:
This was because I had to work with mocked API, and my assumption was that I'll get an
I think I've managed to fix this for the case when we open the modal for the first time (like you've shown in the screen capture video). But there is still a glitch when we switch between errors in the opened modal - in some cases after the loader disappears, we see the previous texts for milliseconds. I didn't find out yet how to fix it, and will continue working on this, but maybe we could try to address it in a follow up issue in the worst case scenario? |
@shawnborton regarding your comments:
It is vertically centered: The feeling that there is something wrong with the alignment comes from the fact that there is a lot of empty space in the animation/image. I've used existing component for this that we use, e.g., in the enable payment process or in the wallet's transfer balance page.
Do you mean the gap between the "Transfer owner" and "Outstanding balance" or between "Outstanding balance" and "The account owning the workspace..." text? |
Sounds good, thanks for confirming.
This, the headline and the text immediately below it. |
@shawnborton Thanks for the answer. I've just changed the gap to 8px, as requested - it will look like below: |
Looks good, thanks! |
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.
Code LGTM. I'm still seeing a few small things that we need to address, but those can be done in a follow up:
-
Disable
Transfer owner
button if user is offline since we can only go through this flow while online. -
Wrong error flashes momentarily
error_flash.mov
- We're showing an error screen on success after adding a debit card
error_page_on_success.mov
- We're showing three decimals for USD currency
I'll do the checklist on this one since it's hard for C+ to test it because we need the API in certain states to trigger errors. |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb Chromechrome.moviOS: Nativeios.moviOS: mWeb Safarisafari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
failedToClearBalanceTitle: 'Failed to clear balance', | ||
failedToClearBalanceButtonText: 'OK', | ||
failedToClearBalanceText: 'We were unable to clear the balance. Please try again later.', |
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.
How come this is in english? This is against the checklists @burczu @luacmartins
Please send a PR to fix this @burczu
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.
Damn, I thought we had updated all of them, but clearly we missed some. I'll put up a PR to fix it. Thanks for raising this.
onClose={() => onClose?.()} | ||
onModalHide={onClose} | ||
hideModalContentWhileAnimating | ||
useNativeDriver |
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 forgot to add onBackdropPress
here which is causing inconsistency in the flow. More details #47559
Details
This PR introduces ability to change ownership of the paid workspace as part of the Simplified collect project.
Fixed Issues
$ #35716
PROPOSAL: n/a
Tests
Offline tests
Changing ownership is not available in offline mode - check if the "Transfer owner" button is disabled
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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.2024-03-25.at.13.01.29.mov
Android: mWeb Chrome
Screen.Recording.2024-03-25.at.12.53.37.mov
iOS: Native
Screen.Recording.2024-03-25.at.12.45.51.mov
iOS: mWeb Safari
Screen.Recording.2024-03-25.at.12.48.50.mov
MacOS: Chrome / Safari
Screen.Recording.2024-03-25.at.12.18.04.mov
MacOS: Desktop
Screen.Recording.2024-03-25.at.12.21.19.mov