-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Make the "True Retention" table pretty #3640
Conversation
Maybe show Count in white (black for light mode), not in gray? |
I cannot get the checks to pass because the formatter is choking on my I tried updating prettier in "prettier": "^3.4.2",
"prettier-plugin-svelte": "^3.3.2", Running Creating a I'm afraid I don't understand your build system well enough to get it working. |
@Luc-Mcgrady can you help? |
From a little more digging found out about dprint I think it is using its own version of prettier and ignoring what is in This is unfortunate because they have not released a new version of the prettier plugin for quite a while now (from months before the Svelte 5 release). I guess the only thing I could do is run prettier manually and then override the check by excluding my |
@rbrownwsws The simplest solution is probably to avoid using |
It is shown when you select "all history" at the top of the Stats screen: I just forgot to click "all history" again after changing to the Light theme for the screenshots. |
That would be sad. At some point @dae might want to consider moving away from dprint. |
50d6c2b
to
8e159d5
Compare
8e159d5
to
e3bea18
Compare
Yay! Checks pass. 🎉 |
Thanks for looking into this Ross! I went down the rabbit hole of updating the prettier plugin and ran out of time 😅 I'll circle back to a review of this tomorrow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Ross! I think both the UI and your code look good, and the UI works well on a phone screen. Just a few minor tweaks to request:
Thank you! 🚀 |
This is an attempt to make the "True Retention" table in the Stats screen prettier.
Based on the dissucssion in the forum here:
https://forums.ankiweb.net/t/lets-make-the-true-retention-table-look-better/53084
N.B. At the moment this PR still contains the vestigial remains of the Young/Mature/All/Summary variant seen here:
I've just removed the radio button for the extra table at the moment.
We may want to fully remove this and tidy the code up a bit if you are happy with the design.
I think these design related questions need to be discussed before considering merging:
As a specific thing when reviewing the code:
Have I added the new translation strings correctly? It seems to work, but I have not done it before in Anki.