ReVanced / revanced-manager

💊 Application to use ReVanced on Android
https://revanced.app
GNU General Public License v3.0
16.52k stars 706 forks source link

feat: Progressive disclosure for adding bundles #1992

Closed oSumAtrIX closed 2 days ago

oSumAtrIX commented 1 week ago

Feature description

Right now a dialog is shown to chose the type and then the user is sent to the page to set various settings for the bundle. Instead progressive disclosure should be utilized here. If the user clicks on add, they can first select a file from storage, or enter a URL, when they click on "Next" it could ask to enter a name and show a switch to enable or disable updates (only when a URL) was entered. Once they click "Next" the bundle will simply be added and they would be sent back to the bundles screen. They can now click on the bundle to visit its setting if they want to change something.

Acknowledgements

Axelen123 commented 1 week ago

Implementing this is currently tricky because the user may need to provide integrations. This will get much easier after integrations are merged into patches.

oSumAtrIX commented 1 week ago

if the user clicks, select by file, you can add an inapp flag "separate integrations needed". The next page will offer the user to select both files. If the user clicks on "Enter URL", it'll simply offer one textbox, the inapp flag will handle what to obtain from the URL. Once the integrations are merged, the flag can be toggled off via a new build of ReVanced Manager (that will be necessary since breaking changes in Patcher).