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

Fix various issues in the search suggestions list #8972

Merged
merged 3 commits into from
Sep 19, 2022

Conversation

Stypox
Copy link
Member

@Stypox Stypox commented Sep 14, 2022

What is it?

  • Bugfix (user facing)
  • Feature (user facing)
  • Codebase improvement (dev facing)
  • Meta improvement to the project (dev facing)

Description of the changes in your PR

This PR fixes the various issues that arose after upgrading the search suggestions list code in #8719: inconsistent item icons on the left sometimes (e.g. history icon when the item is not from history), strange item movements when changing the list, strange scrolling behavior when the suggestions change (i.e. not scrolling always to the top on change). See the three commits' messages for more information. @Isira-Seneviratne could you review?

APK testing

The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR.

Due diligence

The diff util wrongly considered as equal two items with the same text but with different `fromHistory` value
The animations were just in the way and did not help in choosing items, since the suggestion items keep changing too much.
Before if the list before updating contained item 'test' at position 0 and after updating that value went to the bottom, the list would incorrectly scroll to the bottom to follow that item. Now the scrolling is done after the list is updated.
@Stypox Stypox changed the title Fix search suggestions scrolling and reorde Fix various issues in the search suggestions list Sep 14, 2022
@Stypox Stypox mentioned this pull request Sep 14, 2022
9 tasks
@sonarcloud
Copy link

sonarcloud bot commented Sep 14, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@Isira-Seneviratne
Copy link
Member

Isira-Seneviratne commented Sep 14, 2022

@Stypox Thanks for the improvements for my changes, I'll be checking soon.

Update: It seems to be working fine, I didn't encounter any issues while testing using a couple of searches.

@MD77MD
Copy link

MD77MD commented Sep 17, 2022

I'm not sure if this is related or i should open a new issue but there are bugs when you trying to edit the wording of a search sentence in the search field.
first one, when you do a long press to select a certain word in search sentence, the hole search sentence is selected instead.

the other one is if you try to select multiple words using swipe select (by long pressing a certain word to activate select, then moving right and left while holding) it will work but in a broken way.. the swipe select will work but the point of activation would jump from the word you long pressed to the first word of the search sentence

Update:
Bug 1: selecting a single word in search box #8996
Bug 2: selecting multiple word using swipe select in search box #8997

@privacyonly
Copy link

privacyonly commented Sep 18, 2022

off topic by a little but since the title says fix various issues in the search suggestion list,

if suggestqueries.google.com is blocked, if we type something in the search box, there will be multiple warnings at the bottom of the screen, "Sorry, Something went wrong" Report.

can we not show this?

edit:missing words

@opusforlife2
Copy link
Collaborator

if suggestqueries.google.com is blocked, if we type something in the search box, there will be multiple warnings at the bottom of the screen, "Sorry, Something went wrong" Report.

Why not turn off search suggestions if you don't want them?

@privacyonly
Copy link

didn't know it was there. thanks. but shouldn't the error be more specific like search suggestion error or something.

@opusforlife2
Copy link
Collaborator

You could open a new issue for that.

@Stypox Stypox merged commit bf55ed2 into TeamNewPipe:release-0.24.0 Sep 19, 2022
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.

5 participants