Make WorkspaceInvitePage use new SelectionListWithSections#81848
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
I'm not sure why eslint fails, it shows 0 errors, only warnings |
|
@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] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bb2c7bf665
ℹ️ 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".
| <SelectionListWithSections | ||
| canSelectMultiple | ||
| sections={sections} | ||
| ListItem={InviteMemberListItem} | ||
| textInputLabel={translate('selectionList.nameEmailOrPhoneNumber')} | ||
| textInputValue={searchTerm} | ||
| onChangeText={(value) => { | ||
| setSearchTerm(value); | ||
| }} | ||
| headerMessage={headerMessage} | ||
| onSelectRow={handleToggleSelection} |
There was a problem hiding this comment.
Pass per-item indices so tooltips stay unique
SelectionListWithSections from @components/SelectionList does not pass index/sectionIndex props down to InviteMemberListItem, unlike the legacy SelectionListWithSections. InviteMemberListItem uses those props to build the EducationalTooltip uniqueID (${sectionIndex}-${index}), so after this switch every row falls back to the default 0-0. That can cause product‑training tooltips to reuse state or anchor incorrectly when multiple invitees are rendered (only the first row may show the tooltip, or it may jump to the wrong row after list updates). Consider supplying stable per‑row indices (e.g., include them in item data or update the list renderer to pass them) or use item.keyForList for uniqueness.
Useful? React with 👍 / 👎.
|
No product review needed |
|
The esliint check fails because of 425 warnings, there isn't any error |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-02-09.at.23.06.56.movAndroid: mWeb ChromeScreen.Recording.2026-02-09.at.23.05.32.moviOS: HybridAppScreen.Recording.2026-02-09.at.23.07.19.moviOS: mWeb SafariScreen.Recording.2026-02-09.at.23.05.06.movMacOS: Chrome / SafariScreen.Recording.2026-02-09.at.23.03.35.mov |
|
@zfurtak can merging main fix the issue? |
|
It helped! |
|
🚧 @grgia has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ 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/grgia in version: 9.3.17-0 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.3.17-9 🚀
|
Explanation of Change
Fixed Issues
$ #65658
PROPOSAL:
Tests
Members->Invite membersOffline tests
QA Steps
Same as tests
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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2026-02-09.at.12.22.23.mov