Skip to content
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

Add clear icon for search view in open conversations #4497

Merged
merged 2 commits into from
Dec 13, 2024
Merged

Conversation

sowjanyakch
Copy link
Contributor

Resolve #4490

🚧 TODO

  • ...

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
  • 🔖 Capability is checked or not needed
  • 🔙 Backport requests are created or not needed: /backport to stable-xx.x
  • 📅 Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

@sowjanyakch sowjanyakch marked this pull request as ready for review November 28, 2024 08:52
@sowjanyakch sowjanyakch self-assigned this Nov 28, 2024
@sowjanyakch sowjanyakch added the 3. to review Waiting for reviews label Nov 28, 2024
Copy link
Collaborator

@mahibi mahibi left a comment

Choose a reason for hiding this comment

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

Could you have a closer look how much work it is to use a SearchView (https://developer.android.com/reference/com/google/android/material/search/SearchView) here? I think it would make more sense as it's intended to use with the appbar.

If SearchView is not possible for whatever reason, then you should wrap the
TextInputEditText inside a TextInputLayout which will also give you the possibility to use built in cancel button etc.

@sowjanyakch sowjanyakch force-pushed the add_clear_icon branch 2 times, most recently from 9bc5681 to 59673f4 Compare December 11, 2024 12:39
Signed-off-by: sowjanyakch <[email protected]>
Signed-off-by: sowjanyakch <[email protected]>
Copy link
Contributor

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/4497-talk.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud Talk app.

Copy link
Contributor

Codacy

Lint

TypemasterPR
Warnings158158
Errors7272

SpotBugs

CategoryBaseNew
Bad practice66
Correctness1616
Dodgy code7171
Internationalization33
Malicious code vulnerability33
Performance44
Security11
Total104104

Copy link
Collaborator

@mahibi mahibi left a comment

Choose a reason for hiding this comment

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

when typing, the result list should also be updated if there searched string doesn't match anymore.

For example there are 3 rooms called "Talk".
When i search for "Tal", all 3 rooms are shown.
But when i add a letter that doesn't match, the results should disappear. So when i type "Talx", the old results are still shown.

@sowjanyakch
Copy link
Contributor Author

I will implement the search bug in a different PR.

@mahibi mahibi self-requested a review December 13, 2024 12:04
@mahibi mahibi merged commit f41efd9 into master Dec 13, 2024
18 checks passed
@mahibi mahibi deleted the add_clear_icon branch December 13, 2024 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add ✖️ to clear search/filter input in open conversations
2 participants