File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs._index Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { ListChecks, ListX } from "lucide-react";
8
8
import { Suspense , useState } from "react" ;
9
9
import { TypedAwait , typeddefer , useTypedLoaderData } from "remix-typedjson" ;
10
10
import { TaskIcon } from "~/assets/icons/TaskIcon" ;
11
+ import { DevPresenceBanner , useDevPresence } from "~/components/DevPresence" ;
11
12
import { StepContentContainer } from "~/components/StepContentContainer" ;
12
13
import { MainCenteredContainer , PageBody } from "~/components/layout/AppLayout" ;
13
14
import { Button , LinkButton } from "~/components/primitives/Buttons" ;
@@ -161,11 +162,26 @@ export default function Page() {
161
162
const { data, rootOnlyDefault } = useTypedLoaderData < typeof loader > ( ) ;
162
163
const navigation = useNavigation ( ) ;
163
164
const isLoading = navigation . state !== "idle" ;
165
+ const { isConnected } = useDevPresence ( ) ;
166
+ const environment = useEnvironment ( ) ;
164
167
165
168
return (
166
169
< >
167
170
< NavBar >
168
171
< PageTitle title = "Runs" />
172
+ < AnimatePresence >
173
+ { environment . type === "DEVELOPMENT" && ! isConnected && (
174
+ < motion . div
175
+ initial = { { opacity : 0 } }
176
+ animate = { { opacity : 1 } }
177
+ exit = { { opacity : 0 } }
178
+ transition = { { duration : 0.3 } }
179
+ className = "flex"
180
+ >
181
+ < DevPresenceBanner />
182
+ </ motion . div >
183
+ ) }
184
+ </ AnimatePresence >
169
185
< PageAccessories >
170
186
< LinkButton
171
187
variant = { "docs/small" }
You can’t perform that action at this time.
0 commit comments