File tree Expand file tree Collapse file tree 2 files changed +12
-40
lines changed
routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs.$runParam Expand file tree Collapse file tree 2 files changed +12
-40
lines changed Original file line number Diff line number Diff line change @@ -184,25 +184,26 @@ export function DevDisconnectedBanner({ isConnected }: { isConnected: boolean |
184184 return (
185185 < Dialog >
186186 < AnimatePresence >
187- < motion . div
188- initial = { { opacity : 0 } }
189- animate = { { opacity : 1 } }
190- exit = { { opacity : 0 } }
191- transition = { { duration : 0.3 } }
192- className = "flex"
193- >
194- { isConnected === false && (
187+ { isConnected === false && (
188+ < motion . div
189+ initial = { { opacity : 0 } }
190+ animate = { { opacity : 1 } }
191+ exit = { { opacity : 0 } }
192+ transition = { { duration : 0.3 } }
193+ className = "flex"
194+ >
195195 < DialogTrigger asChild >
196196 < Button
197197 variant = "minimal/small"
198- className = "py-1 pl-1 pr-2 text-error"
198+ className = "border border-error/20 bg-error/10 py-1 pl-1 pr-2 group-hover/button:border-error/30 group-hover/button:bg-error/20"
199+ iconSpacing = "gap-1"
199200 LeadingIcon = { < ConnectionIcon isConnected = { false } /> }
200201 >
201202 Your local dev server is not connected to Trigger.dev
202203 </ Button >
203204 </ DialogTrigger >
204- ) }
205- </ motion . div >
205+ </ motion . div >
206+ ) }
206207 </ AnimatePresence >
207208 < DevPresencePanel isConnected = { isConnected } />
208209 </ Dialog >
Original file line number Diff line number Diff line change @@ -672,9 +672,6 @@ function TasksTreeView({
672672 </ div >
673673 </ div >
674674 </ div >
675- { ! isCompleted &&
676- environmentType === "DEVELOPMENT" &&
677- index === displayEvents . length - 1 && < ConnectedDevWarning /> }
678675 </ >
679676 ) }
680677 onScroll = { ( scrollTop ) => {
@@ -1276,32 +1273,6 @@ function CurrentTimeIndicator({
12761273 ) ;
12771274}
12781275
1279- function ConnectedDevWarning ( ) {
1280- const { isConnected } = useDevPresence ( ) ;
1281-
1282- return (
1283- < div
1284- className = { cn (
1285- "flex items-center overflow-hidden pl-5 pr-2 transition-opacity duration-500" ,
1286- isConnected ? "h-0 opacity-0" : "opacity-100"
1287- ) }
1288- >
1289- < Callout
1290- variant = "error"
1291- icon = { < DisconnectedIcon className = "size-5 shrink-0" /> }
1292- className = "mt-2"
1293- >
1294- < div className = "flex flex-col gap-1" >
1295- < Paragraph variant = "small" spacing >
1296- Your local dev server is not connectedr. Check you're running the CLI:
1297- </ Paragraph >
1298- < ClipboardField variant = "secondary/small" value = "npx trigger.dev@latest dev" />
1299- </ div >
1300- </ Callout >
1301- </ div >
1302- ) ;
1303- }
1304-
13051276function KeyboardShortcuts ( {
13061277 expandAllBelowDepth,
13071278 collapseAllBelowDepth,
You can’t perform that action at this time.
0 commit comments