Skip to content

Showing Badge for Blank Card Fronts in Previewer, Continued#18161

Closed
ericli3690 wants to merge 1 commit intoankidroid:mainfrom
ericli3690:ericli3690-empty-front-badge-feature
Closed

Showing Badge for Blank Card Fronts in Previewer, Continued#18161
ericli3690 wants to merge 1 commit intoankidroid:mainfrom
ericli3690:ericli3690-empty-front-badge-feature

Conversation

@ericli3690
Copy link
Member

Continues PR #18147

Apologies for the inconvenience -- I accidentally closed the old PR while cleaning up my git history to be in line with the stated merge requirements. Having this in a new, separate PR is a bit annoying but I can't seem to reopen the old PR. I'll try not to let this happen again in the future.

This is rebased to main and is on a separate branch, eliminating the annoying "merge: ..." commit and putting everything into a single commit. I've implemented the suggestions from @BrayanDSO. The horizontal offset is now -4.

My tests show this code should work. Once it's merged, I'll create an issue on the upstream Anki repository to add a backend function so we can get rid of the string-matching hack in the future.

Please let me know if there are any other changes I should make and I'll be happy to correct them.

Added code in TemplatePreviewerViewModel to compute whether cards have empty fronts, and added warning badges to previewer tabs in TemplatePreviewerPage accordingly
@ericli3690 ericli3690 closed this Mar 25, 2025
@ericli3690
Copy link
Member Author

Whoops, I found the button to reopen a PR. Please ignore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant