useblocks / docusar-pub

Issue tracker for Docusar Frontend
0 stars 0 forks source link

Tree filter: open PDF node on label click #2

Closed ubmarco closed 2 years ago

ubmarco commented 2 years ago

User feedback:

Als ich das erste mal gesucht hatte, zeigt er in der Baumansicht ja nur bis zur 2. Ebene an. Da klicke ich dann drauf, und wundere mich 3 min, warum alle meine Treffer immer nur zur Titelseite führen. Dann hatte ich irgendwann verstanden, dass ich die Hierarchie darunter aufklappen muss, um direkt zur Trefferseite zu kommen. Um diese Idioten abzufangen, ggfs. automatisch die Hierachie darunter aufklappen, wenn man auf den Titel mit passenden Suchtreffer klickt? Oder einmalig ein Popup zur Nutzung.

On clicking a file tree node, the file should open and the tree node should expand to make search results visible to users. That should also happen when not in filter mode because the user wants to see PDF contents on open to navigate. When clicking on the expand icon, the file should however not open in both cases.

ubmarco commented 2 years ago

Implemented as requested. One thing to note: clicking on labels only opens the nodes but never closes them. Seems better to me from UI perspective. On open nodes the label click would otherwise have 2 actions (jump to target in PDF and collapse) which I assume is unwanted. Users can still close nodes using the expand icon next to the node or with keyboard navigation.