Repository navigation
Conversation
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
The project Settings tab gets a "Project name" panel to rename the project. It uses the existing
PATCH /api/projects/{id}endpoint.Why
The backend supports renaming, but the UI had no way to do it.
Fixes #418
How
ProjectNameSettingsinui/projects/project-containers/: a form with the current name, Save disabled while the name is empty, unchanged or contains--(the same ruleService.Updateenforces). Server errors are shown under the field. The input and button reuse the classes fromProjectResourceLimits.ProjectContainersPagerenders it insideProjectSettingsPanelat the top of the Settings tab, gated onprojects.controls.manage.ProjectContainersContainercallsprojectApi.update. No local state update is needed: the notifying project repository publishes the upsert, so the sidebar and the settings header pick up the new name.Testing
npm test: 647 passednpm run buildsucceedsRan it on my own instance: renamed a project and the sidebar picked up the new name without a reload.
go test ./...passes (backend and catalog): no backend changesnpm testpasses (frontend)gofmt/go vet ./...clean: no Go changesnpm run buildsucceedsUI changes
npm run dev)