evolvedbinary / fusion-studio-extension

Fusion Studio is a Theia IDE extension for FusionDB
GNU General Public License v3.0
4 stars 5 forks source link

master issue tree expansion woes: #513

Open duncdrum opened 3 years ago

duncdrum commented 3 years ago

There are a number of problems / bugs with the tree view of this extension. Not all of these are probably related by the same underlying technical or code issue, but i think its a good idea to start collecting them in a central place.

  1. GUI expansion click vs double-click A double-click should not trigger click expansion. The UI should be able to clearly distinguish between the two events. Needs tests. Also not that double-click for properties does not apply to other tree items, only the root server connection entry, i suggest only showing properties on right-click for the whole tree.

https://user-images.githubusercontent.com/6205362/133255911-dbf1f5b9-c6b6-4ba3-91f2-e7954926ab09.mov

  1. Tree expansion consistency seems to work but needs tests for different api endpoints. I.e. the last expansion is recalled when collapsing and expanding ancestor items.

https://user-images.githubusercontent.com/6205362/133258787-5959bda4-cdd4-453e-81d0-3dc2e017e21c.mov

  1. Missing UI indicators for expand/collapse

see VSC, no reason to use visual clues to inform users of what is what. Probably better for accessibilty as well.

Screenshot 2021-09-14 at 14 43 22

  1. DOM is not nested having a flat html representation of the tree items is very counter-intuitive, it will also not play nicely with other theia vsc extensions, which all expect nested trees to be nested html.

see #411 this html fragment Screenshot 2021-09-14 at 15 04 32

to the 4 entries Servers, localhost, db, Security Screenshot 2021-09-14 at 15 06 10

  1. Insta collapse when creating a new connection

https://user-images.githubusercontent.com/6205362/133262379-ba79d5b7-e6db-446e-b6ff-ec3cf61e7a5a.mov

duncdrum commented 3 years ago

see #413

ccheraa commented 2 years ago

The missing indicators problem is tracked down to PR #472, I still don't know how exactly that PR affected the indicators. Interestingly, when you open a document from the tree, the indicators are back again.