Skip to content

Commit b23e6a0

Browse files
authored
chore: rename organization 'name' to organization 'slug' (coder#14835)
1 parent fb28979 commit b23e6a0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

site/src/pages/ManagementSettingsPage/CreateOrganizationPageView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export const CreateOrganizationPageView: FC<
131131
onChange={onChangeTrimmed(form)}
132132
autoFocus
133133
fullWidth
134-
label="Name"
134+
label="Slug"
135135
/>
136136
<TextField
137137
{...getFieldHelpers("display_name")}

site/src/pages/ManagementSettingsPage/OrganizationSettingsPage.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ describe("OrganizationSettingsPage", () => {
6060
);
6161
await renderPage();
6262
const form = screen.getByTestId("org-settings-form");
63-
expect(within(form).getByRole("textbox", { name: "Name" })).toHaveValue(
63+
expect(within(form).getByRole("textbox", { name: "Slug" })).toHaveValue(
6464
MockDefaultOrganization.name,
6565
);
6666
});
@@ -82,7 +82,7 @@ describe("OrganizationSettingsPage", () => {
8282
);
8383
await renderPage();
8484
const form = screen.getByTestId("org-settings-form");
85-
expect(within(form).getByRole("textbox", { name: "Name" })).toHaveValue(
85+
expect(within(form).getByRole("textbox", { name: "Slug" })).toHaveValue(
8686
MockOrganization2.name,
8787
);
8888
});

site/src/pages/ManagementSettingsPage/OrganizationSettingsPageView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export const OrganizationSettingsPageView: FC<
9292
onChange={onChangeTrimmed(form)}
9393
autoFocus
9494
fullWidth
95-
label="Name"
95+
label="Slug"
9696
/>
9797
<TextField
9898
{...getFieldHelpers("display_name")}

0 commit comments

Comments
 (0)