-
Notifications
You must be signed in to change notification settings - Fork 3k
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]: [DEV] Console Warning when opening FAB menu #43984
Conversation
@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] |
@ishpaul777 , i am not sure exactly how to write the QA steps because the warning would only appear in development environment, Can you help me out with it, thanks :) |
QA people will not be able to verify this on staging, we can mark this as [NO QA] in title |
@allgandalf we have lint issues |
friendly bump @allgandalf |
I thought this was waiting for your review, so sorry i missed this, updating in an hour |
@@ -217,7 +217,7 @@ function PopoverMenu({ | |||
{enteredSubMenuIndexes.length > 0 && renderBackButtonItem()} | |||
{currentMenuItems.map((item, menuIndex) => ( | |||
<FocusableMenuItem | |||
key={item.text} | |||
key={`${item.text}_${menuIndex}`} |
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.
@ishpaul777 , do you think we should disable the rule here? We do the same at one other place:
App/src/components/MentionSuggestions.tsx
Lines 99 to 100 in 66870b4
// eslint-disable-next-line react/no-array-index-key | |
key={`${text}${i}`} |
If no then we can try using item.label
instead, what do you think ?
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.
I think disabling rule should be enough 👍
@ishpaul777 , issue should be fixed now, waiting for your checklist 🙏 |
Thanks for fixing. I am on it! 😄 |
Reviewer Checklist
Screenshots/VideosAndroid: NativeRecord_2024-06-21-01-03-14.mp4Android: mWeb ChromeRecord_2024-06-21-00-58-30.mp4iOS: NativeScreen.Recording.2024-06-21.at.12.45.24.AM.moviOS: mWeb SafariScreen.Recording.2024-06-21.at.12.48.01.AM.movMacOS: Chrome / SafariScreen.Recording.2024-06-21.at.12.42.52.AM.movMacOS: DesktopScreen.Recording.2024-06-21.at.1.07.54.AM.mov |
✋ 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/AndrewGable in version: 9.0.1-0 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.1-19 🚀
|
Details
This PR fixes the console error received when we open the FAB
Fixed Issues
$ #43225
PROPOSAL: #43225 (comment)
Tests
Note
This was a console warning in development mode i.e. can only be reproduced on an emulator.
(On Android emulator and iOS simulator)
Verify that we do not get the warning :
Offline tests
Same as Test Steps
QA Steps
I don't think so QA would be able to reproduce these as this is only for development mode.
But if the QA can work in development mode the tests mentioned above are clear to test it our.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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-06-19.at.4.10.35.PM.mov
Android: mWeb Chrome
Screen.Recording.2024-06-19.at.4.17.34.PM.mov
iOS: Native
Screen.Recording.2024-06-19.at.4.04.00.PM.mov
iOS: mWeb Safari
Screen.Recording.2024-06-19.at.4.07.08.PM.mov
MacOS: Chrome / Safari
Screen.Recording.2024-06-19.at.4.08.43.PM.mov
MacOS: Desktop
Screen.Recording.2024-06-19.at.4.05.45.PM.mov