Repository navigation
[M2.3f1b1] Web: resource settings; forms recover after a refused request - #184
Merged
Merged
Conversation
added 2 commits
November 7, 2026 13:49
A 409 blocks MutationRunner until it restarts, and nothing restarted it, so a corrected value was silently never submitted. Signed-off-by: review <[email protected]>
Signed-off-by: review <[email protected]>
4 tasks done
samuelmbabhazi
added a commit
that referenced
this pull request
Nov 7, 2026
## What changed `ConfirmByName` is a shared panel for destructive actions, extracted from the servers page, which now uses it. It asks for the resource's exact name with no trimming or case folding. It is announced as an `alertdialog`, takes focus when opened, gives focus back to the opener when closed, and Escape dismisses it. Selecting another resource starts over. The servers page also recovers after a refused request, using `recoverOnEdit` from #184, which it had missed: a 409 left its forms blocked. ## Why PLAN M2.5b. Server removal is the only confirmable action the API has today (`CONFIRMABLE_ACTIONS`), so it is the only user. Volume, database and environment deletion will use it once those screens and actions exist. ## How it was tested `confirm-by-name.spec.ts`: wrong case, surrounding spaces, a Greek lookalike and injection text never confirm; no double confirmation while busy; focus moves in and back; Escape dismisses; another resource resets the field. The existing server removal test still covers the two requests. Local gate only (CI off). Not exercised in a real browser. ## Security considerations This check is a convenience. The server issues the single-use confirmation token only for the exact name and permission, and that remains the guarantee (rule 7). The panel is not modal: the page behind it stays reachable. ## Checklist - [x] Tests, including malicious input - [x] No new shell invocation, no new secret exposure path - [x] No new state change - [x] PLAN updated Signed-off-by: review <[email protected]> Co-authored-by: review <[email protected]>
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.
What changed
Settings forms. Organization (name, slug), project (name, slug, how
shipkeep.ymlis written) and environment (name, kind, failover policy, protection) pages each gain a settings section over the existingsettingsroutes.Bug fix, not in the plan. After a 409 (a slug already taken, for example),
MutationRunnerrefuses further submits until reset, and the create forms never reset it. Correcting the value and submitting again silently did nothing.recoverOnEditrestarts the runner on the next edit, on every form using a runner this way. A server-requested wait still applies.Why
PLAN M2.3f1b, which is now split into three: settings (this PR), members and bindings, then the token scope picker.
How it was tested
Web tests in
resource-settings.spec.ts, through the real routes with a stubbed fetch:Local gate only (CI off). Not exercised in a real browser or against a running API.
Security considerations
No new route. The API stays the authority for
organization.update,project.updateandenvironment.update, and audits these changes. A member without the permission still sees the form and gets the API's refusal on saving, because the API exposes no effective permissions to the UI yet. Turning protection off opens deploys, secrets and container sessions to developers, and the form says so next to the checkbox.Checklist