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

Improve the Review forgotten cards dialog

Open ZornHadNoChoice opened this issue 8 months ago • 19 comments

The Review forgotten cards dialog

Image

  • [ ] Add a title "Review forgotten cards".
  • [ ] Remove "x days" from the description.
  • [ ] Add a unit "day"/"days" to the box.
    • I decided against input steppers since this input isn't a saved setting. It also allows to add the unit more organically.
  • [ ] Replace "OK" with "Create".
  • [ ] If the resulting filtered deck is empty (i.e., no cards match the criteria), a red warning should appear and the button should be disabled, instead of an error dialog (see reference).
  • [ ] Show a warning when the input is invalid, limit the digits, and prevent leading zeros, like in https://github.com/ankidroid/Anki-Android/pull/20520, except without input steppers.

Reference dialogs

Image

Image

ZornHadNoChoice avatar Mar 26 '26 12:03 ZornHadNoChoice

I suggest we remove the first two dialogs: ... Preview new cards

Not yet (yes; the dialogs are bad, but IMO we should handle this in the "congrats screen" from Anki Desktop):

  • The first two dialogs are directly from Anki Desktop
  • We do not currently expose 'Deck options' well enough for new users to know that they exist
  • This dialog is opened on various 'custom study' options where a user expects this option to hear
  • Users will revolt, we went through hell when we moved the 'random study' option here to match upstream.
Image

I'd recommend further splitting this into more 'Good first issues'.

Good first issues are GREAT if they're limited in scope: small PRs get merged quickly. Larger PRs mean if there's 1 issue, it slows down the process.

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

Users will revolt

Once again, analytics would be quite useful, but I doubt that anyone actually uses those three options.

ZornHadNoChoice avatar Mar 26 '26 17:03 ZornHadNoChoice

Analytics would be quite useful

On the way:

  • https://github.com/criticalAY/google-analytics-kt
Image

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

Hi, I’m interested in working on this issue. Could you please assign it to me?

nourhanbakry avatar Mar 26 '26 17:03 nourhanbakry

Hi, I am Revathi, a beginner contributor.

I am interested in working on this issue. Could you please guide me on how to start and which part of the code I should look at?

Thank you!

TRevathi13 avatar Mar 30 '26 12:03 TRevathi13

There is already someone working on it. I can't help you with contributing as I'm not a developer, but you should read https://github.com/ankidroid/Anki-Android/blob/77c6cc56299b03eed53ca71e0c90c1cb26cdca2d/CONTRIBUTING.md.

ZornHadNoChoice avatar Mar 30 '26 12:03 ZornHadNoChoice

Hello, if no one is assigned to this and working on it, may I tackle this?

defkorean avatar Apr 09 '26 10:04 defkorean

I have a question, I notice that there are similar tasks here and in #20600

  • [ ] If the resulting filtered deck is empty (i.e., no cards match the criteria), a red warning should appear and the button should be disabled, instead of an error dialog (see reference).
  • [ ] - [ ] Show a warning when the input is invalid, limit the digits, and prevent leading zeros, like in https://github.com/ankidroid/Anki-Android/pull/20520, except without input steppers.

For the sake of code reusability, shouldn't I or whoever is assigned to this write code that would address these two tasks to avoid redundancy?

defkorean avatar Apr 09 '26 17:04 defkorean

These were initially one big issue, but I split them up as David suggested. Do you think I should extract that part into its own issue?

ZornHadNoChoice avatar Apr 09 '26 17:04 ZornHadNoChoice

For now, I think can wait on #20678 to be looked at then go from there. The error handling for both these dialogs are functionally the same, so I just thought it would have been redundant to write similar code when the differences are minimal.

defkorean avatar Apr 09 '26 17:04 defkorean

@defkorean Hi, just wanted to let you know that #20678 has been closed.

ZornHadNoChoice avatar Jun 26 '26 17:06 ZornHadNoChoice

Got it, will this issue be completed once all tasks are addressed or just the first four?

defkorean avatar Jun 28 '26 03:06 defkorean

All of them, but you can do just the first four if you want.

ZornHadNoChoice avatar Jun 28 '26 07:06 ZornHadNoChoice

Hello, apologies for the lack of activity. I saw that #20678 was reopened but I'm hoping to get a pull request in sometime this week to address those first four tasks.

defkorean avatar Jul 13 '26 21:07 defkorean

Hi, I am first time contributor. If no one is working on this and if no active PR. Can I be assigned on this task?

manoj5047 avatar Sep 20 '26 15:09 manoj5047

Sure! Do look into the previously closed PR, if you can use this as a useful base, it would likely save you some time.

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

Please note our AI Policy: https://github.com/ankidroid/Anki-Android/blob/main/AI_POLICY.md

david-allison avatar Sep 20 '26 15:09 david-allison

Thanks! I'd like to implement this from scratch off main to get familiar with the codebase, but I'll reference the previous PR for context.

manoj5047 avatar Sep 20 '26 15:09 manoj5047

Hello, I'm looking for my first open source contribution ! Since there haven't been any updates for over a month, could you please assign it to me?

LucWaw avatar Oct 22 '26 00:10 LucWaw

Cheers!

david-allison avatar Oct 22 '26 00:10 david-allison