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

feat: Add confirm dialogs when toggling dangerous settings #2072

Open
wants to merge 5 commits into
base: compose-dev
Choose a base branch
from

Conversation

TheAabedKhan
Copy link
Member

Note: Strings need to be set

@TheAabedKhan TheAabedKhan linked an issue Jul 20, 2024 that may be closed by this pull request
3 tasks
@TheAabedKhan TheAabedKhan added the ReVanced Manager Compose Regarding the Compose rewrite of ReVanced Manager label Jul 20, 2024
…afeguardBooleanItem.kt

Co-authored-by: Ax333l <main@axelen.xyz>
Copy link
Member

@Axelen123 Axelen123 left a comment

Choose a reason for hiding this comment

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

The UI code looks good to me

Copy link
Member

@validcube validcube left a comment

Choose a reason for hiding this comment

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

🔥 The dialog's title & description for safeguard must tell the user what the feature does and the consequences of enabling/disabling it.

image

Additionally, this isn't very clear to the user,

"Enforce selection of the suggested app version"

  • Yes (Toggle the preference - which is on by default)
  • No (Dismiss the dialog)

I assume you already knew that, so this is just a red flag check to tell maintainer to not accidentally merge.

@Axelen123
Copy link
Member

Are there strings in flutter manager that could be used for this?

@TheAabedKhan
Copy link
Member Author

Are there strings in flutter manager that could be used for this?

We have these two in flutter

{
"enablePatchesSelectionWarningText": "Changing the selection of patches may cause unexpected issues.\n\nEnable anyways?",
"requireSuggestedAppVersionDialogText": "Selecting an app that is not the suggested version may cause unexpected issues.\n\nDo you want to proceed anyways?"
}

@Axelen123
Copy link
Member

Axelen123 commented Jul 29, 2024

I guess those strings can be reused unless there is a better alternative

@oSumAtrIX oSumAtrIX linked an issue Aug 9, 2024 that may be closed by this pull request
4 tasks
@oSumAtrIX oSumAtrIX linked an issue Sep 8, 2024 that may be closed by this pull request
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ReVanced Manager Compose Regarding the Compose rewrite of ReVanced Manager
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: OutOfMemory while patching feat: Add confirm dialogs when toggling dangerous settings
4 participants