-
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: policy distance rates settings #38060
feat: policy distance rates settings #38060
Conversation
Once #38035 gets merged the diff will be correct |
…p into feat/policy-distance-rates-settings
…p into feat/policy-distance-rates-settings
…p into feat/policy-distance-rates-settings
…p into feat/policy-distance-rates-settings
…icy-distance-rates-settings
@ishpaul777 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] |
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.
A few small comments
src/pages/workspace/distanceRates/CategorySelector/CategorySelectorModal.tsx
Outdated
Show resolved
Hide resolved
Reviewer Checklist
Screenshots/VideosAndroid: NativeRecord_2024-03-20-01-19-00.mp4Android: mWeb ChromeRecord_2024-03-20-01-27-54.mp4iOS: NativeScreen.Recording.2024-03-20.at.1.07.05.AM.moviOS: mWeb SafariScreen.Recording.2024-03-20.at.1.03.56.AM.movMacOS: Chrome / SafariScreen.Recording.2024-03-20.at.12.48.42.AM.movMacOS: DesktopScreen.Recording.2024-03-20.at.1.33.14.AM.mov |
…icy-distance-rates-settings
no offline behaviour for the selection rows and error message is not displaying when request fails Screen.Recording.2024-03-18.at.9.52.05.PM.mov |
src/pages/workspace/distanceRates/UnitSelector/UnitSelectorModal.tsx
Outdated
Show resolved
Hide resolved
src/pages/workspace/distanceRates/PolicyDistanceRatesSettingsPage.tsx
Outdated
Show resolved
Hide resolved
thats it for now @MrMuzyk Feel free to ping me once you are done |
ye I will. Im implementing changes to correctly handle offline mode and errors now. |
src/pages/workspace/distanceRates/CategorySelector/CategorySelectorModal.tsx
Show resolved
Hide resolved
…icy-distance-rates-settings
@ishpaul777 Rebased with latest main - ts errors are gone as expected. Added handling for offline mode and for errors. You can check it everything again :) |
Is it expected that only enabled category shows in category selector? Screen.Recording.2024-03-19.at.9.32.02.PM.mov |
Hey @luacmartins @MrMuzyk i'll be out for 3 hours for some urgent personal work came up will complete the review as soon as i am back. Sorry for unexpected turn of events 🙇♂️ |
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.
Awesome! Offline behavior is working great now!
@ishpaul777 all yours! let's try to get this one merged today! |
I am back, will finish it in few minutes |
</OfflineWithFeedback> | ||
{policy?.areCategoriesEnabled && ( | ||
<OfflineWithFeedback | ||
errors={errorFields?.defaultCategory} |
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.
i think we need to show the latest message only, not all error message
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.
> | ||
<HeaderWithBackButton title={translate('workspace.common.settings')} /> | ||
<OfflineWithFeedback | ||
errors={errorFields?.attributes} |
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.
i think we need to show the latest message only, not all error message
we can handle above as follow up if @MrMuzyk is not around |
Yea, I agree we can address those as a follow up |
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! Let's address the comments from @ishpaul777 in a follow up.
🚀 Deployed to staging by https://github.com/luacmartins in version: 1.4.55-0 🚀
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 1.4.55-0 🚀
|
There seems to be a regression from this PR #38662 which can be handled in follow-up PR. |
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.4.55-3 🚀
|
Details
Fixed Issues
$ #37513
PROPOSAL:
Tests
Offline tests
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 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
android.native.mp4
Android: mWeb Chrome
android.web.mp4
iOS: Native
ios.native.mp4
iOS: mWeb Safari
ios.web.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop