Repository navigation
feat(gui): Improve UI for operator port metrics - #3477
Merged
Merged
Conversation
aglinxinyuan
requested changes
Jun 18, 2025
Contributor
There was a problem hiding this comment.
Remove the counts on top of each operator since this information is already included on the input and output ports. Also, try to make the text on the same vertical line. Currently, the text for input count and output count for the same operator is not aligned.
Contributor
Author
|
@aglinxinyuan Finished making changes and requested a new review |
aglinxinyuan
requested changes
Jul 5, 2025
aglinxinyuan
left a comment
Contributor
There was a problem hiding this comment.
Left mirror comments
SarahAsad23
pushed a commit
to madisonmlin/texera
that referenced
this pull request
May 20, 2026
This PR changes the behavior of port metrics so that no matter which operator is highlighted, the port metrics (port id and port count) on both input and output would be always shown to user. This change was made to comply with ui improvement plan so that users have a better overview of the input and output data counts. In addition to the change mentioned above, the layers between links and texts are differentiated so that the texts can no longer be blocked by arrows. Attached images include a brief overview of the UI, and a zoomed-in image of an operator that explains the latter change. <img width="910" alt="image" src="https://github.com/user-attachments/assets/9e6ef4a4-1cb8-41be-a99b-74cfe0339e8d" /> <img width="559" alt="image" src="https://github.com/user-attachments/assets/655fc06d-b107-4fc6-a9ca-84714ca34b78" /> --------- Co-authored-by: gspikehalo <[email protected]> Co-authored-by: Xinyuan Lin <[email protected]>
yangzhang75
pushed a commit
to yangzhang75/texera
that referenced
this pull request
Jun 22, 2026
This PR changes the behavior of port metrics so that no matter which operator is highlighted, the port metrics (port id and port count) on both input and output would be always shown to user. This change was made to comply with ui improvement plan so that users have a better overview of the input and output data counts. In addition to the change mentioned above, the layers between links and texts are differentiated so that the texts can no longer be blocked by arrows. Attached images include a brief overview of the UI, and a zoomed-in image of an operator that explains the latter change. <img width="910" alt="image" src="https://github.com/user-attachments/assets/9e6ef4a4-1cb8-41be-a99b-74cfe0339e8d" /> <img width="559" alt="image" src="https://github.com/user-attachments/assets/655fc06d-b107-4fc6-a9ca-84714ca34b78" /> --------- Co-authored-by: gspikehalo <[email protected]> Co-authored-by: Xinyuan Lin <[email protected]>
This was referenced Nov 26, 2026
renovate-bot
pushed a commit
to renovate-bot/apache-_-texera
that referenced
this pull request
Nov 27, 2026
### What changes were proposed in this PR? Remove code that nothing uses from the dataset service, the dataset file uploader, the Hub component and service, and the canvas glyph service (**+154/−578 lines**). There is no behavior change. - **`DatasetService`:** four dead pieces go. - Six forwarders: `multipartUpload`, `listMultipartUploads`, `findExistingUploadFiles` and `finalizeMultipartUpload` only call `MultipartUploadService`, and `resetDatasetFileDiff` and `getDatasetDiff` only call `StagedFileService`. apache#8078 moved every caller to those services and kept the forwarders "so existing callers are untouched"; only specs still called or stubbed them. - The `GuiConfigService` and `MultipartUploadService` constructor dependencies that the forwarders and nothing else used. - The re-exported `MultipartUploadProgress` type, which nothing imports from here. - URL constants that nothing outside the service imports. The base paths become file-local, and the ones used once are written at their call site. - **Specs:** - The dataset spec's 15 cases that tested the upload and staging services through the forwarders go. `multipart-upload.service.spec.ts` and `staged-file.service.spec.ts` already cover 12 of them. - The other three move to `multipart-upload.service.spec.ts`: progress smoothing, the ETA clamp, and the 0% failure for an empty file. They account for 84 of the added lines. - The clamp case now stalls at 10 of 100 bytes. At 50, the clamped and unclamped ETAs both rounded to 3 s, so it passed with any bound. - The dataset spec's HTTP cases state the URLs they expect, and the dataset-detail spec drops its stubs of the removed forwarders. - **`FilesUploaderComponent`:** the `newUploadFileTreeNodes` field and its import, unused since apache#3296. - **Hub:** `HubComponent`'s `isLogin` input and `GuiConfigService` injection are never read. The dashboard stops passing `isLogin`, and keeps its own login state. `ActionType.Unlike` has no user; `postUnlike` keeps its literal endpoint. - **`JointUIService`:** - Sixteen constants that nothing imports become file-local: eleven glyph constants and five CSS class names. Their values are unchanged. - The `DEFAULT_GROUP_MARGIN` and `DEFAULT_GROUP_MARGIN_BOTTOM` statics go. apache#3033 removed operator groups, their last reader. - The attribute blocks for the abbreviated, processed and output count labels go. apache#3558 removed those labels from the markup. | Event | PR / Commit | | --- | --- | | Introduced by | Forwarders and the re-exported type: apache#8078 (2026-08-31); uploader field: apache#2719 (2024-07-23); `HubComponent.isLogin`: apache#2725 (2024-09-24); `ActionType.Unlike`: apache#3442 (2025-06-28); group margins: apache#754 (2020-12-11); count-label attributes: apache#1374 (2021-11-23) and apache#3477 (2025-07-08) | | Usage removed by | Uploader field: apache#3296 (2025-03-11). Group margins: apache#3033 (2024-11-13). Count-label attributes: apache#3558 (2025-07-11). Everything else: unused since introduction. | As of 2026-11-26: - `HubComponent.isLogin` and the group margins have gone unread for over 2 years. - The uploader field has been unused for over a year and a half, and the count-label attributes for over a year. - `ActionType.Unlike` has been unused for almost a year and a half. - The forwarders have had no caller in the almost 3 months they have existed. ### Any related issues, documentation, discussions? Closes apache#9719. ### How was this PR tested? Ran on this branch and on `main` at `927379aa28` (Windows 11; Node 24 with Yarn 4.14.1): ```bash cd frontend npx ng test --watch=false --include='**/dataset.service.spec.ts' --include='**/dataset-detail.component.spec.ts' --include='**/files-uploader.component.spec.ts' --include='**/hub.component.spec.ts' --include='**/dashboard.component.spec.ts' --include='**/hub.service.spec.ts' --include='**/joint-ui.service.spec.ts' --include='**/multipart-upload.service.spec.ts' npx tsc --noEmit -p src/tsconfig.app.json npx tsc --noEmit -p src/tsconfig.spec.json npx ngc -p src/tsconfig.app.json --noEmit yarn prettier-eslint --list-different $(git diff --name-only --relative origin/main -- src) yarn eslint $(git diff --name-only --relative origin/main -- src | grep -E '\.(ts|html)$') ``` - **Specs:** the eight specs run 357 tests on this branch and 371 on `main`, all passing. - The branch drops the dataset spec's 15 forwarder cases and runs 3 of them in the multipart spec. - It also drops the Hub component's `isLogin` and `GuiConfigService` checks, and renames one Hub case for the dropped input. - Every other test keeps its name and outcome. - **Controls:** widening or narrowing the engine's 30% ETA bound fails the moved clamp case (27 s or 20 s instead of 23 s). At 50 bytes, as on `main`, the widened bound passed. Dropping the empty-file guard fails the 0% case. - **Checks:** both typechecks, the AOT compile (the dashboard template changes), prettier-eslint and ESLint pass. To re-check, this returns no hits on this branch and 19 on `main`: ```bash git grep -nE "public (multipartUpload|listMultipartUploads|findExistingUploadFiles|finalizeMultipartUpload|resetDatasetFileDiff|getDatasetDiff)\(|newUploadFileTreeNodes|Unlike = |texera-operator-(abbreviated|processed|output)-count|private config: GuiConfigService|DEFAULT_GROUP_MARGIN|export const operator(ReuseCacheText|ReuseCacheIcon|ViewResultIcon|Icon|FriendlyName)Class" -- frontend/src/app/dashboard/service/user/dataset frontend/src/app/dashboard/component/user/files-uploader frontend/src/app/hub frontend/src/app/workspace/service/joint-ui ``` ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (Claude Opus 5.5)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR changes the behavior of port metrics so that no matter which operator is highlighted, the port metrics (port id and port count) on both input and output would be always shown to user. This change was made to comply with ui improvement plan so that users have a better overview of the input and output data counts.
In addition to the change mentioned above, the layers between links and texts are differentiated so that the texts can no longer be blocked by arrows.
Attached images include a brief overview of the UI, and a zoomed-in image of an operator that explains the latter change.

