-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
feat: action bar on selected blocks #11763
base: feat/db
Are you sure you want to change the base?
Conversation
New UI component: ButtonGroup.
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.
batch set property not working properly.
- select 2 blocks
- click 'set property', select a 'icon'
- only the first block has the icon
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.
After selecting multiple blocks using 'shift+', the action bar does not appear
@tiensonqin A couple of bugs I'm seeing:
Let me know when I should take another look. Also, is there a way to unset a property for selected rows or does that come later? |
It's intentional not to show an action bar with keyboard shortcuts (mod+up/down) because it's distracting and showing an action bar will prevent any further actions in our current implementation (using radix UI).
I can't reproduce those two bugs, can you provide some reproduce steps? Thanks.
Cutting from any table will delete the blocks, we can tweak the behavior to remove the current property from the selected blocks if you think that's expected.
No, it's a bug, I'll push a fix soon. |
@logseq-cldwalker Thanks for the videos and reproducing steps!
I updated the behavior to show action bar after selecting blocks with keyboard (shift+up/down), it'll be hidden if there's any further action such as selecting more blocks or using arrows for navigation. I didn't enable action bar after pressing
Fixed.
I still can't reproduce this one.
Fixed.
Agreed. The added properties are not displayed because only predefined properties are displayed for tags and properties (al properties are shown for query results), showing all properties requires loading all the rows, which may affect the view performance a lot. I plan to revisit this after #11774.
I updated |
@RCmerci The above two bugs are fixed. |
This one should be fixed by 170edfb. |
Thanks!
Thanks for fixing most of these. I'm still seeing :default :many and :url :many as not able to batch set - https://www.loom.com/share/db31921682df4049a0cce97aa1cfadd6. Fwiw I just use the properties example graph to test all these property combinations
Good to know we're still thinking about this. If it's not happening soon, it would be helpful to just display a notification e.g.
Good to know. Thanks for the change for now
I haven't seen this so I think it's fixed I'm not sure if this is a bug: when I copy on a batch of nodes that include pages, only the blocks get copied - https://www.loom.com/share/941d8989061646908b5dea6a054418ed . If copy can't handle pages maybe it would be helpful to add export edn at some point since it can handle any block type. Happy to do this after the PR if desired Just this question and the bugs on :url :many and :default :many left |
@logseq-cldwalker I've fixed all the issues mentioned above.
Page titles will be copied. |
Confirmed copy bug and most property types fixed. Thanks for adding the notification when updating from the table. Two bugs I'm seeing:
The 2nd bug is tricky because the :many dropdown almost seems in conflict with the data model i.e. we want each property value to be unique but in a batch context we want to pretend like they are the same value. The ui could just display one unique text value and then on delete, delete all the properties with that text value. That would mostly work but could be surprising if two property values have the same content "foo" but different properties, tags or block children. Maybe we leave those edge cases to be handled later |
I'd missed the whole comment on unsetting. I'll be sure to mention removing properties is found in property values in the docs. One idea for making a universal |
Can you record a video? I'm not able to reproduce this one.
Indeed, there are also some cases where it makes sense to set the same block as the property value for multiple blocks. Let's resolve those edge cases when we have more feedback from users.
I added |
This PR introduces a new action bar for selected blocks, it also works on table view.