-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Add toggle for enable/disable instead of label #54451
Add toggle for enable/disable instead of label #54451
Conversation
I'll review this today. |
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / Safari54451-web.mp4 |
@abzokhattab Could you please fix merge conflicts? Thanks. |
Done! thanks for the comment...please review and let me know if you have any other comment. |
@abzokhattab Looks good. Could you please check and fix the lint error and then I can approve? Thanks. |
ok thanks working on them |
@abzokhattab Any update here? |
…/disable-instead-of-label
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.
Fixed |
const distanceRatesList = useMemo<RateForList[]>( | ||
() => | ||
Object.values(customUnitRates) | ||
.sort((rateA, rateB) => (rateA?.rate ?? 0) - (rateB?.rate ?? 0)) | ||
.map((value) => ({ | ||
value: value.customUnitRateID ?? '', | ||
value: value.customUnitRateID ?? CONST.EMPTY_STRING, |
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.
Do we need to start enforcing this @akinwale?
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.
No, this approach is wrong.
Please check https://github.com/Expensify/App/blob/main/contributingGuides/STYLE.md#default-value-for-inexistent-ids:
String IDs should not have a default value
This was the whole purpose of the eslint
change – to correctly handle such cases.
Since this PR, apparently, caused multiple regressions, I suggest that a follow-up PR should handle these missing IDs properly.
An example PR for proper handling is #54297
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.
@abzokhattab @akinwale yes please, lets fix this. Please read over the documentation linked and feel free to ask in slack (also search past convos in slack as this was discussed multiple times)
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.
Thank you, I misunderstood that we can use the default value from a fixed constant. Should I raise a PR to fix the blocker issues along with this one?
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.
@abzokhattab Please raise a single PR to fix all the issues and tag the fixed issues in the OP. I am available to review so ping me when it's ready.
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.
Changes LGTM, comment is NAB
✋ 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/grgia in version: 9.0.83-0 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.83-5 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.83-5 🚀
|
Explanation of Change
Fixed Issues
$ #53798
PROPOSAL: #53798 (comment)
Tests
Categories :
Taxes :
Distance Rates :
Tags :
Multilevel Tags :
Prerequisites:
Report Fields :
Offline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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-12-12.at.00.45.35.mov
Android: mWeb Chrome
Screen.Recording.2024-12-12.at.00.51.20.mov
iOS: Native
Screen.Recording.2024-12-12.at.00.45.35.mov
iOS: mWeb Safari
Screen.Recording.2024-12-12.at.00.51.20.mov
MacOS: Chrome / Safari
Categories:
Screen.Recording.2024-12-12.at.00.52.19.mov
Taxes:
taxes.mov
Distance Rates:
distance.mov
Tags:
tags-single.mov
Multilevel Tags:
tags-mult.mov
Report Fields:
report-fields.mov
MacOS: Desktop
Screen.Recording.2024-12-10.at.00.04.15.mov