removed disabling months/years in datepickers#88119
removed disabling months/years in datepickers#88119mukhrr wants to merge 2 commits intoExpensify:mainfrom
Conversation
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
JmillsExpensify
left a comment
There was a problem hiding this comment.
LGTM. Part of an existing product initiative.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 776918cc93
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp01_Android_Native.mp4Android: mWeb Chrome02_Android_Chrome.mp4iOS: HybridApp03_iOS_Native.mp4iOS: mWeb Safari04_iOS_Safari.mp4MacOS: Chrome / Safari05_MacOS_Chrome.mp4 |
| <PressableWithFeedback | ||
| shouldUseAutoHitSlop={false} | ||
| testID="prev-year-arrow" | ||
| disabled={!hasAvailableDatesPrevYear} |
There was a problem hiding this comment.
I'm just wondering if the intended design is to still limit the years to what is determined by CONST.CALENDAR_PICKER.MAX_YEAR, as now we can select the max year 1216 and click the arrow to move to 1217 or above.
There was a problem hiding this comment.
Hmm you are right. I think we need to keep the MIN_YEAR/MAX_YEAR guardrails at least in this case. Let's see what others think cc @JmillsExpensify
Explanation of Change
Fixed Issues
$ #87452
PROPOSAL:
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso 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.mp4
iOS: mWeb Safari
ios.mp4
MacOS: Chrome / Safari
web.mp4