-
-
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(new reviewer): type in the answer (native) #17647
Conversation
0ae2f0f
to
42188e4
Compare
2ad64d1
to
2776678
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.
Wow - just casually dropping this in the PR queue 🔥
I'll re-read the densest commits at least one more time but nothing stood out on the first tread and I'd prefer to move faster rather than slower as it's still gated behind a dev preference and we're early in an alpha cycle anyway, so +1 in general for "let's go, faster rather than slower" as a personal opinion on review+merge
Thanks @BrayanDSO !
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.
Note: code review only, not tested physically. Treat this as an approve
This is excellent, thank you!
Nothing blocking. I feel Field
would simplify this even further, but fully 'implementer's choice'.
- I did this on refactor(libanki): extract & document 'Field/Fields' #17649, blocked on this
AnkiDroid/src/main/java/com/ichi2/anki/servicelayer/LanguageHintService.kt
Show resolved
Hide resolved
AnkiDroid/src/main/java/com/ichi2/anki/ui/windows/reviewer/ReviewerFragment.kt
Outdated
Show resolved
Hide resolved
AnkiDroid/src/main/java/com/ichi2/anki/ui/windows/reviewer/ReviewerFragment.kt
Outdated
Show resolved
Hide resolved
AnkiDroid/src/main/java/com/ichi2/anki/ui/windows/reviewer/ReviewerFragment.kt
Outdated
Show resolved
Hide resolved
2776678
to
d146c2a
Compare
Original PR and motivation: ankitects/anki#3422 (comment) Diff: https://github.com/ankitects/anki/pull/3422/files#diff-7c3df145bba194e3cdb8114cb4bd77c03e431c29c82a7620b4f4df599cd4b450 The implementation is also being refactored into a class to better handle all of the different details around type in answer, e.g. combining, expected answer and language hint
to CardView.ViewerStyle made by the IDE
separated from the next commit to ease the reviewing process
d146c2a
to
648e8c3
Compare
They were initially used because of the WIP nature of the reviewer, so they would be able to handle any design decisions Now that most of the reviewer is implemented, I don't see a need for using ConstraintLayouts anymore, so I am replacing them with LinearLayouts LinearLayouts are simpler to deal with, have less boilerplate, and make easier to preview changes. They also render faster
same rationale of the previous commit
648e8c3
to
c7aa834
Compare
Let's go! 🚂 |
Purpose / Description
Implements type in the answer cards in the new reviewer natively. I don't know when/if I will implement the HTML version
Fixes
Approach
In the commits
How Has This Been Tested?
Emulator 34
ok.mp4
aaa.mp4
Learning (optional, can help others)
I should learn more about Android MVVM and flow, specially to better handle configuration changes. Also,
ReviewerFragment
is getting big. Not sure if I can split some of it into other files, or if I should. The reviewer does a lot of things anywayChecklist
Please, go through these checks before submitting the PR.