Skip to content

Add computing unit manager frontend - #3315

Merged
shengquan-ni merged 17 commits into
masterfrom
shengquan-cu-frontend
Mar 14, 2025
Merged

shengquan-ni merged 17 commits into
masterfrom
shengquan-cu-frontend

Conversation

@shengquan-ni

@shengquan-ni shengquan-ni commented Mar 12, 2025 •

Copy link
Copy Markdown
Contributor

This PR introduces a frontend component for selecting a computing unit, preparing for the future integration of a computing unit manager. In local development mode, the component automatically generates a default local computing unit and restricts adding or deleting computing units.

Demo:

Local Dev mode:

2025-03-13.6.25.17.mov

k8s mode:

2025-03-13.6.23.53.mov

@shengquan-ni
shengquan-ni requested a review from bobbai00 March 12, 2025 22:42
@shengquan-ni shengquan-ni self-assigned this Mar 12, 2025

@bobbai00 bobbai00 left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I pushed some frontend changes, please check.

Please also update the demo video.

@shengquan-ni
shengquan-ni merged commit 18d9f14 into master Mar 14, 2025
@shengquan-ni
shengquan-ni deleted the shengquan-cu-frontend branch March 14, 2025 06:08
Ma77Ball pushed a commit that referenced this pull request Apr 2, 2025
This PR introduces a frontend component for selecting a computing unit,
preparing for the future integration of a computing unit manager. In
local development mode, the component automatically generates a default
local computing unit and restricts adding or deleting computing units.

Demo:

Local Dev mode:


https://github.com/user-attachments/assets/ce80b764-f524-4b6c-8747-0ce01652f7e0



k8s mode:


https://github.com/user-attachments/assets/caba1fc5-6960-4731-9f05-4f804c40842f

---------

Co-authored-by: Jiadong Bai <[email protected]>
SarahAsad23 pushed a commit to madisonmlin/texera that referenced this pull request May 20, 2026
This PR introduces a frontend component for selecting a computing unit,
preparing for the future integration of a computing unit manager. In
local development mode, the component automatically generates a default
local computing unit and restricts adding or deleting computing units.

Demo:

Local Dev mode:


https://github.com/user-attachments/assets/ce80b764-f524-4b6c-8747-0ce01652f7e0



k8s mode:


https://github.com/user-attachments/assets/caba1fc5-6960-4731-9f05-4f804c40842f

---------

Co-authored-by: Jiadong Bai <[email protected]>
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
This PR introduces a frontend component for selecting a computing unit,
preparing for the future integration of a computing unit manager. In
local development mode, the component automatically generates a default
local computing unit and restricts adding or deleting computing units.

Demo:

Local Dev mode:


https://github.com/user-attachments/assets/ce80b764-f524-4b6c-8747-0ce01652f7e0



k8s mode:


https://github.com/user-attachments/assets/caba1fc5-6960-4731-9f05-4f804c40842f

---------

Co-authored-by: Jiadong Bai <[email protected]>
renovate-bot pushed a commit to renovate-bot/apache-_-texera that referenced this pull request Oct 6, 2026
…e#8827)

### What changes were proposed in this PR?

Removes two leftovers from `ComputingUnitCreateModalComponent`. **−2
lines.** There is no behaviour change.

- `<ng-template #addComputeUnitModalTitle>`. The modal's title comes
from `[nzTitle]="getCreateModalTitle()"`. Nothing else reads the
template: there is no `@ViewChild`, no outlet, and neither of the two
hosts that open the modal passes it. `nz-modal` only picks up its
title/content/footer directives, never a plain `#ref` template.
- The `selectedShmSize` field. The create payload builds `shmSize` from
`shmSizeValue` / `shmSizeUnit`, which stay.

### History

| | |
| --- | --- |
| **Introduced by** | apache#3315 (2025-03-13), "Add computing unit manager
frontend": the title template. apache#3451 (2025-05-28), "Enable adjusting
shared memory for the computing unit": `selectedShmSize` |
| **Usage removed by** | apache#3400 (2025-05-26) switched the title to
`getCreateModalTitle()`. apache#4331 (2026-04-09), "add full computing unit
tab", dropped the field's last write and read. apache#6082 later moved both,
still unread, into this shared component |

The title template has been unused for sixteen months, and the field for
six.

### Any related issues, documentation, discussions?

Closes apache#8826

### How was this PR tested?

No new tests; no spec referenced either item.

From `frontend/`:

- `npx ng test --watch=false
--include='**/computing-unit-create-modal.component.spec.ts'
--include='**/user-computing-unit.component.spec.ts'
--include='**/computing-unit-selection.component.spec.ts'`: 3 files, 248
tests, all pass. The other two specs cover the modal's two hosts.
- `yarn format:ci`: clean.
- `npx ng build`: success.

To re-check:

```
git grep -n "addComputeUnitModalTitle\|selectedShmSize" -- frontend   # no hits
```

### 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants