-
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
Feat: Invoice collection account selector page #41511
Feat: Invoice collection account selector page #41511
Conversation
Hold can be lifted. PR merged |
please merge latest main |
Sure things. I'm finishing |
Will be ready for another review @rushatgabhane |
Are there two C+ reviewers required here? If not, please remove me as a reviewer here. |
Ah , thanks @rojiphil. @rushatgabhane will handle it |
If we can prioritize this PR, that would be awesome because it has the share component that will be using across Advance page. |
src/pages/workspace/accounting/xero/advanced/XeroAdvancedPage.tsx
Outdated
Show resolved
Hide resolved
I addressed the comments and added videos @mananjadhav |
Thanks the code changes look fine, will work on the checklist. |
@hungvu193 I see two problems when testing.
|
…on-acount-selector-page
I can't reproduce the |
I'm trying to update |
But are you like adding a boolean prop, which will show the NotFound if it's true? along with feature names and variants? We'll need it to be generic as the conditions would be different for some of the pages. |
Yeah, I want to add a new boolean props, ie: const shouldShowNotFoundPage = isEmptyObject(policy) || (Object.keys(policy).length === 1 && !isEmptyObject(policy.errors)) || !policy?.id || !isPageAccessible || !isFeatureEnabled; to const shouldShowNotFoundPage = isEmptyObject(policy) || (Object.keys(policy).length === 1 && !isEmptyObject(policy.errors)) || !policy?.id || !isPageAccessible || !isFeatureEnabled || shouldBeBlocked; |
I think |
OK, let me update it then |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-invoice-account-selector.movAndroid: mWeb Chromemweb-chrome-invoice-account-selector.moviOS: Nativeios-invoice-account-selector.moviOS: mWeb Safarimweb-safari-invoice-account-selector.movMacOS: Chrome / Safariweb-invoice-account-selector.movweb-invoice-account-selector-blocked.movMacOS: Desktopdesktop-invoice-account-selector.mov |
It should be working now. Screen.Recording.2024-05-05.at.16.39.40.mov |
Tested the block access change. Added the screencast for Web. |
We did not find an internal engineer to review this PR, trying to assign a random engineer to #39752 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
@Expensify/design could you please give it a look before merging? |
Unassigning other reviewers as reviews have already been done by 2 C+ contributors. |
Design-wise I think this is looking good. |
✋ 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 production by https://github.com/marcaaron in version: 1.4.71-6 🚀
|
Details
Fixed Issues
$ #39752
PROPOSAL: N/A
Tests
Precondition: User connected to Xero and had bank accounts.
Xero Invoice Collections Account
in Advance page.Offline tests
Same as Tests.
QA Steps
Same as Tests.
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-05-03.at.23.08.37.mov
Android: mWeb Chrome
iOS: Native
Screen.Recording.2024-05-03.at.23.32.50.mov
iOS: mWeb Safari
Screen.Recording.2024-05-03.at.23.21.13.mov
MacOS: Chrome / Safari
Screen.Recording.2024-05-03.at.15.03.18.mov
MacOS: Desktop
Screen.Recording.2024-05-03.at.23.11.51.mov