-
Notifications
You must be signed in to change notification settings - Fork 560
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
When there are no notes suggest creating one #2422
Conversation
Looks pretty good at first glance @belcherj, I like this type of suggestion/tip on search. I'm not 100% familiar with y'all's color palette in light vs. dark mode, so I'll leave that to @SylvesterWilmott , but the messaging and placement makes sense to me. A couple of suggestions — both very minor, subjective, and to be taken with a grain of salt:
Obviously very minor things, and if established rules should negate either, feel free to bypass 😄 |
@iamthomasbishop I made the text smaller and added padding between the button and the text. |
@belcherj nice, thanks! Is it just my eyes, or is the blue color being used for the icons in the top toolbar different from the button text below in dark mode? Light mode seems about right but it's hard to tell for sure. Screenshot: |
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.
Code looks good, tests good. 👍
We definitely need to focus the text within the editor after creating the new note, so you can create a new note and immediately continue typing.
Also, should we consider clearing the search query after the new note is created? Right now you end up here, which is kind of a lot of highlighting:
That is correct, the label size here should 14px based on the design found in Zeplin. @belcherj can we make sure we update this? |
Done |
Fix
When a user does not have any notes suggest adding a new note. Additionally, if a user types a search term that does not match any notes suggest creating a new not with that query.
This also fixes a bug where if you have no notes "Notes Loading" neve disappears.
Test
Release
Suggest creating a new note when none exists or notes match search query.