-
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
[QBD] Offline mode for RequireQuickBooksDesktopModal #50915
[QBD] Offline mode for RequireQuickBooksDesktopModal #50915
Conversation
@hoangzinh 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] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeN/A Android: mWeb ChromeN/A iOS: NativeN/A iOS: mWeb SafariN/A MacOS: Chrome / SafariScreen.Recording.2024-10-18.at.22.40.34.web.movMacOS: DesktopScreen.Recording.2024-10-18.at.22.43.02.desktop.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.
Overal looks good, just 1 minor feedback. Can you also check test steps? It looks incorrect.
setIsLoading(false); | ||
}); | ||
}; | ||
const ContentWrapper = codatSetupLink ? ({children}: React.PropsWithChildren) => children : FullPageOfflineBlockingView; |
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.
const ContentWrapper = codatSetupLink ? ({children}: React.PropsWithChildren) => children : FullPageOfflineBlockingView; | |
const ContentWrapper = codatSetupLink ? View : FullPageOfflineBlockingView; |
I think it's simpler
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.
In this case we will have to pass flex: 1 for this View
So the current implementation is the simplest
Additional, the title may be incorrect, it should be "Offline mode for QBD setup page" |
Bug 1: The screen flickers when I turn off and then turn on the network. Screen.Recording.2024-10-18.at.09.42.50.mov |
Actually it's strange But using force offline (CMD+D) I don't have this visual bug |
I still can't reproduce |
src/pages/workspace/accounting/qbd/QuickBooksDesktopSetupPage.tsx
Outdated
Show resolved
Hide resolved
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
✋ 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/lakchote in version: 9.0.52-0 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.52-5 🚀
|
Details
Add Offline mode for RequireQuickBooksDesktopModal
Fixed Issues
$ #50548
PROPOSAL:
Tests
Prerequisites:
Offline tests
Prerequisites:
QA Steps
Prerequisites:
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
not relevant
Android: mWeb Chrome
not relevant
iOS: Native
not relevant
iOS: mWeb Safari
not relevant
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov