Skip to content

Commit 11e069b

Browse files
samejrericallam
authored andcommitted
Layout improvements to streams inspector
1 parent bd25575 commit 11e069b

File tree

1 file changed

+16
-16
lines changed
  • apps/webapp/app/routes/resources.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs.$runParam.streams.$streamKey

1 file changed

+16
-16
lines changed

apps/webapp/app/routes/resources.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs.$runParam.streams.$streamKey/route.tsx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { LoaderFunctionArgs } from "@remix-run/server-runtime";
2-
import { SSEStreamPart, SSEStreamSubscription } from "@trigger.dev/core/v3";
1+
import { type SSEStreamPart, SSEStreamSubscription } from "@trigger.dev/core/v3";
2+
import { BoltIcon, BoltSlashIcon } from "@heroicons/react/20/solid";
3+
import { type LoaderFunctionArgs } from "@remix-run/server-runtime";
34
import { useEffect, useRef, useState } from "react";
45
import { Paragraph } from "~/components/primitives/Paragraph";
56
import { $replica } from "~/db.server";
@@ -136,28 +137,27 @@ export function RealtimeStreamViewer({
136137
.length;
137138

138139
return (
139-
<div className="flex h-full flex-col overflow-hidden border-t border-grid-bright">
140+
<div className="flex h-full flex-col overflow-hidden">
140141
{/* Header */}
141-
<div className="flex items-center justify-between border-b border-grid-bright bg-charcoal-850 px-3 py-2">
142-
<div className="flex items-center gap-3">
143-
<Paragraph variant="extra-small/bright" className="mb-0">
142+
<div className="flex items-center justify-between border-b border-grid-bright bg-background-bright px-3 py-2">
143+
<Paragraph variant="small/bright" className="mb-0">
144144
Stream: <span className="font-mono text-text-dimmed">{streamKey}</span>
145145
</Paragraph>
146-
<div className="flex items-center gap-1.5">
147-
<div
148-
className={cn(
149-
"size-2 rounded-full transition-colors",
150-
isConnected ? "bg-green-500" : "bg-charcoal-500"
151-
)}
152-
/>
153-
<Paragraph variant="extra-small" className="mb-0">
146+
<div className="flex items-center gap-3">
147+
<div className="flex items-center gap-0.5">
148+
{isConnected ? (
149+
<BoltIcon className={cn("size-3.5 animate-pulse text-success")} />
150+
) : (
151+
<BoltSlashIcon className={cn("size-3.5 text-text-dimmed")} />
152+
)}
153+
<Paragraph variant="small" className="mb-0">
154154
{isConnected ? "Connected" : "Disconnected"}
155155
</Paragraph>
156156
</div>
157-
</div>
158-
<Paragraph variant="extra-small" className="mb-0">
157+
<Paragraph variant="small" className="mb-0">
159158
{chunks.length} {chunks.length === 1 ? "chunk" : "chunks"}
160159
</Paragraph>
160+
</div>
161161
</div>
162162

163163
{/* Content */}

0 commit comments

Comments
 (0)