Conversation
|
@srikarparsi 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] |
| // eslint-disable-next-line react-compiler/react-compiler | ||
| // eslint-disable-next-line react-hooks/exhaustive-deps |
There was a problem hiding this comment.
For each of the eslint disable we are trying to add a comment explaining why it has to be done - can you add it here? Can you also add it the eslint disable on one line only please
|
🚧 @mountiny has triggered a test app build. You can view the workflow run here. |
Kicu
left a comment
There was a problem hiding this comment.
Looks good, although 2 effects that do similar things and both need to disable eslint rules, are kinda confusing 😅
|
|
||
| const focusedRoot = useRootNavigationState((state) => findFocusedRoute(state)); | ||
|
|
||
| useEffect(() => { |
There was a problem hiding this comment.
I'd drop a simple 1-line comment describing what this does.
Something like
// we clear selected state in cases of X,Y but don't want to clean it when Z
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
|
At this point I wonder if the idea that we want to implement here is not too confusing. Is it possible to somehow simplify? IE always clean them or never clean them? any thoughts @mountiny ? |
|
With great help from @WojtekBoman I found a better solution |
Kicu
left a comment
There was a problem hiding this comment.
LGTM and seems simpler 👍 very nice
|
bump @mountiny |
|
Asking if @DylanDylann or @allgandalf will take it |
Reviewer Checklist
Screenshots/VideosAndroid: NativeCannot test on small screensAndroid: mWeb ChromeCannot test on small screensiOS: NativeCannot test on small screensiOS: mWeb SafariCannot test on small screensMacOS: Chrome / SafariScreen.Recording.2025-04-17.at.7.14.21.PM.movMacOS: DesktopScreen.Recording.2025-04-17.at.7.35.08.PM.mov |
mountiny
left a comment
There was a problem hiding this comment.
Nice simplification! thanks!
|
✋ 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/mountiny in version: 9.1.30-0 🚀
|
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.1.30-4 🚀
|
cc @mountiny @WojtekBoman @adamgrzybowski
Explanation of Change
Fixed Issues
$ #59833
PROPOSAL: N/A
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 stepssectiontoggleReportand notonIconClick)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 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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov