Skip to content

Commit 81500d0

Browse files
committed
chore: cleanup
1 parent dd0fb17 commit 81500d0

File tree

6 files changed

+25
-43
lines changed

6 files changed

+25
-43
lines changed

site/src/components/Spinner/Spinner.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const meta: Meta<typeof Spinner> = {
66
title: "components/Spinner",
77
component: Spinner,
88
args: {
9-
children: <PlusIcon className="size-icon-md" />,
9+
children: <PlusIcon className="size-icon-lg" />,
1010
},
1111
};
1212

site/src/components/Spinner/Spinner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const leaves = 8;
1414
const spinnerVariants = cva("", {
1515
variants: {
1616
size: {
17-
lg: "size-icon-md",
17+
lg: "size-icon-lg",
1818
sm: "size-icon-sm",
1919
},
2020
},

site/src/pages/CreateWorkspacePage/CreateWorkspacePageViewExperimental.tsx

Lines changed: 20 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -140,17 +140,6 @@ export const CreateWorkspacePageViewExperimental: FC<
140140
}
141141
}, [error]);
142142

143-
useEffect(() => {
144-
if (form.submitCount > 0 && form.errors) {
145-
const fieldId = `${id}-workspace-name`;
146-
const el = document.getElementById(fieldId);
147-
if (el) {
148-
el.scrollIntoView({ behavior: "smooth", block: "center" });
149-
(el as HTMLElement).focus?.();
150-
}
151-
}
152-
}, [form.submitCount, form.errors, id]);
153-
154143
const [presetOptions, setPresetOptions] = useState([
155144
{ label: "None", value: "" },
156145
]);
@@ -339,34 +328,27 @@ export const CreateWorkspacePageViewExperimental: FC<
339328
<Label className="text-sm" htmlFor={`${id}-workspace-name`}>
340329
Workspace name
341330
</Label>
342-
<div className="flex flex-col">
343-
<Input
344-
id={`${id}-workspace-name`}
345-
value={form.values.name}
346-
onChange={(e) => {
347-
form.setFieldValue("name", e.target.value.trim());
348-
resetMutation();
331+
<Input
332+
id={`${id}-workspace-name`}
333+
value={form.values.name}
334+
onChange={(e) => {
335+
form.setFieldValue("name", e.target.value.trim());
336+
resetMutation();
337+
}}
338+
disabled={creatingWorkspace}
339+
/>
340+
<div className="flex gap-2 text-xs text-content-secondary items-center">
341+
Need a suggestion?
342+
<Button
343+
variant="subtle"
344+
size="sm"
345+
onClick={async () => {
346+
await form.setFieldValue("name", suggestedName);
347+
rerollSuggestedName();
349348
}}
350-
disabled={creatingWorkspace}
351-
/>
352-
{form.touched.name && form.errors.name && (
353-
<div className="text-content-destructive text-xs mt-2">
354-
{form.errors.name}
355-
</div>
356-
)}
357-
<div className="flex gap-2 text-xs text-content-secondary items-center">
358-
Need a suggestion?
359-
<Button
360-
variant="subtle"
361-
size="sm"
362-
onClick={async () => {
363-
await form.setFieldValue("name", suggestedName);
364-
rerollSuggestedName();
365-
}}
366-
>
367-
{suggestedName}
368-
</Button>
369-
</div>
349+
>
350+
{suggestedName}
351+
</Button>
370352
</div>
371353
</div>
372354
{permissions.createWorkspaceForAny && (

site/src/pages/DeploymentSettingsPage/IdpOrgSyncPage/IdpOrgSyncPageView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ const OrganizationRow: FC<OrganizationRowProps> = ({
448448
aria-label="delete"
449449
onClick={() => onDelete(idpOrg)}
450450
>
451-
<Trash className="size-icon-sm" />
451+
<Trash />
452452
<span className="sr-only">Delete IdP mapping</span>
453453
</Button>
454454
</TableCell>

site/src/pages/OrganizationSettingsPage/UserTable/EditRolesButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export const EditRolesButton: FC<EditRolesButtonProps> = ({
135135
size="icon"
136136
className="text-content-secondary hover:text-content-primary"
137137
>
138-
<EditSquare className="size-icon-sm" />
138+
<EditSquare />
139139
</Button>
140140
</Tooltip>
141141
</PopoverTrigger>

site/tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = {
1212
sans: `"Inter Variable", system-ui, sans-serif`,
1313
},
1414
size: {
15-
"icon-md": "1.5rem",
15+
"icon-lg": "1.5rem",
1616
"icon-sm": "1.125rem",
1717
"icon-xs": "0.875rem",
1818
},

0 commit comments

Comments
 (0)