Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
address PR comments
  • Loading branch information
johnstcn committed Jun 25, 2024
commit 08eb15fbceb05ab8457098cd1dce02fc787ec2e4
6 changes: 0 additions & 6 deletions site/src/pages/CreateUserPage/CreateUserForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export const Language = {
passwordLabel: "Password",
usernameLabel: "Username",
nameLabel: "Full name",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: I would use "Name" instead of "Full name".

Copy link
Member Author

Choose a reason for hiding this comment

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

Again, I would much prefer to use "full name" in the UI/CLI to distinguish it from "username". The API refers to it as name however.

nameHelperText: "Optional human-readable name",
emailInvalid: "Please enter a valid email address.",
emailRequired: "Please enter an email address.",
passwordRequired: "Please enter a password.",
Expand Down Expand Up @@ -131,14 +130,9 @@ export const CreateUserForm: FC<
/>
<TextField
{...getFieldHelpers("name")}
onBlur={(e) => {
e.target.value = e.target.value.trim();
form.handleChange(e);
}}
autoComplete="name"
fullWidth
label={Language.nameLabel}
helperText={Language.nameHelperText}
/>
<TextField
{...getFieldHelpers("email")}
Expand Down
6 changes: 0 additions & 6 deletions site/src/pages/SetupPage/SetupPageView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export const Language = {
emailLabel: "Email",
passwordLabel: "Password",
nameLabel: "Full Name",
nameHelperText: "Optional human-readable name",
usernameLabel: "Username",
emailInvalid: "Please enter a valid email address.",
emailRequired: "Please enter an email address.",
Expand Down Expand Up @@ -157,14 +156,9 @@ export const SetupPageView: FC<SetupPageViewProps> = ({
/>
<TextField
{...getFieldHelpers("name")}
onBlur={(e) => {
e.target.value = e.target.value.trim();
form.handleChange(e);
}}
autoComplete="name"
fullWidth
label={Language.nameLabel}
helperText={Language.nameHelperText}
/>
<TextField
{...getFieldHelpers("email")}
Expand Down