@@ -2,6 +2,7 @@ import TextField from "@mui/material/TextField";
2
2
import { isApiValidationError } from "api/errors" ;
3
3
import type { CreateOrganizationRequest } from "api/typesGenerated" ;
4
4
import { ErrorAlert } from "components/Alert/ErrorAlert" ;
5
+ import { Badges , PremiumBadge } from "components/Badges/Badges" ;
5
6
import { ChooseOne , Cond } from "components/Conditionals/ChooseOne" ;
6
7
import {
7
8
FormFields ,
@@ -11,6 +12,12 @@ import {
11
12
} from "components/Form/Form" ;
12
13
import { IconField } from "components/IconField/IconField" ;
13
14
import { Paywall } from "components/Paywall/Paywall" ;
15
+ import { PopoverPaywall } from "components/Paywall/PopoverPaywall" ;
16
+ import {
17
+ Popover ,
18
+ PopoverContent ,
19
+ PopoverTrigger ,
20
+ } from "components/Popover/Popover" ;
14
21
import { SettingsHeader } from "components/SettingsHeader/SettingsHeader" ;
15
22
import { Stack } from "components/Stack/Stack" ;
16
23
import { useFormik } from "formik" ;
@@ -58,17 +65,39 @@ export const CreateOrganizationPageView: FC<
58
65
const getFieldHelpers = getFormHelpers ( form , error ) ;
59
66
60
67
return (
61
- < Stack spacing = { 3 } >
62
- < SettingsHeader
63
- title = "New Organization"
64
- description = "Organize your deployment into multiple platform teams."
65
- />
68
+ < Stack >
69
+ < div >
70
+ < SettingsHeader
71
+ title = "New Organization"
72
+ description = "Organize your deployment into multiple platform teams."
73
+ />
74
+
75
+ { Boolean ( error ) && ! isApiValidationError ( error ) && (
76
+ < div css = { { marginBottom : 32 } } >
77
+ < ErrorAlert error = { error } />
78
+ </ div >
79
+ ) }
80
+
81
+ < Badges >
82
+ < Popover mode = "hover" >
83
+ { isEntitled && (
84
+ < PopoverTrigger >
85
+ < span >
86
+ < PremiumBadge />
87
+ </ span >
88
+ </ PopoverTrigger >
89
+ ) }
66
90
67
- { Boolean ( error ) && ! isApiValidationError ( error ) && (
68
- < div css = { { marginBottom : 32 } } >
69
- < ErrorAlert error = { error } />
70
- </ div >
71
- ) }
91
+ < PopoverContent css = { { transform : "translateY(-28px)" } } >
92
+ < PopoverPaywall
93
+ message = "Organizations"
94
+ description = "Create multiple organizations within a single Coder deployment, allowing several platform teams to operate with isolated users, templates, and distinct underlying infrastructure."
95
+ documentationLink = { docs ( "/guides/using-organizations" ) }
96
+ />
97
+ </ PopoverContent >
98
+ </ Popover >
99
+ </ Badges >
100
+ </ div >
72
101
73
102
< ChooseOne >
74
103
< Cond condition = { ! isEntitled } >
0 commit comments