-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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(card-template-editor): Add Restore to Default feature #17461
Conversation
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.
Looks great!
A few stylistic nitpicks I'd like sorting, primarily the comparison/documentation of != 0
, as the functionality is not obvious to a reader
Could you add a few @NeedsTest
annotations so we can get around to this in future
8f4488a
to
4278dda
Compare
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.
I am copy pasting it from discord ->
imo a rln b/w list index and enum can work or maybe create a temp model for future ref though the current approach will break for sure in case new kinds are added
plus the serialization fragility ig
4278dda
to
26d851e
Compare
I don't understand what you mean, but thanks anyway 😁 |
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.
Works well. Thanks!
Hello @david-allison. Sorry for the ping, but I have addressed your requests. Will you take a look at this, please? |
Please don't apologize, this shouldn't have sat for so long |
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.
Sorry this sat for so long!
Couple of questions, code quality is great!
26d851e
to
6dcad29
Compare
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.
Cheers!
Fixes
Approach
Implemented these methods
https://github.com/ankitects/anki/blob/3c20b49ccac4da63a85bf65b89af845d1f4851fb/pylib/anki/stdmodels.py#L23-L59
Then made the equivalent dialogs
How Has This Been Tested?
1.webm
2.webm
Learning (optional, can help others)
Describe the research stage
Links to blog posts, patterns, libraries or addons used to solve this problem
Checklist
Please, go through these checks before submitting the PR.