This is an automated email from the ASF dual-hosted git repository.
github-merge-queue[bot] pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/texera.git
The following commit(s) were added to refs/heads/main by this push:
new 569f721c01 feat(frontend): open the result panel at its full height
inside the window (#9056)
569f721c01 is described below
commit 569f721c01100b492091f3ddbcfcdd260f9c9520
Author: Kary Zheng <[email protected]>
AuthorDate: Wed Oct 28 00:01:04 2026 +0000
feat(frontend): open the result panel at its full height inside the window
(#9056)
### What changes were proposed in this PR?
The result panel's default height went from 300 to 500, but its
stylesheet still placed it 300px above the bottom of the workspace, so a
panel opened or docked at the default height left its bottom 200px below
the window, usually the pager with them. The panel's offset now comes
from the same constant as its default height, so the two cannot drift
apart again.
| Before | After |
|---|---|
| <img width="1400" height="843" alt="result-panel-docked-below-window"
src="https://github.com/user-attachments/assets/2f0db118-f19b-40b6-b368-3bb97406cbca"
/> | <img width="1400" height="843" alt="result-panel-docked-after-fix"
src="https://github.com/user-attachments/assets/98b17370-9a5f-4e58-b4f1-e8dd08f41d64"
/> |
### Any related issues, documentation, discussions?
Closes #9055. Part of #9052.
### How was this PR tested?
A new case in `ResultPanelComponent`'s spec checks that the panel is
placed one default height above the workspace's bottom edge. It fails on
main. In the running app, the docked panel now ends at the window's
bottom edge, where on main it ran 200px past it.
### 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]>
Co-authored-by: Xinyuan Lin <[email protected]>
---
.../workspace/component/result-panel/result-panel.component.html | 1 +
.../workspace/component/result-panel/result-panel.component.scss | 1 -
.../component/result-panel/result-panel.component.spec.ts | 7 +++++++
.../app/workspace/component/result-panel/result-panel.component.ts | 3 +++
4 files changed, 11 insertions(+), 1 deletion(-)
diff --git
a/frontend/src/app/workspace/component/result-panel/result-panel.component.html
b/frontend/src/app/workspace/component/result-panel/result-panel.component.html
index d2c6a53549..5d5d7009c6 100644
---
a/frontend/src/app/workspace/component/result-panel/result-panel.component.html
+++
b/frontend/src/app/workspace/component/result-panel/result-panel.component.html
@@ -55,6 +55,7 @@
[nzMinHeight]="250"
[nzMaxWidth]="window.innerWidth"
[nzMaxHeight]="window.innerHeight"
+ [style.top.px]="-defaultHeight"
[style.width.px]="width"
[style.height.px]="height"
(nzResize)="onResize($event)"
diff --git
a/frontend/src/app/workspace/component/result-panel/result-panel.component.scss
b/frontend/src/app/workspace/component/result-panel/result-panel.component.scss
index 229857b4a4..17f54bd89b 100644
---
a/frontend/src/app/workspace/component/result-panel/result-panel.component.scss
+++
b/frontend/src/app/workspace/component/result-panel/result-panel.component.scss
@@ -31,7 +31,6 @@
#result-container {
position: absolute;
- top: -300px;
left: 0;
background: white;
border-radius: 5px;
diff --git
a/frontend/src/app/workspace/component/result-panel/result-panel.component.spec.ts
b/frontend/src/app/workspace/component/result-panel/result-panel.component.spec.ts
index abe5fe1eb2..7608f7a2ba 100644
---
a/frontend/src/app/workspace/component/result-panel/result-panel.component.spec.ts
+++
b/frontend/src/app/workspace/component/result-panel/result-panel.component.spec.ts
@@ -692,6 +692,13 @@ describe("ResultPanelComponent", () => {
el.triggerEventHandler(event, payload);
};
+ // The return position is computed against the default height. Docked a
different distance
+ // above the workspace's edge, a panel opened at that height runs off the
bottom of the window.
+ it("docks the panel one default height above the workspace's bottom edge",
() => {
+ const container: HTMLElement =
fixture.debugElement.query(By.css("#result-container")).nativeElement;
+ expect(container.style.top).toBe(`-${DEFAULT_HEIGHT}px`);
+ });
+
it("renders the docked panel chrome and wires the close / reset actions",
() => {
component.width = DEFAULT_WIDTH;
fixture.detectChanges();
diff --git
a/frontend/src/app/workspace/component/result-panel/result-panel.component.ts
b/frontend/src/app/workspace/component/result-panel/result-panel.component.ts
index 88c29eed76..38e9555c1f 100644
---
a/frontend/src/app/workspace/component/result-panel/result-panel.component.ts
+++
b/frontend/src/app/workspace/component/result-panel/result-panel.component.ts
@@ -97,6 +97,9 @@ export class ResultPanelComponent implements OnInit,
OnDestroy {
componentOutlets!: ElementRef;
frameComponentConfigs: Map<string, { component: Type<any>; componentInputs:
{} }> = new Map();
protected readonly window = window;
+ // The docked panel sits this far above the workspace's bottom edge. The
return position is
+ // computed against the default height, so the two have to be the same
number.
+ protected readonly defaultHeight = DEFAULT_HEIGHT;
id = -1;
width = DEFAULT_WIDTH;
height = DEFAULT_HEIGHT;