The GitHub Actions job "Required Checks" on 
texera.git/gh-readonly-queue/main/pr-9063-cc1f201596936a12e79f6243cdc38bef3f73c767
 has succeeded.
Run started by GitHub user aglinxinyuan (triggered by aglinxinyuan).

Head commit for run:
448deadba420875cdf825a68cbe816bf3aa15c7b / Kary Zheng 
<[email protected]>
feat(frontend): pin an operator's result beside it, with a tab per output port 
(#9063)

### What changes were proposed in this PR?

The hover card gets a Pin button. Pinning turns it into a window beside
the operator with the whole result table, tied to the operator by a
dashed line. Several windows can be open at once; each can be dragged
and resized, and follows its operator when it or the canvas moves.

An operator with more than one output gets a tab per output port in its
window. The first port is the one the running execution reports on.
Another port is read when its tab is shown, through the port-aware
result service from #9054, and pages by the row count its replies carry.
The execution reports a change only for the first port, so another port
is read again as results arrive, at most once a second, and once more
when the operator completes. If the chosen output is removed, the window
shows the last one that is left. The table in a window fills the window:
it measures the space its search bar, header, statistics row and pager
take, and fits as many rows as are left. It shows its statistics row
only when a column has statistics, which another port never has.

<img width="1316" height="907" alt="pr3-2-pinned-output-1"
src="https://github.com/user-attachments/assets/788964bb-14bd-4a35-853d-6e2743ab0ae9";
/>

<img width="1447" height="840" alt="pr3-3-pinned-output-2"
src="https://github.com/user-attachments/assets/e6495a79-c117-488c-8434-41da58e42914";
/>

### Any related issues, documentation, discussions?

Closes #9062. Part of #9052. Design discussed in #8842.

### How was this PR tested?

A new spec for the pinned window covers its port tabs, the port it shows
and the height it hands the table. New cases in the result table's spec
cover filling a given height, the statistics row, and refreshing a port
past the first. New cases in the editor's spec cover pinning, unpinning,
unpinning a deleted operator's window, the window's position as the
canvas moves, and the connector line on each side. The affected frontend
specs pass. In the running app, a Split of 20 rows into 13 and 7 shows
the first output's 13 rows in its first tab and the other 7 in its
second, each paged correctly, and the pager ends near the window's
bottom edge at any window size. A window pinned on a Split's second
output during a run shows its rows when the run ends, and shows the new
rows after a re-run.

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Claude Opus 5.5)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>

Report URL: https://github.com/apache/texera/actions/runs/43174323334

With regards,
GitHub Actions via GitBox

Reply via email to