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 confirmation when trying to leave the new transfer flow #255

Open
wants to merge 5 commits into
base: mail-validation-ui
Choose a base branch
from

Conversation

LunarX
Copy link
Contributor

@LunarX LunarX commented Dec 16, 2024

Don't let them escape!

This required me to refactor the dialog composable we already have to have greater control over the buttons. I opted for a more standard interfacing logic instead of adding a lot of parameters. We can now compose the dialog with buttons. There's still two constant buttons already defined for the standard cases.

This PR also required to add stacking buttons in dialogs when the buttons are too wide which required to change the design of the buttons for plain text buttons like the native material theme so they are not misaligned when stacked.

Depends on #254

@LunarX LunarX added the enhancement New feature or request label Dec 16, 2024
@LunarX LunarX requested a review from a team December 16, 2024 08:44
@LunarX LunarX self-assigned this Dec 16, 2024
@LunarX LunarX force-pushed the mail-validation-ui branch from 4fe805d to 2f92daf Compare December 16, 2024 10:39
@LunarX LunarX force-pushed the ask-user-before-leaving-new-transfer branch 2 times, most recently from f8b8d2c to 87feb4a Compare December 16, 2024 11:31
@LunarX LunarX force-pushed the mail-validation-ui branch from 2f92daf to b9cff14 Compare December 16, 2024 11:31
Copy link
Contributor

@tevincent tevincent left a comment

Choose a reason for hiding this comment

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

If the screen is too small, the text is not visible on the right.

Capture d’écran 2024-12-16 à 12 43 54

And pressing the back button should also show the dialog right ?

Copy link

This PR/issue depends on:

@LunarX LunarX requested a review from tevincent December 16, 2024 13:15
@LunarX LunarX force-pushed the ask-user-before-leaving-new-transfer branch 4 times, most recently from becbb9b to f914928 Compare December 17, 2024 08:18
@LunarX LunarX force-pushed the ask-user-before-leaving-new-transfer branch 4 times, most recently from 4fb2cf2 to a2fd0bf Compare December 17, 2024 14:57
When canceling an upload in progress, you'll be asked to confirm a first time and then when you're back on ImportFilesScreen, you'll need to confirm again to leave. This takes way too many clicks, the confirmation on ImportFilesScreen is not needed
@LunarX LunarX force-pushed the ask-user-before-leaving-new-transfer branch from a2fd0bf to d270eac Compare December 17, 2024 15:52
Copy link

sonarcloud bot commented Dec 17, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependent enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants