Skip to content
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

[WEB-784] chore: create workspace fields as required indication #4003

Merged
merged 2 commits into from
Mar 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 11 additions & 3 deletions web/components/workspace/create-workspace-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ export const CreateWorkspaceForm: FC<Props> = observer((props) => {
<form className="space-y-6 sm:space-y-9" onSubmit={handleSubmit(handleCreateWorkspace)}>
<div className="space-y-6 sm:space-y-7">
<div className="space-y-1 text-sm">
<label htmlFor="workspaceName">Workspace Name</label>
<label htmlFor="workspaceName">
Workspace Name
<span className="ml-0.5 text-red-500">*</span>
</label>
<Controller
control={control}
name="name"
Expand Down Expand Up @@ -153,7 +156,10 @@ export const CreateWorkspaceForm: FC<Props> = observer((props) => {
/>
</div>
<div className="space-y-1 text-sm">
<label htmlFor="workspaceUrl">Workspace URL</label>
<label htmlFor="workspaceUrl">
Workspace URL
<span className="ml-0.5 text-red-500">*</span>
</label>
<div className="flex w-full items-center rounded-md border-[0.5px] border-custom-border-200 px-3">
<span className="whitespace-nowrap text-sm text-custom-text-200">{window && window.location.host}/</span>
<Controller
Expand Down Expand Up @@ -185,7 +191,9 @@ export const CreateWorkspaceForm: FC<Props> = observer((props) => {
)}
</div>
<div className="space-y-1 text-sm">
<span>What size is your organization?</span>
<span>
What size is your organization?<span className="ml-0.5 text-red-500">*</span>
</span>
<div className="w-full">
<Controller
name="organization_size"
Expand Down