@@ -7,8 +7,8 @@ import { Button } from "components/Button/Button";
7
7
import { FeatureStageBadge } from "components/FeatureStageBadge/FeatureStageBadge" ;
8
8
import { Input } from "components/Input/Input" ;
9
9
import { Label } from "components/Label/Label" ;
10
+ import { Link } from "components/Link/Link" ;
10
11
import { Pill } from "components/Pill/Pill" ;
11
- import { docs } from "utils/docs" ;
12
12
import {
13
13
Select ,
14
14
SelectContent ,
@@ -18,10 +18,21 @@ import {
18
18
} from "components/Select/Select" ;
19
19
import { Spinner } from "components/Spinner/Spinner" ;
20
20
import { Switch } from "components/Switch/Switch" ;
21
+ import {
22
+ Tooltip ,
23
+ TooltipContent ,
24
+ TooltipProvider ,
25
+ TooltipTrigger ,
26
+ } from "components/Tooltip/Tooltip" ;
21
27
import { UserAutocomplete } from "components/UserAutocomplete/UserAutocomplete" ;
22
28
import { type FormikContextType , useFormik } from "formik" ;
23
- import { ArrowLeft , CircleAlert , TriangleAlert , Undo2 } from "lucide-react" ;
24
- import { Link } from "components/Link/Link" ;
29
+ import {
30
+ ArrowLeft ,
31
+ CircleAlert ,
32
+ CircleHelp ,
33
+ TriangleAlert ,
34
+ Undo2 ,
35
+ } from "lucide-react" ;
25
36
import { useSyncFormParameters } from "modules/hooks/useSyncFormParameters" ;
26
37
import {
27
38
DynamicParameter ,
@@ -38,6 +49,7 @@ import {
38
49
useRef ,
39
50
useState ,
40
51
} from "react" ;
52
+ import { docs } from "utils/docs" ;
41
53
import { nameValidator } from "utils/formUtils" ;
42
54
import type { AutofillBuildParameter } from "utils/richParameters" ;
43
55
import * as Yup from "yup" ;
@@ -353,12 +365,33 @@ export const CreateWorkspacePageViewExperimental: FC<
353
365
: template . name }
354
366
</ p >
355
367
</ div >
356
- < span className = "flex flex-row items-center gap-3 " >
368
+ < span className = "flex flex-row items-center gap-2 " >
357
369
< h1 className = "text-3xl font-semibold m-0" > New workspace</ h1 >
358
- { /* <FeatureStageBadge
370
+ < FeatureStageBadge
371
+ className = "mt-1"
359
372
contentType = { "beta" }
360
373
labelText = "Dynamic parameters"
361
- /> */ }
374
+ />
375
+ < TooltipProvider delayDuration = { 100 } >
376
+ < Tooltip >
377
+ < TooltipTrigger asChild >
378
+ < CircleHelp className = "size-icon-xs text-content-secondary" />
379
+ </ TooltipTrigger >
380
+ < TooltipContent className = "max-w-xs text-sm" >
381
+ Dynamic Parameters enhances Coder's existing parameter system
382
+ with real-time validation, conditional parameter behavior, and
383
+ richer input types.
384
+ < br />
385
+ < Link
386
+ href = { docs (
387
+ "/admin/templates/extending-templates/parameters#enable-dynamic-parameters-early-access" ,
388
+ ) }
389
+ >
390
+ View docs
391
+ </ Link >
392
+ </ TooltipContent >
393
+ </ Tooltip >
394
+ </ TooltipProvider >
362
395
</ span >
363
396
364
397
{ template . deprecated && < Pill type = "warning" > Deprecated</ Pill > }
@@ -369,7 +402,8 @@ export const CreateWorkspacePageViewExperimental: FC<
369
402
variant = "outline"
370
403
onClick = { experimentalFormContext . toggleOptedOut }
371
404
>
372
- < Undo2 /> Go back to the classic workspace creation flow
405
+ < Undo2 />
406
+ Use the classic workspace creation flow
373
407
</ Button >
374
408
) }
375
409
</ header >
@@ -505,15 +539,17 @@ export const CreateWorkspacePageViewExperimental: FC<
505
539
{ parameters . length > 0 && (
506
540
< section className = "flex flex-col gap-9" >
507
541
< hgroup >
508
- < span className = "flex flex-row items-center gap-2" > < h2 className = "text-xl font-semibold m-0" > Parameters</ h2 >
509
- < FeatureStageBadge
510
- contentType = { "beta" }
511
- labelText = "Dynamic parameters"
512
- /> </ span >
542
+ < h2 className = "text-xl font-semibold m-0" > Parameters</ h2 >
513
543
< p className = "text-sm text-content-secondary m-0" >
514
544
These are the settings used by your template. Immutable
515
545
parameters cannot be modified once the workspace is created.
516
- < Link href = { docs ( "/admin/templates/extending-templates/parameters#enable-dynamic-parameters-early-access" ) } > View docs</ Link >
546
+ < Link
547
+ href = { docs (
548
+ "/admin/templates/extending-templates/parameters#enable-dynamic-parameters-early-access" ,
549
+ ) }
550
+ >
551
+ View docs
552
+ </ Link >
517
553
</ p >
518
554
</ hgroup >
519
555
{ diagnostics . length > 0 && (
0 commit comments