@@ -5,14 +5,14 @@ import {
55 ChatBubbleLeftRightIcon ,
66 ClockIcon ,
77 PlusIcon ,
8+ QuestionMarkCircleIcon ,
89 RectangleGroupIcon ,
910 RectangleStackIcon ,
1011 ServerStackIcon ,
1112 Squares2X2Icon ,
1213} from "@heroicons/react/20/solid" ;
1314import { useLocation } from "react-use" ;
1415import { BranchEnvironmentIconSmall } from "~/assets/icons/EnvironmentIcons" ;
15- import { TaskIcon } from "~/assets/icons/TaskIcon" ;
1616import { WaitpointTokenIcon } from "~/assets/icons/WaitpointTokenIcon" ;
1717import openBulkActionsPanel from "~/assets/images/open-bulk-actions-panel.png" ;
1818import selectRunsIndividually from "~/assets/images/select-runs-individually.png" ;
@@ -32,8 +32,9 @@ import {
3232 v3NewProjectAlertPath ,
3333 v3NewSchedulePath ,
3434} from "~/utils/pathBuilder" ;
35+ import { AskAI } from "./AskAI" ;
3536import { InlineCode } from "./code/InlineCode" ;
36- import { environmentFullTitle } from "./environments/EnvironmentLabel" ;
37+ import { environmentFullTitle , EnvironmentIcon } from "./environments/EnvironmentLabel" ;
3738import { Feedback } from "./Feedback" ;
3839import { EnvironmentSelector } from "./navigation/EnvironmentSelector" ;
3940import { Button , LinkButton } from "./primitives/Buttons" ;
@@ -42,7 +43,13 @@ import { InfoPanel } from "./primitives/InfoPanel";
4243import { Paragraph } from "./primitives/Paragraph" ;
4344import { StepNumber } from "./primitives/StepNumber" ;
4445import { 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" ;
4653import { StepContentContainer } from "./StepContentContainer" ;
4754import { V4Badge } from "./V4Badge" ;
4855
@@ -87,26 +94,60 @@ export function HasNoTasksDev() {
8794
8895export function HasNoTasksDeployed ( { environment } : { environment : MinimumEnvironment } ) {
8996 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 >
110151 ) ;
111152}
112153
0 commit comments