@@ -12,7 +12,6 @@ import {
1212} from "@heroicons/react/20/solid" ;
1313import { useLocation } from "react-use" ;
1414import { BranchEnvironmentIconSmall } from "~/assets/icons/EnvironmentIcons" ;
15- import { TaskIcon } from "~/assets/icons/TaskIcon" ;
1615import { WaitpointTokenIcon } from "~/assets/icons/WaitpointTokenIcon" ;
1716import openBulkActionsPanel from "~/assets/images/open-bulk-actions-panel.png" ;
1817import selectRunsIndividually from "~/assets/images/select-runs-individually.png" ;
@@ -33,7 +32,7 @@ import {
3332 v3NewSchedulePath ,
3433} from "~/utils/pathBuilder" ;
3534import { InlineCode } from "./code/InlineCode" ;
36- import { environmentFullTitle } from "./environments/EnvironmentLabel" ;
35+ import { environmentFullTitle , EnvironmentIcon } from "./environments/EnvironmentLabel" ;
3736import { Feedback } from "./Feedback" ;
3837import { EnvironmentSelector } from "./navigation/EnvironmentSelector" ;
3938import { Button , LinkButton } from "./primitives/Buttons" ;
@@ -42,7 +41,12 @@ import { InfoPanel } from "./primitives/InfoPanel";
4241import { Paragraph } from "./primitives/Paragraph" ;
4342import { StepNumber } from "./primitives/StepNumber" ;
4443import { TextLink } from "./primitives/TextLink" ;
45- import { InitCommandV3 , PackageManagerProvider , TriggerDevStepV3 } from "./SetupCommands" ;
44+ import {
45+ InitCommandV3 ,
46+ PackageManagerProvider ,
47+ TriggerDeployStep ,
48+ TriggerDevStepV3 ,
49+ } from "./SetupCommands" ;
4650import { StepContentContainer } from "./StepContentContainer" ;
4751import { V4Badge } from "./V4Badge" ;
4852
@@ -87,26 +91,44 @@ export function HasNoTasksDev() {
8791
8892export function HasNoTasksDeployed ( { environment } : { environment : MinimumEnvironment } ) {
8993 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 >
94+ < PackageManagerProvider >
95+ < div >
96+ < div className = "mb-6 flex items-center justify-between border-b" >
97+ < div className = "mb-2 flex items-center gap-2" >
98+ < EnvironmentIcon environment = { environment } className = "-ml-1 size-8" />
99+ < Header1 > Deploy your tasks to { environmentFullTitle ( environment ) } </ Header1 >
100+ </ div >
101+ < div className = "flex items-center gap-2" >
102+ < LinkButton
103+ variant = "minimal/small"
104+ LeadingIcon = { BookOpenIcon }
105+ to = { docsPath ( "/troubleshooting#deployment" ) }
106+ >
107+ Troubleshooting
108+ </ LinkButton >
109+ </ div >
110+ </ div >
111+ < StepNumber stepNumber = "1a" title = "Run the CLI 'deploy' command" />
112+ < StepContentContainer >
113+ < Paragraph spacing >
114+ This will deploy your tasks to the { environmentFullTitle ( environment ) } environment. Read
115+ the < TextLink to = { docsPath ( "deployment/overview" ) } > full guide</ TextLink > .
116+ </ Paragraph >
117+ < TriggerDeployStep environment = { environment } />
118+ </ StepContentContainer >
119+ < StepNumber stepNumber = "1b" title = "Or deploy using GitHub Actions" />
120+ < StepContentContainer >
121+ < Paragraph spacing >
122+ Read the < TextLink to = { docsPath ( "github-actions" ) } > GitHub Actions guide</ TextLink > to
123+ get started.
124+ </ Paragraph >
125+ </ StepContentContainer >
126+ < StepNumber stepNumber = "2" title = "Waiting for tasks to deploy" displaySpinner />
127+ < StepContentContainer >
128+ < Paragraph > This page will automatically refresh when your tasks are deployed.</ Paragraph >
129+ </ StepContentContainer >
130+ </ div >
131+ </ PackageManagerProvider >
110132 ) ;
111133}
112134
0 commit comments