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

Moved subscription import/export options to (overflow) menu #7458

Merged
merged 10 commits into from
May 12, 2022

Conversation

litetex
Copy link
Member

@litetex litetex commented Nov 28, 2021

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

  • Moved subscription import/export options to (overflow) menu
  • Fixed popup-menu icon colors
  • Converted placeholders pngs to svgs
    • Required for SubscriptionFragment/Popup (otherwise the Popup-menu uses half of the screen)
    • Size reduction
    • Fixed/Improved some images:
      • Bandcamp: Was facing in the wrong direction and used an incorrect logo
      • Media CCC: Update logo
      • YT: Added NewPipe logo so that it's not just a rectangle
  • Cleanup

Before/After Screenshots/Screen Record

  • Before:
    grafik grafik grafik

  • After:
    grafik grafik grafik grafik grafik

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

@litetex litetex added feature request Issue is related to a feature in the app GUI Issue is related to the graphical user interface labels Nov 28, 2021
@AudricV

This comment was marked as resolved.

@opusforlife2
Copy link
Collaborator

@EvilGremlin Please test this.

@EvilGremlin
Copy link

Looks good

@opusforlife2
Copy link
Collaborator

In your "Import from"/"Export to" screenshot, the arrows aren't visible. I think they should be visible at all times.

@litetex litetex marked this pull request as draft November 29, 2021 19:22
@opusforlife2

This comment was marked as resolved.

@litetex

This comment was marked as resolved.

@litetex litetex force-pushed the rework-subscription-import-export-ui branch 2 times, most recently from e292816 to 1e15c7b Compare March 20, 2022 16:36
@litetex litetex marked this pull request as ready for review March 20, 2022 16:37
@litetex
Copy link
Member Author

litetex commented Mar 20, 2022

@TiA4f8R @opusforlife2
The problems should be fixed now 😄

@litetex litetex mentioned this pull request Apr 15, 2022
12 tasks
@litetex litetex force-pushed the rework-subscription-import-export-ui branch from 1e15c7b to 78cb1ad Compare April 15, 2022 14:18
@Stypox
Copy link
Member

Stypox commented Apr 30, 2022

@litetex please update the YouTube icon as we decided. Other than that, code looks good to me from a first look.

@litetex
Copy link
Member Author

litetex commented May 1, 2022

@Stypox Done :)

litetex added 9 commits May 7, 2022 15:08
* Required for SubscriptionFragment (otherwise the PopUp-menu uses half of the screen)
* Size reduction
* Fixed/Improved some images:
  * Bandcamp: Was facing in the wrong direction and used an incorrect logo
  * Media CCC: Update logo
  * YT: Added NewPipe logo so that it's not just a rectangle
@litetex litetex force-pushed the rework-subscription-import-export-ui branch from 91af97c to de4b5a8 Compare May 7, 2022 13:08
Comment on lines 149 to 153
val services = requireContext().resources.getStringArray(R.array.service_list)
for (serviceName in services) {
try {
val service = NewPipe.getService(serviceName)

Copy link
Member

Choose a reason for hiding this comment

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

You can use for (service in ServiceList.all()) { and avoid handling strings and avoid the try. The service_list seems to be completely outdated, please remove it altogether (it is not used in any other place):

image

Sorry for not noticing this earlier

Copy link
Member Author

@litetex litetex May 11, 2022

Choose a reason for hiding this comment

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

done

@sonarqubecloud
Copy link

sonarqubecloud bot commented May 9, 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

Copy link
Member

@Stypox Stypox left a comment

Choose a reason for hiding this comment

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

Code looks good to me. I tested on API 31 importing and exporting things and it works as expected.

The only thing I am still a little bit worried about is discoverability. How can a user know they can import/export subscriptions by tapping on ...? I would replace the "Nothing here but crickets" with a "You can import and export subscriptions from the three-dot menu". But this would be done in a separate PR.
image

@Stypox Stypox merged commit 2dd4f8b into TeamNewPipe:dev May 12, 2022
@litetex litetex deleted the rework-subscription-import-export-ui branch May 16, 2022 18:45
@opusforlife2
Copy link
Collaborator

I would replace the "Nothing here but crickets" with a "You can import and export subscriptions from the three-dot menu". But this would be done in a separate PR.

Open an issue until then, so no one forgets it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Issue is related to a feature in the app GUI Issue is related to the graphical user interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Subscription import/export options hidden behind secret UI action
5 participants