Skip to content

fix: Add trim to searchValue in OptionsUtils#6993

Merged
mountiny merged 1 commit into
Expensify:mainfrom
mananjadhav:fix/ignore-spaces-optionsutils
Jan 3, 2022
Merged

fix: Add trim to searchValue in OptionsUtils#6993
mountiny merged 1 commit into
Expensify:mainfrom
mananjadhav:fix/ignore-spaces-optionsutils

Conversation

@mananjadhav

@mananjadhav mananjadhav commented Jan 3, 2022

Copy link
Copy Markdown
Collaborator

Details

  • Added trim() for OptionsUtils so that leading/trailing spaces can be ignored when making the search calls.

Fixed Issues

$ #6907

Tests

  1. Tested the search with leading/trailing spaces for the input
  2. Ensured the input doesn't change automatically

QA Steps

  1. Click the Profile image to open settings
  2. Navigate to any Workspaces
  3. Go to Members >Manage Members
  4. Invite any email with leading/trailing spaces
  5. Ensure the search shows the result.

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Web

web-options-space-trim

New Email Search
web-new-email-options-search

Mobile Web

mweb-options-space-trim

Desktop

desktop-options-space-trim

iOS

ios-options-space-trim

Android

android-options-space-trim

@mananjadhav mananjadhav requested a review from a team as a code owner January 3, 2022 21:24
@MelvinBot MelvinBot requested review from mountiny and parasharrajat and removed request for a team January 3, 2022 21:24

@mountiny mountiny left a comment

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.

@mananjadhav Thank you very much for the PR! I have one request, would you be able to show a screenshot/video, with a new email searched? Email the user has never been in touch and maybe does not even exist (I think that was the case in the original proposal)

@mananjadhav

Copy link
Copy Markdown
Collaborator Author

@mountiny Updated in the PR body web screenshot.

@mountiny mountiny self-requested a review January 3, 2022 21:54

@mountiny mountiny left a comment

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.

@mananjadhav Thank you! Nice job on this issue:)

@mountiny mountiny merged commit cdce396 into Expensify:main Jan 3, 2022
@OSBotify

OSBotify commented Jan 4, 2022

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by @mountiny in version: 1.1.24-19 🚀

platform result
🤖 android 🤖 failure ❌
🖥 desktop 🖥 failure ❌
🍎 iOS 🍎 failure ❌
🕸 web 🕸 failure ❌

@OSBotify

OSBotify commented Jan 4, 2022

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by @francoisl in version: 1.1.24-19 🚀

platform result
🤖 android 🤖 failure ❌
🖥 desktop 🖥 failure ❌
🍎 iOS 🍎 failure ❌
🕸 web 🕸 failure ❌

@parasharrajat parasharrajat left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🎀 👀 🎀 C+ reviewed

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