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] |
luacmartins
left a comment
There was a problem hiding this comment.
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 🙇♂️ |
luacmartins
left a comment
There was a problem hiding this comment.
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.
i think we need to show the latest message only, not all error message
| > | ||
| <HeaderWithBackButton title={translate('workspace.common.settings')} /> | ||
| <OfflineWithFeedback | ||
| errors={errorFields?.attributes} |
There was a problem hiding this comment.
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 |
luacmartins
left a comment
There was a problem hiding this comment.
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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.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