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

NewPipe Settings page redesign - Part 1 #10490

Closed
wants to merge 1 commit into from

Conversation

snaik20
Copy link
Contributor

@snaik20 snaik20 commented Oct 12, 2023

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

  • Added a new page to display the redesigned settings page.
  • Added an entry in the SettingsResourceRegistry.
  • Added entry in debug setting to enable the new redesign.
  • Created a new MainSettingsV2Fragment that is the same as MainSettingsFragment but provides the redesigned page.
  • This is necessary to prevent development of new settings from affecting and complicating the existing implementation.
  • This also provides a way to develop and test the redesign without affecting release builds.
  • The MainSettingsFragment can be removed once the new settings page is released.

Note: These changes are not final. This PR is to demonstrate and discuss icons for the new entries.

Before/After Screenshots/Screen Record

NewPipe_Settings_Screen_Missing_Icons

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. You can find more info and a video demonstration on this wiki page.

Due diligence

* Added a new page to display the redesigned settings page.
* Added an entry in the `SettingsResourceRegistry`.
* Created a new `MainSettingsV2Fragment` that is the same as `MainSettingsFragment` but provides the redesigned page.
* This is necessary to prevent development of new settings from affecting and complicating the existing implementation.
* This also provides a way to develop and test the redesign without affecting release builds.
* The `MainSettingsFragment` can be removed once the new settings page is released.

**Screenshot:**
<img src="https://github.com/TeamNewPipe/NewPipe/assets/87667048/3f29c319-224d-4b5b-8c0c-8178e413cfb1" alt="NewPipe_Settings_Screen_Missing_Icons" width=300 height=650>

**Note:** These changes are not final. This PR is to demonstrate and discuss icons for the new entries.
@sonarcloud
Copy link

sonarcloud bot commented Oct 12, 2023

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 1 Code Smell

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@snaik20 snaik20 mentioned this pull request Oct 12, 2023
6 tasks
@opusforlife2
Copy link
Collaborator

Awesome!

Only the Player menu can be opened right now. Is that intended?

Also, it would help to mention that the new layout is to be enabled via debug settings.

(BTW, since debug settings can't be opened in the new layout, there's no way to switch back.)

@snaik20
Copy link
Contributor Author

snaik20 commented Oct 12, 2023

Awesome!

Only the Player menu can be opened right now. Is that intended?

(BTW, since debug settings can't be opened in the new layout, there's no way to switch back.)

Both these things are intended in the current state. This PR is only meant as a demo of how I plan to move ahead. The click destinations are not implemented right now. The Player menu opens the old Audio/Video settings option as of now.

My plan is to get an initial confirmation here before moving ahead with rest of the changes. I will make sure to implement debug menu first so that we can switch back.

The concern right now is the icons for new entries @opusforlife2 Can you help with this

Also, it would help to mention that the new layout is to be enabled via debug settings.

Thanks. Added information for this in the description.

@opusforlife2
Copy link
Collaborator

@Stypox knows all the material icons like the back of his hand.

@snaik20
Copy link
Contributor Author

snaik20 commented Feb 26, 2024

I have chosen to implement this without the icons for now in #10849. The new page is guarded by a debug settings option, so it should be safe to do so.

I am closing this PR as it was only meant as a proof of concept. Thank you for your understanding.

@snaik20 snaik20 closed this Feb 26, 2024
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.

New Settings categorization
2 participants