-
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
Hide default deck when empty #3492
Conversation
Just voicing my opinion on this, I think it would be nicer to have a CTA like "Add a Deck" instead of "No Decks". There are the buttons on bottom saying the same, but IMO "No Decks" is a bit uninformative. Still looks great! |
The deck list is shared by all clients, so any CTA needs to be worded in a client-agnostic way, like "Add a deck to get started" |
Co-authored-by: Damien Elmes <[email protected]>
This involved a few more UI tweaks than I was hoping for at the moment. There's plenty of room for improvement here still, but I don't think we should be tackling much on the UI end until we can get migrated over to shared Svelte code. In the mean time, some suggestions for simplifying this a bit: Automatically opening the add deck dialog doesn't teach the user how to add a deck so they know how to add a second one in the future. It also doesn't teach them what a deck is, or what a good name would be. And the CTA pushes the user towards adding an empty deck, when the majority of users will be starting out with a shared deck instead. Instead, I think we should:
WDYT? |
@@ -242,6 +227,26 @@ impl From<DeckTreeNode> for LegacyDueCounts { | |||
} | |||
} | |||
|
|||
fn hide_default_deck(node: &mut DeckTreeNode) { | |||
let mut idx = 0; | |||
while idx < node.children.len() { |
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.
Iterating over list indices is not very idiomatic in Rust. You should just loop over &mut node.children instead
These statements conflict on the strategy we want to take. As a user I would find it more convenient to be given the chance to name the deck what I want, but we could also simply tell them to create/import a deck first. |
My suggested CTA is intended to nudge the users towards the buttons at the bottom. My thinking was that if user instead clicks Add on top thinking that's what they need to do, they probably don't want to be thinking about a deck name. But instead of automatically adding one, simply repeating the CTA in a pop-up so the user must find the buttons could work too. |
What do you think? |
Will open this in the future if I find more time. |
Closes #3334
Changes
I have yet to implement the proper translation for the "No Decks," popup, wanted to first get a pulse check if this was still the direction we wanted to go with this.
I have a few additional items I would like to add that weren't specifically mentioned: