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

Improve some dialogs (mostly string changes)

Open ZornHadNoChoice opened this issue 8 months ago • 36 comments

[!NOTE] Please don't ask to be assigned. Simply state what you plan to work on (and look in the comments to see what other have picked).

These are just suggestions. Some of them may not be better than what we have currently.

Also, material design 3 suggests that dialog headlines are optional, unlike "supporting text". I wasn't aware of this when I wrote these suggestions.

Main screen

  • [ ] Custom study
    • [ ] Replace the string "Increase today's review card limit" with "Increase today's review limit".

  • [ ] Deck options discard dialog:
    • Close/OK -> Keep editing/Discard.

Note editor

  • [ ] Create toolbar item/Edit toolbar item:
    • [ ] The name field should be required. One of the other two text fields should be required. Until these are filled, the "Create"/"Save" buttons should be disabled and a red warning should appear explaining what to do.
      • This is not yet done for the Edit toolbar item dialog.
    • [x] The text fields' labels should not overlap with the outlines. See reference image 3 below.
    • [ ] The Edit toolbar item dialog's title is bold and blue, unlike usual dialogs.
Done

Main screen

  • [x] Check database?: https://github.com/ankidroid/Anki-Android/pull/20530
    • [x] ~~Replace "OK" with a more useful string.~~
    • [x] Change the title to "Check database".
    • [x] Change the text to "This may take a long time. Proceed?"
  • [x] Check media?: https://github.com/ankidroid/Anki-Android/pull/20530
    • [x] Same as above.
  • [x] Delete unused media?
    • [x] Change "Ok" to "Delete".
  • [x] Tags added
    • [x] The title is "Tags added", but the description can be "0 notes updated.". I'm not sure what to would be best here, maybe "Tagging results"?
  • [x] What would you like to unbury?:
    • See reference image 2 below.
    • To find this dialog: make a deck with sibling burying enabled. Then add a basic card and a pair of basic & reversed cards to it. After that, study the deck, burying the basic card and answering on of the reversed cards. Finally, tap on the review counts in the main screen to get to the congratulations screen and then tap "unbury them".
    • [x] Make the title bigger.
    • [x] Remove the bold styling from the three options.

  • [x] Export: https://github.com/ankidroid/Anki-Android/pull/20530
    • [x] Replace "OK" with " Export".
    • [x] Add a title: "Export".

Settings -> Appearance

  • [x] Remove background?:
    • [x] Consider removing the "?" and adding text like "Are you sure you want to remove the background image?".

Template editor

  • [x] Restore to Default:
    • [x] Replace "OK" with "Restore".
    • [x] Change the title to sentence case.
  • [x] Browser appearance:
    • [x] Not really a dialog, but the border titles "Question Format" and "Answer Format" should be lower case.
  • [x] Restore Default Values?:
    • This is the dialog that appears when you tap the "loop" icon in the "Browser appearance" screen.
    • [x] Replace "OK" with "Restore".
    • [x] Add a title: "Restore to default".
    • [x] Change the text to "Are you sure you want to restore the browser appearance to default?".

Card browser

  • [x] Browser options:
    • [x] Replace "OK" with "Save".
  • [x] Reset card progress:
    • [x] Replace "OK" with "Reset".
  • [x] Find and replace:
    • [x] Replace "OK" with "Replace".
  • [x] Set due date:
    • [x] Consider adding text to the tab icons.
    • [x] Consider replacing "Help" by a question mark icon in the upper right corner like the "Reset card progress" dialog.
  • [x] Change note type:
    • [x] The tab text & icon should be colored blue to match the "Set due date" dialog.
    • [x] Choose better colors for cloze note types. The current colors are hard to read, especially in the dark theme (see reference image 1 below).

Note editor

  • [x] Tags:
    • [x] Replace "OK" with a more useful string. Maybe "Select" to match the "Select tags" dialog. Note: Used 'Confirm', 'Select' wasn't the right word to use IMO
  • [x] Add tag:
    • [x] Replace "OK" with "Add".
    • [x] Change the box's border text from "Tag name" to simply "Name".

Reference

Image

Image Image

ZornHadNoChoice avatar Mar 18 '26 12:03 ZornHadNoChoice

I'd like to work on the Check database, Check media, and Export dialog improvements. I'll open a PR for these.

Hammadtanveer avatar Mar 18 '26 18:03 Hammadtanveer

Hello, Could you please assign it to me?

Galal-20 avatar Mar 18 '26 20:03 Galal-20

Since Hammadtanveer took part of the issue, I think it's better if no one is assigned. Just state what you want to work on.

ZornHadNoChoice avatar Mar 18 '26 20:03 ZornHadNoChoice

I’d like to work on a few dialog improvements: • Note editor (Tags & Add tag dialogs): replace generic “OK” with clearer action labels (e.g., “Select”, “Add”) and update the tag input label to “Name”. • Settings → Appearance: improve the “Remove background” confirmation text for clarity. • Template editor: update the “Restore to default” dialog (button label to “Restore” and title to sentence case).

Galal-20 avatar Mar 18 '26 20:03 Galal-20

Hi, I’ve completed the Check database, Check media, and Export dialog improvements in PR #20514.

I’d like to work on some of the remaining dialog improvements, like the card browser dialogs (Save, Reset, Replace, Change) and the set due date dialog. Let me know if that’s okay

Hammadtanveer avatar Mar 18 '26 23:03 Hammadtanveer

Hello! @ZornHadNoChoice I’m interested in working on this issue and would like to contribute. Could you please assign it to me? I’ll start working on it right away. Thanks!

UdaybhanRaj-Dev avatar Mar 19 '26 02:03 UdaybhanRaj-Dev

Card Browser

Remove the radio buttons at the bottom. They're out of place and the browser will receive an overhaul in the future.

Leave them for now, it'll cause complaints, and we're hopefully doing the migration in 2.25

Set due date:

Replace "OK" with a more useful string. Maybe "Set"?

This doesn't seem better

Change note type:

Replace "OK" with "Change".

This doesn't seem better

@Haz3-jolt FYI for the others on change note types. Especially agreed on the cloze color in the dark theme, it probably doesn't pass accessibility

david-allison avatar Mar 19 '26 03:03 david-allison

Especially agreed on the cloze color in the dark theme, it probably doesn't pass accessibility

Most likely, also for the deck target dialog I added recently. But I would be more inclined to wait for a theme update rather than pilling more "fixes".

lukstbit avatar Mar 19 '26 04:03 lukstbit

Request to assign the issue I have implemented a comprehensive UI/UX modernization for Anki-Android by refactoring over 15 specific areas to align with Material Design 3 guidelines and reduce interface clutter. My changes include replacing generic 'OK' buttons with context-aware verbs like 'Export,' 'Restore,' and 'Replace' in the Deck Picker and Note Editor, as well as improving accessibility by updating Cloze note colors for better contrast in Dark Mode. I also streamlined the layout by removing redundant radio buttons and migrating 'Help" text to title-bar icons to maximize screen real estate. I have these changes fully tested and ready for a Pull Request. Please note that while I utilized AI solely to assist in generating the walkthrough.md documentation to clearly summarize the impact of my work, all code modifications across the Kotlin and XML files were performed entirely by me to ensure strict adherence to the project's authentic architectural style. You can find the detailed summary of my implementations here: walkthrough.md

Soumyajit-Chatterjee avatar Mar 19 '26 07:03 Soumyajit-Chatterjee

@UdaybhanRaj-Dev @Soumyajit-Chatterjee Thanks for your interest, but as you can see, two people decided to work on the issue first, and I said that's it's better not to assign anyone.

Also for @Soumyajit-Chatterjee, I believe AI usage is completely prohibited for new contributors, but regardless of that, you have worked on things already taken by others.

ZornHadNoChoice avatar Mar 19 '26 11:03 ZornHadNoChoice

@ZornHadNoChoice Thank you for the feedback. I completely understand and respect the policy regarding AI. I only used it to help summarize the documentation for the walkthrough, but I hear you clearly. I will keep all future contributions, including documentation, 100% manual to ensure full transparency.

My apologies for the overlap with other contributors. I was eager to show my familiarity with the Kotlin/XML codebase ahead of my GSoC proposal. I will look for unassigned issues or unique areas of the UI to contribute to instead. Best of luck to the others on this issue!

Soumyajit-Chatterjee avatar Mar 19 '26 11:03 Soumyajit-Chatterjee

Hello, I’ll work on improving the Card Browser dialogs (Save, Reset, Replace).

nourhanbakry avatar Mar 19 '26 13:03 nourhanbakry

Check the comments above first. I believe Hammadtanveer is working on those.

ZornHadNoChoice avatar Mar 19 '26 15:03 ZornHadNoChoice

I finished changing some parts and I saw your comment after I finished, so please let me review what I did. I worked on some of them, not all of them: Card Browser dialogs (Save, Reset, Replace).

nourhanbakry avatar Mar 19 '26 15:03 nourhanbakry

Card Browser

Remove the radio buttons at the bottom. They're out of place and the browser will receive an overhaul in the future.

Leave them for now, it'll cause complaints, and we're hopefully doing the migration in 2.25

Set due date:

Replace "OK" with a more useful string. Maybe "Set"?

This doesn't seem better

Change note type:

Replace "OK" with "Change".

This doesn't seem better

@Haz3-jolt FYI for the others on change note types. Especially agreed on the cloze color in the dark theme, it probably doesn't pass accessibility

I agree with the other changes, it's not super urgent but parity with set due date would look nice, as for the cloze color, I agree that it looks pretty unreadable on dark theme. I don't think we should replace OK with Change, it seems inconsequential.

Haz3-jolt avatar Mar 19 '26 16:03 Haz3-jolt

I believe this isn't done yet.

ZornHadNoChoice avatar Mar 21 '26 19:03 ZornHadNoChoice

Hello @ZornHadNoChoice , I’d like to work on a few additional dialog improvements (Set due date and Change note type). If no one else is currently working on them, I’ll start on this right away. Please confirm if that’s okay.

Galal-20 avatar Mar 22 '26 04:03 Galal-20

I see that you have another pull request. Normally, it'd be better to allow others to work on the issue, but I don't see anyone doing that, so go ahead!

ZornHadNoChoice avatar Mar 22 '26 10:03 ZornHadNoChoice

I would like to work on the following issue: Changing 'Restore to Default' to sentence case. Setting 'Question Format' and 'Answer Format' titles to lower case. For the 'Restore Default Values' dialog: I'll add the 'Restore to default' title and update the confirmation text as suggested. I've already got the project building locally, so I will have a PR ready for this soon.

K-Suruthi avatar Mar 22 '26 17:03 K-Suruthi

@K-Suruthi Some or all of those are handled:

  • https://github.com/ankidroid/Anki-Android/pull/20515

david-allison avatar Mar 22 '26 17:03 david-allison