-
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
Fix: 28988 parent for subcategories can be selected with arrow keys #29111
Conversation
src/libs/actions/IOU.js
Outdated
if (tag) { | ||
uniquePolicyRecentlyUsedTags.unshift(tag); | ||
} | ||
optimisticPolicyRecentlyUsedTags[tagListKey] = [...uniquePolicyRecentlyUsedTags]; |
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.
Why are tags being updated? This doesn't match the proposal where it's optimisticPolicyRecentlyUsedCategories
that are supposed to be updated in this file.
@tienifr Your videos do not properly demonstrate the intended fix. I can invite a ND account to a workspace that I created that has parent and sub-categories created for testing, if you need access to one. |
@akinwale Yes, I currently don't know how to create the parent and sub category. Can you also help me how to create them ? Thanks |
@akinwale tienifr032022+433@gmail.com. Thanks |
Invite sent. Workspace name is "akinwale tests". You may need to sign out and sign in again before it shows up. |
@Julesssss Based on this comment, it looks like the recently merged PR fixes the root cause, and the only change needed here is to add filters. @tienifr's code change is applying the same fix, but for tags instead of categories, i.e. not adding empty tags to the recently used list. What do you recommend here? Should we proceed with just the filtering of categories? And should we also consider the fix for tags? |
I just revert this change because I think it's out of scope and I don't see any bugs related to this |
Let's continue with just the filter logic change. |
@tienifr Please update the videos when you get a chance, and add one for native Android as well, and then I can perform a full review. Thanks. |
@akinwale I'm doing |
@akinwale I just updated the videos on web, mweb, desktop. They works well but on other platforms I think it's impossible to perform up/down key |
Reviewer Checklist
Screenshots/VideosWeb28988-web.mp4Mobile Web - Chrome28988-android-chrome.webmMobile Web - Safari28988-ios-safari.mp4Desktop28988-desktop.mp4iOS28988-ios-native.mp4Android28988-android-native.webm |
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 ship it!
cc @Julesssss
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Performance Comparison Report 📊Significant Changes To Duration
Show details
Meaningless Changes To DurationShow entries
Show details
|
@Expensify/mobile-deployers 📣 Please look into this performance regression as it's a deploy blocker. |
🚀 Deployed to staging by https://github.com/Julesssss in version: 1.3.81-0 🚀
|
🚀 Deployed to staging by https://github.com/Julesssss in version: 1.3.83-0 🚀
|
Details
Fixed Issues
$ #28988
PROPOSAL: #28988 (comment)
Tests
Offline tests
Same as above
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 methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Screenrecording_20231010_174543.mp4
Android: mWeb Chrome
Screenrecording_20231010_174008.mp4
iOS: Native
Screen.Recording.2023-10-10.at.16.54.23.mov
iOS: mWeb Safari
Screen.Recording.2023-10-10.at.16.35.23.mov
MacOS: Chrome / Safari
Screen.Recording.2023-10-10.at.16.23.15.mov
MacOS: Desktop
Screen.Recording.2023-10-10.at.16.39.28.mov