Skip to content

feat(frontend): add admin computing units dashboard - #7356

Draft
kunwp1 wants to merge 6 commits into
apache:mainfrom
kunwp1:feat/admin-cu-frontend
Draft

feat(frontend): add admin computing units dashboard#7356
kunwp1 wants to merge 6 commits into
apache:mainfrom
kunwp1:feat/admin-cu-frontend

Conversation

@kunwp1

@kunwp1 kunwp1 commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

Adds an ADMIN-only Computing Units dashboard: a read-only table of every active computing unit across all users.

Columns: name, owner, type, status, created. A row expands to show its full specs (CPU, memory, GPU, JVM memory, shared memory). For local development environment, local units have no limits. The table reuses the existing WorkflowComputingUnitManagingService (new listAllComputingUnits() calling GET /computing-unit/admin/list) and the DashboardWorkflowComputingUnit type and follows the existing admin page pattern.

Any related issues, documentation, discussions?

Closes #6479. Part of #6476.

How was this PR tested?

Test manually in both local and kubernetes environment.

In Kubernetes environment,
[VIDEO]

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

Generated-by: Claude Code (Opus 4.8)

kunwp1 added 5 commits August 5, 2026 19:11
Add an ADMIN-only page listing every active computing unit across all users
(name, owner, type, status, created, resource summary), with an expandable row
revealing full specs (CPU, memory, GPU, JVM, shared memory). Read-only.

Reuses the existing WorkflowComputingUnitManagingService (new listAllComputingUnits()
hitting GET /computing-unit/admin/list) and DashboardWorkflowComputingUnit type,
plus the shared status-badge and relative-time formatters. Follows the existing
admin dashboard pattern (nz-table, admin route + guard + nav entry).

Closes apache#6479.
The dashboard's template pipes creationTime through `date` for the
created-at tooltip, but the standalone component imported only NgFor and
NgIf from @angular/common. AOT compilation therefore failed with NG8004
("No pipe found with name 'date'"), and since a failed build emits no
index.html, `ng serve` answered every request with a 404 rather than
serving the app.

The existing specs did not catch this: none of them render the template,
so JIT never resolved the pipe. Add the one render test that mounts a row,
which fails with NG0302 without the import and passes with it, so a pipe
or directive missing from `imports` is caught by the unit tests instead of
only by the app build.
Surface fetch/poll errors via NzMessageService and clear the loading flag so a
failed load stops the spinner instead of spinning forever; catch poll errors
inside switchMap so one failure does not terminate the refresh interval. Drop
the isOwner star on the owner avatar — isOwner is relative to the requesting
admin, so it is meaningless in an all-users view.
@github-actions github-actions Bot added feature frontend Changes related to the frontend GUI labels Aug 6, 2026
@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Automated Reviewer Suggestions

Based on the git blame history of the changed files, we recommend the following reviewers:

  • Contributors with relevant context: @aicam, @zyratlo, @Ma77Ball
    You can notify them by mentioning @aicam, @zyratlo, @Ma77Ball in a comment.

The rxjs/no-implicit-any-catch rule (run in format:ci) requires an explicit
`: unknown` on catchError and subscribe error callbacks, and crashes on an
untyped parameter. Annotate both to match the codebase convention.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature frontend Changes related to the frontend GUI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Admin CUs: frontend service and read-only table view

1 participant