treehousedev / treehouse

https://treehouse.sh
MIT License
150 stars 13 forks source link

Bulk actions (cut, copy, delete) #30

Open taramk opened 1 year ago

taramk commented 1 year ago

I can sometimes highlight multiple nodes to select them (to bulk delete) if I drag from the top rather than the bottom, but hitting delete on the keyboard does not delete them.

progrium commented 1 year ago

This is two things: multi selection and multi operation. I don't exactly know how to do click+drag multi selection yet. Text showing as selected is totally separate. I do know how to let you do something like shift click for selecting multiple nodes. But also might want to consider how multi selection would work on mobile. Luckily delete is a simple multi operation, so it's a good first case.

taramk commented 1 year ago

For highlight color, I suggest our teal (0193B3) at 30% opacity. It's the most visible without being too obtrusive on light/medium/dark backgrounds. For now it should just be a static value, maybe later it can be a theme variable.

Image https://www.figma.com/file/bGzEZo0NYHhWGJO95kwF3p/Treehouse-App?type=design&node-id=426%3A5624&mode=design&t=Yo9VmF4v4sMvd8dh-1