-
Notifications
You must be signed in to change notification settings - Fork 568
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
Fix: Add selected tag to new notes by default #2556
Conversation
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.
Pretty straight-forward code. You know me: I don't like let
or mutation so I left a comment about removing it but the logic looks good. 👍
@dmsnell I appreciate the review but there's a major bug with this as noted in the TODO, which is why it was still set to draft. Do you know what I need to pass to get it to work with a tag with special characters in its name? |
since we're writing the tags into the
|
I haven't debugged it deeply yet, but the note shows up with an empty tag pill. |
This seems to be all working now. I've updated to get the |
we need to rebase this against the latest |
@dmsnell ah yes you're right. I was going to rebase before I merged. I forgot that change would impact this. I'll work on that now. |
a455402
to
239f389
Compare
Thanks again @dmsnell for that catch. All updated again now. |
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.
there's nothing I see worth pointing out; it's a clean solution
for testing, did you verify that the added tag is the name of the tag as pulled from the tag bucket, not the tag hash, not a trivial transformation from the tag hash to an unhashed version of the tag? (for example, does it properly at Tag
if Tag
is opened, because tag
is the tag hash there).
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.
Thanks @dmsnell! The |
Thanks @codebykat! I didn't notice that at all. I've got it updated now so that it displays the note list with the selected tag properly. |
This is my PR so I can't approve it, but this is an approval! It's testing great for me now. |
…iew in the note list
e10517f
to
c856a59
Compare
Fix
Fixes #2423
If you are on a selected tag and choose to add a new note, the new note will now automatically get that tag added to it.
Test
Release
Fix: Apply selected tag to a new note by default