key4hep / eede

EDM4hep Event Data Explorer
https://key4hep.github.io/eede/
BSD 2-Clause "Simplified" License
3 stars 4 forks source link

Switch events without reload #37 + auto event select #34 #38

Closed brauliorivas closed 2 months ago

brauliorivas commented 2 months ago

BEGINRELEASENOTES

ENDRELEASENOTES

github-actions[bot] commented 2 months ago

PR Preview Action v1.4.7 :---: Preview removed because the pull request was closed. 2024-06-28 14:03 UTC

tmadlener commented 2 months ago

Very nice.

I observed the following issue: If I switch events very quickly in the tree view, I can trigger a mis-render, where I think what is happening is that the symbols from one event are overlaid onto another event. Or maybe the symbols of the current event are drawn twice but once out of position (see screenshot on the left) image

And then I would also have an additional feature request (which might already solve the first one). Instead of having the lef-right arrows for the event selection in the tree view, I think I would also like a drop-down menu there. Or if both options are possible simultaneously, e.g. by having the arrows for switching, and if I click on the event itself I get a dropdown menu to select.

brauliorivas commented 2 months ago

And then I would also have an additional feature request (which might already solve the first one). Instead of having the lef-right arrows for the event selection in the tree view, I think I would also like a drop-down menu there. Or if both options are possible simultaneously, e.g. by having the arrows for switching, and if I click on the event itself I get a dropdown menu to select.

I didn't specify it, but indeed there is a dropdown menu. If you click over the event number, then you can see the available events and choose between them (so both options are present, arrows + menu). demo-event-switch

tmadlener commented 2 months ago

Huh, I didn't see that (or didn't figure it out at least). Very nice then. I am wondering whether it could be made a bit more obvious that this is clickable and will give you a list to select from.

kjvbrt commented 2 months ago

This is nice :)

tmadlener commented 2 months ago

More comments from the meeting:

brauliorivas commented 2 months ago

be made a bit more obvious that this is clickable and will give you a list to select from.

Can you unify the font sizes in the "menus"? It looks to me that the font size of the event switcher is a bit larger

What happens with the dropdown if there is many events to select from? Is there any scrollbar?

tmadlener commented 2 months ago

Very nice work on the visuals. I like it.

If we cannot change the drawing easily, can we put a loading ... or drawing ... on the screen, or maybe simply make the arrows / event selection unclickable until it's done? Otherwise we keep it as it is at the moment and open an issue to keep track of it.

brauliorivas commented 2 months ago

Otherwise we keep it as it is at the moment and open an issue to keep track of it.

Yeah, I would prefer to open an issue and not lose this. I know how to fix it, but I would have to incorporate a lot of "boilerplate" async code. However, drawing functions may change (making these changes in vain), so right I wouldn't worry about it too much.

kjvbrt commented 2 months ago

Would it be possible to keep window in the position from the previous event?

* [ ]  Done!

The position is still reset for me (to x: 0, y: middle). I'm on latest Firefox in Fedora 40.

kjvbrt commented 2 months ago

Can you also harmonize shades of grey in the "menus"? I found three different ones :)

image

brauliorivas commented 2 months ago

The position is still reset for me (to x: 0, y: middle). I'm on latest Firefox in Fedora 40.

Could you please try "hard" reloading the website (maybe ctrl + r)? I think it's cached because it works for me both in the preview and on firefox 126.0.1.

brauliorivas commented 2 months ago

Can you also harmonize shades of grey in the "menus"? I found three different ones :)

Of course! image

kjvbrt commented 2 months ago

The position is still reset for me (to x: 0, y: middle). I'm on latest Firefox in Fedora 40.

Could you please try "hard" reloading the website (maybe ctrl + r)? I think it's cached because it works for me both in the preview and on firefox 126.0.1.

Still does not work, but let's merge this PR and see. If it does not work I will create issue...