Skip to content

all/frontend: Edit the settings and the size of a profile - #93

Merged
l-nmch merged 2 commits into
mainfrom
feat/edit-profile
Nov 14, 2026
Merged

l-nmch merged 2 commits into
mainfrom
feat/edit-profile

Conversation

@l-nmch

@l-nmch l-nmch commented Nov 14, 2026

Copy link
Copy Markdown
Member

What

The page of a profile a person made gets its edit form, in the section "Change this profile" (it said that a profile cannot change). It follows the rule of #68: the edit is on the page of the object, as for a network.

  • Fields, filled with what the profile has: description (empty goes back to the one made from the size), vCPU, memory, disk, UEFI secure boot (the "Not set" choice removes the setting, secureBoot: null) and SSH keys (an empty field removes them, sshPublicKeys: []).
  • Only what differs from the profile as the API has it is sent to PATCH /v1/tenants/{t}/profiles/{name} (Edit a profile in the API phorge-api#135, merged). Nothing different is "Nothing to change." and no request.
  • The refusals of the API are shown as it says them, and the form says them in advance next to the size: a smaller disk while a machine has the profile (409, in_use, naming the machines), less memory while one that has it runs (409, running: stop it, change the profile, start it again), a size that takes the tenant over its limits (409, quota_exceeded). The console never stops or starts a machine behind the button.
  • s, m and l have no form, and the save action refuses them without calling the API.
  • The creation form no longer says that the settings cannot change; the list of profiles says they can be changed from their page. docs/reference/configuration.md and console-patterns.md are updated.

Deployment

The route exists in main of the API but is not deployed until the API 0.16.0 is released (phorge-fr/phorge-api#144), which itself waits for #59 to be deployed. Before that, saving this form answers 405 and the page shows "The profile was not changed" with the API's answer.

Tests

  • pnpm check (0 errors, 0 warnings), pnpm lint and pnpm build pass; the docs check passes.
  • Not run: the form in a browser against a real API (it needs an Authentik session and the route deployed). The diff of what is sent, the null and [] cases and the wording are read from the code, not seen.

Closes #82

The page of a profile made by a person has an edit form: the description, the vCPU, the memory and the disk, the secure boot and the SSH
keys, filled with what the profile has. Only what differs is sent to PATCH /v1/tenants/{t}/profiles/{name}.

What the API refuses (a smaller disk while a machine has the profile, less memory while one that has it runs, a size over the limits of
the tenant) is shown as the API says it. The console never stops a machine.

Closes #82
@l-nmch l-nmch added this to the 2027-Q1 milestone Nov 14, 2026
@l-nmch l-nmch added the area/svc svc cluster label Nov 14, 2026
@l-nmch l-nmch self-assigned this Nov 14, 2026
@l-nmch l-nmch added this to Roadmap Nov 14, 2026
@l-nmch
l-nmch merged commit a3ce432 into main Nov 14, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/svc svc cluster

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

all/frontend: Edit the settings and the size of a profile

1 participant