Skip to content

Stop scroll jump on workspace invite member selection#91250

Merged
francoisl merged 15 commits into
mainfrom
claude-stopScrollJumpWorkspaceInvite
May 21, 2026
Merged

Stop scroll jump on workspace invite member selection#91250
francoisl merged 15 commits into
mainfrom
claude-stopScrollJumpWorkspaceInvite

Conversation

@MelvinBot
Copy link
Copy Markdown
Contributor

@MelvinBot MelvinBot commented May 20, 2026

Explanation of Change

Stop scrolling and jumping when selecting items on the Workspace Invite page (DynamicWorkspaceInvitePage).

Previously, selected contacts were separated into a dedicated section at the top, and selecting a new contact triggered an auto-scroll to the top of the list. This was disorienting when selecting multiple contacts from a long list.

Changes:

  • Pass shouldKeepSelectedInAvailableOptions: true to useSearchSelector so selected items remain in the Contacts section with their isSelected flag instead of being moved to a separate section
  • Add a new shouldSeparateNonExistingSelectedOptions option to useSearchSelectorBase that computes selectedNonExistingOptions — selected users not present in availableOptions.personalDetails (e.g. typed email addresses). These are shown in a dedicated top section above Contacts so they remain visible after selection
  • Hide the userToInvite row when it is already selected to prevent duplicate entries
  • Add shouldUpdateFocusedIndex and shouldPreventAutoScrollOnSelect to the selection list to maintain scroll position when selecting items
  • Add unit tests for the new selection and non-existing options behavior

This follows the same pattern applied in previous PRs for SearchMultipleSelectionPicker, SearchFiltersCardPage, and SearchFiltersWorkspacePage.

Fixed Issues

$ #61414

Tests

  • Verify that no errors appear in the JS console

Offline tests

  • Go to a workspace Settings > Members > Invite member
  • Turn off network
  • Select multiple contacts from the list and verify no scroll jump occurs
  • Turn on network and verify the selections persist

QA Steps

  • Go to a workspace Settings > Members > Invite member
  • Scroll down and select a contact — verify the list does NOT jump to the top
  • Select multiple contacts from different positions in the list — verify the list stays in place
  • Type a non-existing email address (e.g., newuser@test.com) and select it — verify it appears in the top section (above Contacts), not inside the Contacts section
  • Select another non-existing email — verify both appear in the top section
  • Clear the search field — verify the non-existing selected users remain visible in the top section
  • Deselect a non-existing user — verify it disappears from the top section
  • Verify that existing contacts show a checkmark in the Contacts section when selected (they should NOT move to a separate section)
  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I followed proper code patterns (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
      • If any non-english text was added/modified, I used JaimeGPT to get English > Spanish translation. I then posted it in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:
    • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
    • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    • I verified the JSDocs style guidelines (in STYLE.md) were followed
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I followed the guidelines as stated in the Review Guidelines
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
  • I verified any variables that can be defined as constants (ie. in CONST.ts or at the top of the file that uses the constant) are defined as such
  • I verified that if a function's arguments changed that all usages have also been updated correctly
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))
  • If new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Screenshots will be provided in the reviewer checklist.

Android: Native

Will be added in reviewer checklist.

Android: mWeb Chrome

Will be added in reviewer checklist.

iOS: Native

Will be added in reviewer checklist.

iOS: mWeb Safari

Will be added in reviewer checklist.

MacOS: Chrome / Safari

Will be added in reviewer checklist.

AI Tests

Test Result
prettier ✅ Passed
lint-changed ✅ Passed
typecheck-tsgo ✅ Passed (pre-existing errors in unrelated files)
react-compiler-compliance-check ✅ Passed
typecheck (tsc) ⏳ Running in background

Keep selected items in the contacts section instead of separating them
into a dedicated section. Use initiallyFocusedKey to scroll to the first
selected item on mount, and prevent auto-scroll on subsequent selections.

Co-authored-by: mkhutornyi <mkhutornyi@users.noreply.github.com>
@MelvinBot
Copy link
Copy Markdown
Contributor Author

All CI checks have passed except PR Author Checklist, which requires manual completion by the PR author — it's not a code issue. No fix is needed.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 20, 2026

Codecov Report

✅ Changes either increased or maintained existing code coverage, great job!

Files with missing lines Coverage Δ
src/hooks/useSearchSelector/base.ts 82.29% <100.00%> (+8.37%) ⬆️
src/pages/workspace/DynamicWorkspaceInvitePage.tsx 0.00% <0.00%> (ø)
... and 13 files with indirect coverage changes

@mkhutornyi
Copy link
Copy Markdown
Contributor

@MelvinBot non-existing users disappear after selection. They should still be in top section (not in Contacts section).

Screen.Recording.2026-05-21.at.4.41.25.AM.mov

When a non-existing user (typed email) is selected via userToInvite,
they are not part of personalDetails and would disappear from the UI.
This adds them back in a top section above Contacts using
selectedOptionsForDisplay filtered to exclude users already shown
in the Contacts section.

Co-authored-by: mkhutornyi <mkhutornyi@users.noreply.github.com>
@MelvinBot
Copy link
Copy Markdown
Contributor Author

Fixed in ab2c161. Non-existing users (typed emails selected via userToInvite) now stay visible in a top section above Contacts after selection, instead of disappearing.

The issue was that shouldKeepSelectedInAvailableOptions only keeps items that are already in personalDetails visible — non-existing users were never in personalDetails, so they vanished. The fix brings back selectedOptionsForDisplay filtered to only show selected users not already in the Contacts list, and renders them in a dedicated top section.

onSelectRow={handleToggleSelection}
shouldShowTextInput
textInputOptions={textInputOptions}
initiallyFocusedItemKey={initiallyFocusedKey}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MelvinBot remove initiallyFocusedKey. We no longer need this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already removed — it was cleaned up in the prior commit.

});

// Selected non-existing users that aren't in the Contacts section (e.g. typed email addresses)
const selectedNonExistingUsers = useMemo(() => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MelvinBot no need useMemo. Auto memoized by React Compiler

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done — removed useMemo wrapper in 231b758.

No longer needed since selected items stay in-place in the Contacts
section rather than being moved to a separate top section.

Co-authored-by: mkhutornyi <mkhutornyi@users.noreply.github.com>
@MelvinBot
Copy link
Copy Markdown
Contributor Author

Removed initiallyFocusedKey (import, hook call, and JSX prop) in 2045392.

React Compiler auto-memoizes this, so manual useMemo is unnecessary.

Co-authored-by: mkhutornyi <mkhutornyi@users.noreply.github.com>
@mkhutornyi
Copy link
Copy Markdown
Contributor

@MelvinBot I noticed that this page is re-rendered endlessly. sections is also computed infinitely. What caused this?

Move selectedNonExistingUsers computation inside the sections useMemo
and use selectedOptions (stable React state) instead of
selectedOptionsForDisplay (new array reference every render) to avoid
triggering unnecessary recomputations.

Co-authored-by: mkhutornyi <mkhutornyi@users.noreply.github.com>
@MelvinBot
Copy link
Copy Markdown
Contributor Author

The excessive re-renders were caused by selectedNonExistingUsers being computed outside useMemo from selectedOptionsForDisplay — which is not memoized in the hook and creates a new array reference every render. This made the sections useMemo always see a changed dependency, recomputing every render.

Fixed in a9ef427 by moving the computation inside the sections useMemo and using selectedOptions (stable React state) instead of selectedOptionsForDisplay.

Note: availableOptions.personalDetails is also not memoized in the hook (base.ts:363-367), so sections will still recompute on any Onyx update — but that's a pre-existing issue in the hook, not specific to this PR.

@MelvinBot
Copy link
Copy Markdown
Contributor Author

⚠️ MelvinBot CI Fix Loop Detected

MelvinBot has made 5 consecutive commits trying to fix CI failures. Automatic CI fix dispatches are now paused for this PR.

Next steps: A human should review the recent commits and resolve the conflicting CI errors manually.

@mkhutornyi
Copy link
Copy Markdown
Contributor

@MelvinBot it's not caused by selectedNonExistingUsers. Also happens on main branch.

@MelvinBot
Copy link
Copy Markdown
Contributor Author

Understood — the excessive re-renders are a pre-existing issue in useSearchSelector (the availableOptions object is rebuilt every render), not something introduced by this PR. I won't attempt further fixes for it here.

@mkhutornyi
Copy link
Copy Markdown
Contributor

mkhutornyi commented May 21, 2026

@MelvinBot non-existing user is duplicated briefly upon selection.

Screen.Recording.2026-05-21.at.4.58.29.AM.mov

When shouldKeepSelectedInAvailableOptions is true, the hook does not
null out userToInvite on selection. This caused duplicates — the user
appeared in both the top selected section and the userToInvite section.
Now we skip the userToInvite section when isSelected is true.

Co-authored-by: mkhutornyi <mkhutornyi@users.noreply.github.com>
@MelvinBot
Copy link
Copy Markdown
Contributor Author

Fixed in f3c4143. The userToInvite section now hides when the user is already selected (and thus visible in the top section). The issue was that with shouldKeepSelectedInAvailableOptions: true, the hook doesn't null out userToInvite on selection, so it appeared in both places.

@mkhutornyi
Copy link
Copy Markdown
Contributor

@MelvinBot when I type another user after non-existing user is selected, non-existing user is always visible despite that user doesn't match search keyword.

Use selectedOptionsForDisplay instead of selectedOptions when computing
the top section for non-existing users. selectedOptionsForDisplay is
already filtered by the current search term, so non-existing users
will correctly hide when they don't match the search keyword.

Co-authored-by: mkhutornyi <mkhutornyi@users.noreply.github.com>
@MelvinBot
Copy link
Copy Markdown
Contributor Author

Fixed in c893bb3. The top section was using selectedOptions (unfiltered) instead of selectedOptionsForDisplay (filtered by search term). Now non-existing users correctly hide when typing a search that doesn't match them, and reappear when the search is cleared.

Comment on lines +128 to +129
const personalDetailLogins = new Set(availableOptions.personalDetails.map((option) => option.login).filter(Boolean));
const selectedNonExistingUsers = selectedOptionsForDisplay.filter((option) => !personalDetailLogins.has(option.login));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MelvinBot move this logic to useSearchSelectorBase to be reusable. Introduce new param with default value = false

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in a005d57. Moved the logic into useSearchSelectorBase as a new shouldSeparateNonExistingSelectedOptions param (default false). When enabled, the hook computes and returns selectedNonExistingOptions — selected options not present in availableOptions.personalDetails.

Add shouldSeparateNonExistingSelectedOptions param (default false) to
useSearchSelectorBase that computes and returns selectedNonExistingOptions
— selected options not present in availableOptions.personalDetails.
This makes the logic reusable across consumers.

Co-authored-by: mkhutornyi <mkhutornyi@users.noreply.github.com>
onSelectRow={handleToggleSelection}
shouldShowTextInput
textInputOptions={textInputOptions}
shouldPreventAutoScrollOnSelect
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MelvinBot shouldUpdateFocusedIndex is missing

Matches the pattern used in SearchMultipleSelectionPicker,
SearchFiltersCardPage, and SearchFiltersWorkspacePage which all
pass shouldUpdateFocusedIndex alongside shouldPreventAutoScrollOnSelect.

Co-authored-by: mkhutornyi <mkhutornyi@users.noreply.github.com>
@melvin-bot
Copy link
Copy Markdown

melvin-bot Bot commented May 21, 2026

@mkhutornyi 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]

@melvin-bot melvin-bot Bot removed the request for review from a team May 21, 2026 07:29
@mkhutornyi
Copy link
Copy Markdown
Contributor

@MelvinBot fix failing tests

@mkhutornyi
Copy link
Copy Markdown
Contributor

mkhutornyi commented May 21, 2026

Reviewer Checklist

  • I have verified the author checklist is complete (all boxes are checked off).
  • I verified the correct issue is linked in the ### Fixed Issues section above
  • I verified testing steps are clear and they cover the changes made in this PR
    • I verified the steps for local testing are in the Tests section
    • I verified the steps for Staging and/or Production testing are in the QA steps section
    • I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
  • I checked that screenshots or videos are included for tests on all platforms
  • I included screenshots or videos for tests on all platforms
  • I verified that the composer does not automatically focus or open the keyboard on mobile unless explicitly intended. This includes checking that returning the app from the background does not unexpectedly open the keyboard.
  • I verified tests pass on all platforms & I tested again on:
    • Android: HybridApp
    • Android: mWeb Chrome
    • iOS: HybridApp
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
    • MacOS: Desktop
  • If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
  • I verified there are no new alerts related to the canBeMissing param for useOnyx
  • I verified proper code patterns were followed (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
    • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
    • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    • I verified the JSDocs style guidelines (in STYLE.md) were followed
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I verified that this PR follows the guidelines as stated in the Review Guidelines
  • I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
  • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
  • I verified any variables that can be defined as constants (ie. in CONST.ts or at the top of the file that uses the constant) are defined as such
  • If a new component is created I verified that:
    • A similar component doesn't exist in the codebase
    • All props are defined accurately and each prop has a /** comment above it */
    • The file is named correctly
    • The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
    • The only data being stored in the state is data necessary for rendering and nothing else
    • For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
    • Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
    • All JSX used for rendering exists in the render method
    • The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
  • For any bug fix or new feature in this PR, I verified that sufficient unit tests are included to prevent regressions in this flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
  • I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: HybridApp
android1.mov
android2.mov
Android: mWeb Chrome
iOS: HybridApp
ios.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
web.mov

- Rename ANOTHER_CONTACT to SECOND_CONTACT to avoid triggering
  no-negated-variables rule ("another" contains "not")
- Use .at(0) instead of [0] for array access per prefer-at rule

Co-authored-by: mkhutornyi <mkhutornyi@users.noreply.github.com>
@MelvinBot MelvinBot requested a review from a team as a code owner May 21, 2026 07:53
@melvin-bot melvin-bot Bot requested a review from francoisl May 21, 2026 07:53
@melvin-bot
Copy link
Copy Markdown

melvin-bot Bot commented May 21, 2026

@francoisl 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]

@melvin-bot melvin-bot Bot removed the request for review from a team May 21, 2026 07:53
@MelvinBot
Copy link
Copy Markdown
Contributor Author

Fixed the ESLint errors in 976f11a:

  1. Renamed ANOTHER_CONTACTSECOND_CONTACT — the word "another" contains "not", triggering the no-negated-variables rule
  2. Changed selectedOptions[0]selectedOptions.at(0)? per the prefer-at rule

title: translate('common.contacts'),
data: availableOptions.personalDetails,
sectionIndex: 1,
sectionIndex: selectedNonExistingOptions.length > 0 ? 1 : 0,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MelvinBot is it necessary to set sectionIndex conditionally based on selectedNonExistingOptions count?

sectionIndex only needs to be unique per section for key generation,
not sequential. Use fixed values since only sections with data are
pushed to the array.

Co-authored-by: mkhutornyi <mkhutornyi@users.noreply.github.com>
@MelvinBot
Copy link
Copy Markdown
Contributor Author

No — sectionIndex only needs to be unique across sections (it's used to generate keyForList and flatListKey in useFlattenedSections), not sequential. Since only sections with data are pushed, fixed values (0, 1, 2) work fine. Simplified in 9d3f0c8.

@mkhutornyi
Copy link
Copy Markdown
Contributor

@MelvinBot update Explanation of Change to reflect latest changes

@MelvinBot
Copy link
Copy Markdown
Contributor Author

Updated the Explanation of Change to reflect all current changes, including the new shouldSeparateNonExistingSelectedOptions hook option, hiding userToInvite when already selected, shouldUpdateFocusedIndex, and the added unit tests.

@mkhutornyi
Copy link
Copy Markdown
Contributor

@francoisl while testing invite members page, I found bad bug on main branch.
This page is re-rendered infinitely for no reason. If needed, I can fix this in a separate PR.

bug.mov

@francoisl
Copy link
Copy Markdown
Contributor

Hm interesting, I'm not seeing that rerender issue. Neither on main nor on this branch. If you can consistently reproduce and find the root cause, then sure - feel free to make a follow-up PR.

@francoisl francoisl merged commit 6f26d34 into main May 21, 2026
44 checks passed
@francoisl francoisl deleted the claude-stopScrollJumpWorkspaceInvite branch May 21, 2026 19:02
@OSBotify
Copy link
Copy Markdown
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@github-actions
Copy link
Copy Markdown
Contributor

🚧 @francoisl has triggered a test Expensify/App build. You can view the workflow run here.

@OSBotify
Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/francoisl in version: 9.3.79-1 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Bundle Size Analysis (Sentry):

@MelvinBot
Copy link
Copy Markdown
Contributor Author

No help site changes are required for this PR.

The changes are a UX improvement to the Workspace Invite Member selection list (preventing scroll jumps when selecting contacts). The relevant help article (Managing Workspace Members) describes the invite flow at a high level ("Search for the user by name, email, or phone number" → "Invite") and does not reference the specific selection list behavior that was changed.

No workflow steps, feature names, button labels, or UI paths were affected.

@OSBotify
Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/roryabraham in version: 9.3.79-4 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants