Skip to content
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

[DRAFT] feat: use backend to render browser columns #41

Closed

Conversation

david-allison
Copy link
Owner

@david-allison david-allison commented Jun 17, 2024

Blocked on the parent PR

Seeking feedback on:

  • How to make this more reviewable
  • General functionality
    • I'm still not happy with the render speed when dragging the scrollbar
    • This is probably fixed in the new backend

  • Bug in the RecyclerView 'fast scroll': https://issuetracker.google.com/issues/64729576 - too short if there are a large number of rows
  • Fast scroll is not a consistent height
  • Bug in the title: number of cards/notes not updated
  • card_browser_show_media_filenames probably wants to be removed?
  • Not a bug: Flag colors are not set in 'notes' mode
    • This matches Anki Desktop, but I spent time debugging it

* Moves save/load into CardBrowserColumn
* Use the enum values, rather than the indices

Prep for Issue 11889
Breaking!
Updates the default columns from:

* QUESTION, ANSWER
to
* Cards: [Sort Field, Card Type, Due, Deck]
* Notes: [Sort Field, Note Type, Card Type/Type Count, Tags]

----

improvements:
* Support different columns for CARDS and NOTES mode
* Support more than 2 columns (not yet usable in the UI)

deprecates + upgrades shared prefs:
* "cardBrowserColumn1" - index into `COLUMN1_KEYS`
* "cardBrowserColumn2" - index into `COLUMN2_KEYS`

now (shared prefs):

* "activeCols" -> `|` separated list of column keys
* "activeNoteCols" -> `|` separated list of column keys

Prep for Issue 11889
For use in browserRowForId

Prep for Issue 11889
removes strings:
* browser_column1_headings
* browser_column2_headings

Prep for Issue 11889
unnecessary logging from logs of 'setColumn[1/2]'
@david-allison david-allison force-pushed the card-browser-rewrite-3 branch 2 times, most recently from ae0414c to 8febcc7 Compare June 17, 2024 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant