@@ -5,14 +5,14 @@ import {
5
5
ChatBubbleLeftRightIcon ,
6
6
ClockIcon ,
7
7
PlusIcon ,
8
+ QuestionMarkCircleIcon ,
8
9
RectangleGroupIcon ,
9
10
RectangleStackIcon ,
10
11
ServerStackIcon ,
11
12
Squares2X2Icon ,
12
13
} from "@heroicons/react/20/solid" ;
13
14
import { useLocation } from "react-use" ;
14
15
import { BranchEnvironmentIconSmall } from "~/assets/icons/EnvironmentIcons" ;
15
- import { TaskIcon } from "~/assets/icons/TaskIcon" ;
16
16
import { WaitpointTokenIcon } from "~/assets/icons/WaitpointTokenIcon" ;
17
17
import openBulkActionsPanel from "~/assets/images/open-bulk-actions-panel.png" ;
18
18
import selectRunsIndividually from "~/assets/images/select-runs-individually.png" ;
@@ -32,8 +32,9 @@ import {
32
32
v3NewProjectAlertPath ,
33
33
v3NewSchedulePath ,
34
34
} from "~/utils/pathBuilder" ;
35
+ import { AskAI } from "./AskAI" ;
35
36
import { InlineCode } from "./code/InlineCode" ;
36
- import { environmentFullTitle } from "./environments/EnvironmentLabel" ;
37
+ import { environmentFullTitle , EnvironmentIcon } from "./environments/EnvironmentLabel" ;
37
38
import { Feedback } from "./Feedback" ;
38
39
import { EnvironmentSelector } from "./navigation/EnvironmentSelector" ;
39
40
import { Button , LinkButton } from "./primitives/Buttons" ;
@@ -42,7 +43,13 @@ import { InfoPanel } from "./primitives/InfoPanel";
42
43
import { Paragraph } from "./primitives/Paragraph" ;
43
44
import { StepNumber } from "./primitives/StepNumber" ;
44
45
import { TextLink } from "./primitives/TextLink" ;
45
- import { InitCommandV3 , PackageManagerProvider , TriggerDevStepV3 } from "./SetupCommands" ;
46
+ import { SimpleTooltip } from "./primitives/Tooltip" ;
47
+ import {
48
+ InitCommandV3 ,
49
+ PackageManagerProvider ,
50
+ TriggerDeployStep ,
51
+ TriggerDevStepV3 ,
52
+ } from "./SetupCommands" ;
46
53
import { StepContentContainer } from "./StepContentContainer" ;
47
54
import { V4Badge } from "./V4Badge" ;
48
55
@@ -87,26 +94,60 @@ export function HasNoTasksDev() {
87
94
88
95
export function HasNoTasksDeployed ( { environment } : { environment : MinimumEnvironment } ) {
89
96
return (
90
- < InfoPanel
91
- title = { `You don't have any deployed tasks in ${ environmentFullTitle ( environment ) } ` }
92
- icon = { TaskIcon }
93
- iconClassName = "text-tasks"
94
- panelClassName = "max-w-full"
95
- accessory = {
96
- < LinkButton
97
- to = { docsPath ( "deployment/overview" ) }
98
- variant = "docs/small"
99
- LeadingIcon = { BookOpenIcon }
100
- >
101
- How to deploy tasks
102
- </ LinkButton >
103
- }
104
- >
105
- < Paragraph spacing variant = "small" >
106
- Run the < TextLink to = { docsPath ( "deployment/overview" ) } > CLI deploy command</ TextLink > to
107
- deploy your tasks to the { environmentFullTitle ( environment ) } environment.
108
- </ Paragraph >
109
- </ InfoPanel >
97
+ < PackageManagerProvider >
98
+ < div >
99
+ < div className = "mb-6 flex items-center justify-between border-b" >
100
+ < div className = "mb-2 flex items-center gap-2" >
101
+ < EnvironmentIcon environment = { environment } className = "-ml-1 size-8" />
102
+ < Header1 > Deploy your tasks to { environmentFullTitle ( environment ) } </ Header1 >
103
+ </ div >
104
+ < div className = "flex items-center" >
105
+ < SimpleTooltip
106
+ button = {
107
+ < LinkButton
108
+ variant = "small-menu-item"
109
+ LeadingIcon = { BookOpenIcon }
110
+ leadingIconClassName = "text-blue-500"
111
+ to = { docsPath ( "deployment/overview" ) }
112
+ />
113
+ }
114
+ content = "Deploy docs"
115
+ />
116
+ < SimpleTooltip
117
+ button = {
118
+ < LinkButton
119
+ variant = "small-menu-item"
120
+ LeadingIcon = { QuestionMarkCircleIcon }
121
+ leadingIconClassName = "text-blue-500"
122
+ to = { docsPath ( "troubleshooting#deployment" ) }
123
+ />
124
+ }
125
+ content = "Troubleshooting docs"
126
+ />
127
+ < AskAI />
128
+ </ div >
129
+ </ div >
130
+ < StepNumber stepNumber = "1a" title = "Run the CLI 'deploy' command" />
131
+ < StepContentContainer >
132
+ < Paragraph spacing >
133
+ This will deploy your tasks to the { environmentFullTitle ( environment ) } environment. Read
134
+ the < TextLink to = { docsPath ( "deployment/overview" ) } > full guide</ TextLink > .
135
+ </ Paragraph >
136
+ < TriggerDeployStep environment = { environment } />
137
+ </ StepContentContainer >
138
+ < StepNumber stepNumber = "1b" title = "Or deploy using GitHub Actions" />
139
+ < StepContentContainer >
140
+ < Paragraph spacing >
141
+ Read the < TextLink to = { docsPath ( "github-actions" ) } > GitHub Actions guide</ TextLink > to
142
+ get started.
143
+ </ Paragraph >
144
+ </ StepContentContainer >
145
+ < StepNumber stepNumber = "2" title = "Waiting for tasks to deploy" displaySpinner />
146
+ < StepContentContainer >
147
+ < Paragraph > This page will automatically refresh when your tasks are deployed.</ Paragraph >
148
+ </ StepContentContainer >
149
+ </ div >
150
+ </ PackageManagerProvider >
110
151
) ;
111
152
}
112
153
0 commit comments