Skip to content

chore: revert "refactor(site): verify external auth before display ws form (#11777)" #12183

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

Merged
merged 11 commits into from
Feb 22, 2024
Prev Previous commit
Next Next commit
duplicate fields
  • Loading branch information
aslilac committed Feb 20, 2024
commit bc6f96aa087f1a9923f98d92059c9914ea8c108d
34 changes: 0 additions & 34 deletions site/src/pages/CreateWorkspacePage/CreateWorkspacePageView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,40 +240,6 @@ export const CreateWorkspacePageView: FC<CreateWorkspacePageViewProps> = ({
listed below.
</Alert>
)}
<div>
<TextField
{...getFieldHelpers("name")}
disabled={creatingWorkspace}
// resetMutation facilitates the clearing of validation errors
onChange={onChangeTrimmed(form, resetMutation)}
fullWidth
label="Workspace Name"
/>
<FormHelperText data-chromatic="ignore">
Need a suggestion?{" "}
<Button
variant="text"
css={styles.nameSuggestion}
onClick={async () => {
await form.setFieldValue("name", suggestedName);
rerollSuggestedName();
}}
>
{suggestedName}
</Button>
</FormHelperText>
</div>

{permissions.createWorkspaceForUser && (
<UserAutocomplete
value={owner}
onChange={(user) => {
setOwner(user ?? defaultOwner);
}}
label="Owner"
size="medium"
/>
)}
{externalAuth.map((auth) => (
<ExternalAuthButton
key={auth.id}
Expand Down