-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow Renaming Teams #15754
Allow Renaming Teams #15754
Conversation
started the job as gitpod-build-se-team-rename-ui.1 because the annotations in the pull request description changed |
0baed74
to
e9fba89
Compare
Looking at this now! 👀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM % modulo better signature for the update funcation
/hold
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making this change, @svenefftinge! 🍷
UX LGTM!
Left a few non-blocking comments that can be moved to follow-up issues.
const newName = event.target.value || ""; | ||
setTeamName(newName); | ||
if (newName.trim().length === 0) { | ||
setErrorMessage("Team name must not be empty."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
praise: +1 for disabling the update button when users clear this input!
Should this be dependant on #15749? What's the relationship to that PR? They seem to share the changes |
I based the UI work on that branch. I can merge just this one as well. |
e9fba89
to
6936b10
Compare
/unhold |
<div className="flex flex-row"> | ||
<button | ||
className="primary" | ||
disabled={team?.name === teamName || !!errorMessage} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: currently, the user is able to change the team name to the same name just with whitespaces around it.
disabled={team?.name === teamName || !!errorMessage} | |
disabled={team?.name === teamName.trim() || !!errorMessage} |
Allow updating the team's name
fixes #5067
How to test
rename team name
Release Notes
Documentation
Werft options:
If enabled this will build
install/preview
Valid options are
all
,workspace
,webapp
,ide
,jetbrains
,vscode
,ssh