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

Show correct tooltips for actions in feed #8966

Merged
merged 1 commit into from
Sep 19, 2022

Conversation

Stypox
Copy link
Member

@Stypox Stypox commented Sep 13, 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 shows the correct tooltips for hide/show actions in the feed. So when watched/future items are shown, the tooltip is "Hide watched/future items", otherwise it is "Show watched/future items". This is because the tooltip should represent the action performed by clicking on the button, as requested here. The item's titles, though, should just be a description of the button, and so stay the same (always "Show ... items"). This PR also changes "Show/hide future videos" to "Show/hide future items", in order to be consistent with "Show/hide watched videos", and also because a user's feed may not be composed of only videos.

While testing I noticed that, when pressing the buttons, sometimes the future-items tooltip wouldn't be updated right away, while the watched-items would. I don't know why this is, since the code for updating the two is exactly the same. Anyway, the tooltip set when the button is first shown is correct, and the tooltip also becomes correct after a while or after the menu gets reloaded. Maybe this problem has to do with some caching done by the system? Idk, but I wouldn't spend too much time on this anyway.

Fixes the following issue(s)

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

@Stypox Stypox mentioned this pull request Sep 13, 2022
9 tasks
@sonarqubecloud
Copy link

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

@Stypox Stypox merged commit f26bf33 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.

1 participant