Repository navigation
feat(frontend): keep only the console in the bottom panel - #9060
Conversation
The default height went from 300 to 500 while the docked offset stayed at -300px, so a panel that had never been moved, and every press of the dock button, left 200px of it below the window. The offset now comes from the same constant. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every external output port of an operator that keeps its result is stored, but results were only ever read from the first port, so a Split's second output or an If's True branch could not be shown. A pagination request can now name the output port to read, with the first port as the default, and the reply carries the port it read and that port's row count. The live result updates keep following the first port, so a client paging another port takes the count from the reply. The result store's count per operator now comes from the first port too; it was built from every stored port, so a terminal Split's second output could replace its first output's count. On the frontend, the result service gives each extra port its own pagination service, which names its port in its requests, keeps no page cache and takes its row count from each reply, and every port's service takes its schema only from replies to its own requests. The result table and its row detail can show any port. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
29221cd to
8ef2a74
Compare
Switching the table to another output port left the previous port's rows on screen when the new port was empty, with the loading state never ending, and a late reply for the previous port could replace the new port's rows. A port change now starts from an empty table, a reply for an operator or port no longer shown is dropped, and an empty page ends the loading. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…canvas Resting the pointer on an operator for half a second shows a card beside it with the operator's first rows and its size, or its error, or how to keep a result the run did not keep. A pointer passing over, dragging, or a click opens nothing, and the card lingers a moment so the pointer can move into it. An operator with several outputs says the rows are the first output's. The preview can be turned off under Layers, and stays off while the heat-map overlay is on. The first rows come from a request of their own, so a preview never moves the result table's page or reads its cache. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tput port Pinning the hover card opens a window beside the operator with its whole result table, tied to it by a dashed line. Several windows can be open at once; each can be dragged and resized, and follows its operator when the operator 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 through the port-aware result service when its tab is shown. The table in a window measures what it draws around its rows, the search bar, header, statistics and pager, and fits as many rows as the rest of the window allows, so the pager sits near the window's bottom at any size. The bottom panel keeps its own rule. The statistics row shows only when a column has statistics, which a port past the first never has. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The default height went from 300 to 500 while the docked offset stayed at -300px, so a panel that had never been moved, and every press of the dock button, left 200px of it below the window. The offset now comes from the same constant. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An operator's result is now read beside it on the canvas, in the hover card and the pinned window, so the bottom panel drops its Result tab and holds the console alone. With no operator highlighted, the console shows every operator's messages in time order, each tagged with its operator; clicking a tag narrows to that operator, as highlighting it does. One highlighted operator shows its messages alone under a "Showing" line whose close button goes back to all. The errors that stopped a run or a compilation join the list as ERROR messages, so the Static Error tab goes too; they follow the same rule the Static Error tab did, and the same error gives the same message on every render, so the list does not jump to its end. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8ef2a74 to
d127081
Compare
Automated Reviewer SuggestionsBased on the
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #9060 +/- ##
==========================================
Coverage 91.75% 91.75%
+ Complexity 5024 5018 -6
==========================================
Files 1281 1278 -3
Lines 56754 56555 -199
Branches 7454 7416 -38
==========================================
- Hits 52075 51894 -181
+ Misses 2802 2789 -13
+ Partials 1877 1872 -5
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
carloea2
left a comment
There was a problem hiding this comment.
One result-access regression reproduced in the rendered component tests on fresh upstream main. The added regression fails and 216 existing checks pass.
node node_modules/@angular/cli/bin/ng test --watch=false --progress=false --include=src/app/workspace/component/workflow-editor/workflow-editor.component.spec.ts --include=src/app/workspace/component/result-panel/result-panel.component.spec.ts --include=src/app/workspace/component/result-panel/console-frame/console-frame.component.spec.ts --include=src/app/workspace/service/workflow-console/workflow-console.service.spec.ts --include=src/app/workspace/component/workflow-editor/pinned-result-window/pinned-result-window.component.spec.ts
Leaving the PR as a draft.
|
Confirmed the same result-access regression in local Chromium too: 123 existing editor tests pass and the added hover-disabled regression fails. This was the repository browser-test target, not jsdom. |
With Result preview off or the heat-map on there is no hover card, and the bottom panel now holds only the console, so the right-click menu is the way to a result window. Pinning an operator already pinned keeps one window. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
carloea2
left a comment
There was a problem hiding this comment.
The result-access finding is fixed. Pinning through the right-click menu works with Result preview off and with the heat-map on, including duplicate-pin handling. The 263 focused unit tests and all 125 workflow-editor tests in real Chromium pass. Focused prettier-eslint and ESLint checks pass. Rebase over #8766 must retain its empty-result schema handling alongside the stale-reply guard. CI still needs clearing before merge.
Resolve the conflicts with apache#8766: a page with no rows takes its columns from the stored schema, and the reply still carries the port's total count and is dropped when it belongs to another operator or port. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Two more points:
- Double-clicking an operator still calls
openResultPanel()(workflow-editor.component.ts:1108). That now opens the console narrowed to that operator, which shows nothing for anything but a UDF. Double-click was the quickest way to a result; should it callpinResultinstead? - The body still says the PR's own change is "the last commit". It is now d127081 and b80462b. The body could also mention the right-click "pin result" item and the double-click change.
…nd keep it fresh Pressing an output port to drag a link now closes the card: a native capture listener on the paper replaces element/blank:pointerdown, which JointJS never emits for a magnet. Deleting the card's operator closes it and cancels a pending one, and ngOnDestroy clears both card timers. The card fetches its rows again on its operator's result updates until it shows a full preview, keeping the rows on show while it does. selectPage's default column limit is ALL_COLUMNS, as peekFirstRows' is: Number.MAX_SAFE_INTEGER fails the server's Int parse, so the row details modal's request was never answered. The heat-map test now waits out the preview delay, and a new test covers the Layers > Result preview toggle. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The row details modal's column limit is a separate fix, as the review asked, so selectPage goes back to what it was before 7e4e75f. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…teady A double-click on an operator pins its result window, as the right-click menu does. Nothing opens the bottom panel by itself any more, so openResultPanel() and its stream are removed. A run selects the first Python UDF again, so its console and debug input are at hand when it raises. An operator already selected that is a UDF stays selected; any other selection moves to the UDF. A compilation error is known by its content rather than its object, as every compile sends a new one with a new timestamp. The console no longer jumps to its end on each edit while a compilation error is shown. The console's close button clears the highlight through the action service, so co-editors see it cleared too. The AI Fix tab's styles set only heights, so the tab not chosen stays hidden and the console keeps its own layout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks! 1. Double-click now pins the operator's result, and |
An operator's result updates count its first port only, so a table on another port asked for its page only when paged: it kept a run's partial rows after the run, and the last run's rows after a re-run. Such a table now asks for its page again on the operator's updates, at most once a second and always for the last one, and once more when the operator completes, as the first port may stop updating before the others are filled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e is gone A pinned window kept showing the output port its tab had chosen after that port was removed, with the tabs hidden once one port was left, so only unpinning brought it back. It now shows the last port instead, and the chosen one again if it comes back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pinning from the card, unpinning a closed window, unpinning a deleted operator's window and only that one, a window's place beside its operator as the canvas moves and after a drag, and the line's three courses: to a window on the right, on the left, and above or below. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A cell export reads the operator's first port, so on Output 2 the button downloaded Output 1's cell. It now shows only on the first port. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # frontend/src/app/workspace/component/workflow-editor/operator-result-preview/operator-result-preview.component.html # frontend/src/app/workspace/component/workflow-editor/operator-result-preview/operator-result-preview.component.scss # frontend/src/app/workspace/component/workflow-editor/operator-result-preview/operator-result-preview.component.ts # frontend/src/app/workspace/component/workflow-editor/workflow-editor.component.html # frontend/src/app/workspace/component/workflow-editor/workflow-editor.component.scss # frontend/src/app/workspace/component/workflow-editor/workflow-editor.component.spec.ts # frontend/src/app/workspace/component/workflow-editor/workflow-editor.component.ts
…lick Specs share one jsdom page within a worker. Once a spec loads monaco, its WebKit clipboard workaround runs on every click and failed on the missing ClipboardItem, so the pinned window's tab clicks did nothing on CI runners with fewer workers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ndow, and keep only layout in their styles Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Without it the resize corner can shrink the window to a few pixels, and the output-port tabs then collapse to nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…py tests The copy tests left a clipboard with only writeText on the shared page. Monaco's click handler then failed on clipboard.write, and the pinned window's tab-click tests in the same worker failed with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tion The port tabs came from a getter that builds new objects on every check, and the ngFor had no trackBy, so each check replaced every tab. When a check ran in the middle of a click (a pending nz-icon render flushed by another spec's leftover body listener), the clicked tab was replaced before the event reached it, and the click did nothing. Track tabs by port index. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… into feat/console-only-panel # Conflicts: # frontend/src/app/workspace/component/workflow-editor/workflow-editor.component.spec.ts
…anel # Conflicts: # frontend/src/app/workspace/component/result-panel/result-panel.component.html # frontend/src/app/workspace/component/result-panel/result-panel.component.spec.ts
…anel Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What changes were proposed in this PR?
With results open beside their operators (#9063), the bottom panel drops its Result tab and keeps the console, plus the AI Fix tab from #8637 when it applies.
With no operator selected, the console shows every operator's messages in time order, each tagged with its operator. Clicking a tag narrows it to that operator, as selecting the operator does. With one operator selected, it shows that operator's messages alone, under a line naming it that closes back to all. The errors from the Static Error tab join the console as error messages, shown by the rule the tab used: an operator's own errors with it, and errors that belong to no operator when none is selected. That tab and its component are removed.
A run still selects the first Python UDF, so its console and debug input are at hand when it raises. The AI Fix tab sits beside the console and shows on the same conditions as before: Copilot on, one Python UDF selected, an error in its console.
An operator's result now opens beside it from its right-click menu ("Pin result") and on a double-click, which used to open the bottom panel. Nothing opens the bottom panel by itself any more, so
openResultPanel()and its stream are removed.Any related issues, documentation, discussions?
Closes #9059. Part of #9052. Design discussed in #8842.
How was this PR tested?
The specs of the console, the console service and the result panel cover every operator's messages and their tags, narrowing to one operator and back, errors as console messages, a recompile that sends the same error not moving the list, a run selecting the first Python UDF, and the AI Fix tab coming and going without rebuilding the console. The workflow editor's spec covers a double-click pinning the operator's result. The full frontend suite passes. In the running app, two Python UDFs' prints and an error appear together, tagged by operator, and narrow to one operator when it is selected; a UDF that raises while selected brings up the AI Fix tab.
Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 5.5)
🤖 Generated with Claude Code