Anki-Android icon indicating copy to clipboard operation
Anki-Android copied to clipboard

"Discard current input?" is not suitable for existing-content-editing screens ("Edit note", "Deck options", "Card type")

Open snowtimeglass opened this issue 1 year ago • 2 comments

I would also propose to change the wording to "Discard changes?" in case changes were made, since any user actions in the deck options are rather "changes" and not "input". Should I open an extra issue for that?

Originally posted by @camoz in https://github.com/ankidroid/Anki-Android/issues/15782#issue-2169625911

What about changing "Discard current input?" to "Discard changes?" or similar (cf. last paragraph I wrote)?

Originally posted by @camoz in https://github.com/ankidroid/Anki-Android/issues/15782#issuecomment-1979260121

The opinion seems right not only from the viewpoint of meaning but also from the viewpoint of consistency with Anki Desktop.

Actually, in Anki Desktop, "Discard current input?", is used just for "Add" screen; it isn't used for the following screens: "Edit note", "Deck options", "Card type".


image


image

https://github.com/search?q=repo%3Aankitects%2Fanki+%22adding_discard_current_input%22&type=code


It means that this string is used just in case that a new note is created and is input something, not in cases that existing (= already-saved) contents is edited. I'd say that this string is optimized for new creation and is not suitable for other situations.

However, in AnkiDroid, "Discard current input?" is used not only for "Add" screen, but also for those existing-content-editing screens ("Edit note", "Deck options", "Card type"). In these cases, this message looks a bit odd and less intuitive, as @camoz may feel.

So, for the screens ("Edit note", "Deck options", "Card type"), it will probably be better to reuse "Discard changes?" from Anki Desktop. It will work more clearer, more intuitive, less confusing in the situations, as it works in Anki Desktop as follows:

image

snowtimeglass avatar Mar 06 '24 04:03 snowtimeglass

I agree that it's better to reuse "Discard changes?" from Anki Desktop in cases where existing content is being edited.

However, the options "Discard" and "Keep Editing" should remain unchanged.

For example, the following dialog appears in Google Photos when leaving the editing screen:

user1823 avatar Mar 06 '24 04:03 user1823

Hello 👋, this issue has been opened for more than 3 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

github-actions[bot] avatar Jun 04 '24 06:06 github-actions[bot]

Hello 👋, this issue has been opened for more than 3 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

github-actions[bot] avatar Nov 02 '24 00:11 github-actions[bot]

I think this would still be nice to have.

Can we reopen this?

camoz avatar Nov 09 '24 10:11 camoz

Hello 👋, this issue has been opened for more than 3 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

github-actions[bot] avatar Feb 07 '25 11:02 github-actions[bot]

Still looking for a solution...

user1823 avatar Feb 07 '25 12:02 user1823

Hello 👋, this issue has been opened for more than 3 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

github-actions[bot] avatar May 08 '25 12:05 github-actions[bot]

Still looking for a solution...

camoz avatar May 08 '25 14:05 camoz

Hello 👋, this issue has been opened for more than 3 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

github-actions[bot] avatar Sep 01 '25 03:09 github-actions[bot]

Hey @david-allison ! Looks like this is still open. Could I give this a go? It would be my first contribution.

Alex7D3 avatar Oct 14 '25 22:10 Alex7D3

Sure, cheers!

david-allison avatar Oct 15 '25 00:10 david-allison