-
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: Three QA guides in mention suggestion list after onboarding with Manage my team's expenses #54805
FIX: Three QA guides in mention suggestion list after onboarding with Manage my team's expenses #54805
Conversation
… Manage my team's expenses
@dukenv0307 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] |
@dukenv0307 The lint issue is not cause directly by my changes but by the fact that we had changes in the Same like with the other PR, explanations in #54147 (comment) and #54147 (comment), I think we should move forward and disregard the lint issue even when merging as the other option would be to default to |
@ikevin127 I think we just need to fix the lint issue on |
@ikevin127 You missed the video on android native platform as well. |
Thanks, will add the missing parts in a few hours. |
…github.com/ikevin127/Expensify; branch 'main' of https://github.com/Expensify/App into ikevin127-removeSuggestionMentionDuplicate
@dukenv0307 I added the missing Android: Native video and fixed the eslint issue according to the documentation. |
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / SafariScreen.Recording.2025-01-06.at.15.34.55.mov |
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
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.
Nice, thank you!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Explanation of Change
Sometimes there's two QA guide entries in the member list after onboarding flow with Manage my team's expenses choice which comes from BE and renders 3 entries of the same login QA team member in the SuggestionMention list, this PR addresses the issue by filtering out any duplicated entries.
Real example of array with duplicated entries
Since we don't have bandwith to investigate this on BE side as stated in this comment, we decided to move forward with a FE fix which simply filters out duplicated values based on
login
key which is a unique identifier in our app.Fixed Issues
$ #54563
PROPOSAL: #54563 (comment)
Tests
Note
In order for the issue to be reproduced on DEV and subsequently be able to verify and review whether the fix works, it is necessary that Use Staging Server is set to ON in Onyx storage before creating the new account (random email without +) because when we create the workspace via onboarding flow, if we're not on staging server we won't be assigned the
[email protected]
guide.To do this we can add
Onyx.merge(ONYXKEYS.USER, {shouldUseStagingServer: true});
insrc/App.tsx
at the top of the functional component here, this would ensure you're using staging server and the issue will be reproduced 100% consistently - this will also help validate and review the proposed fix from this PR.@
symbol in composer to open suggestions popup and verify that there's only one[email protected]
entry in the list instead of three.@
, typeqa
and verify that there's only one[email protected]
entry in the suggestions list.Offline tests
N/A.
QA Steps
@
symbol in composer to open suggestions popup and verify that there's only one[email protected]
entry in the list instead of three.@
, typeqa
and verify that there's only one[email protected]
entry in the suggestions list.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
android.mp4
Android: mWeb Chrome
android-mweb.webm
iOS: Native
ios.mp4
iOS: mWeb Safari
ios-mweb.mp4
MacOS: Chrome / Safari
after.mov
MacOS: Desktop
desktop.mov