GitHub user eugenegujing added a comment to the discussion: Show several 
operators' results at once: a tab per result, and a preview on hover

I prefer tabs, and I think they could work like browser tabs. Clicking an 
operator opens its result as a tab at the bottom of the panel (or switches to 
it if it's already open), the tab stays until you close it, and selecting a tab 
highlights its operator on the canvas. This stays close to how the panel works 
today, where you click an operator to see its result, except the result no 
longer goes away when you click somewhere else. The tab bar then only holds the 
results the user actually opened, rather than one tab for every kept result 
after each run.

To keep tabs from piling up while someone clicks around to edit operators, a 
single click could open a preview tab that the next click replaces (like VS 
Code), and the tab becomes permanent once you double-click the operator or 
interact with the tab. That way a quick look doesn't leave anything behind 
either.

For comparing results, I'd add a split view on top of the tabs, like Chrome's 
split view or VS Code's split editor. Dragging a tab to one side of the panel 
shows the two results side by side, with both operators highlighted on the 
canvas. The panel still shows one full-width result by default, so the split 
only takes space when someone asks for it. This could come as a follow-up once 
tabs are in, and later it could go up to three or more tabs side by side in one 
panel, to follow the data through three or more steps of a workflow.

I'm not in favor of hover previews. A hover isn't faster than a click, since 
moving the pointer to the operator takes the same time either way, and a hover 
then needs a delay (about 0.5s, as suggested above) so it doesn't fire during 
dragging or linking. The preview also disappears once the pointer leaves, so 
keeping it for comparison means pinning it. Pinning is still a click, just with 
more steps in front of it. You hover over the operator, wait for the card, move 
to the pin button, and then click. Clicking the operator gets you there in one 
step. Hover only saves anything for a quick look, and clicking the operator 
covers that too. Hover also doesn't work on touchscreens.

GitHub link: 
https://github.com/apache/texera/discussions/8842#discussioncomment-18782713

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to