Skip to content

Commit 8356ec0

Browse files
show recording and pending status
1 parent cc1d0de commit 8356ec0

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ function RecordingItem(props: {
234234
</Show>
235235
<div class="flex flex-col gap-2">
236236
<span>{props.recording.prettyName}</span>
237-
<div class="flex">
237+
<div class="flex space-x-1">
238238
<div
239239
class={cx(
240240
"px-2 py-0.5 flex items-center gap-1.5 font-medium text-[11px] text-gray-12 rounded-full w-fit",
@@ -249,6 +249,25 @@ function RecordingItem(props: {
249249
<p>{firstLetterUpperCase()}</p>
250250
</div>
251251

252+
<Show
253+
when={
254+
"recording" in props.recording.meta
255+
? props.recording.meta.recording
256+
: undefined
257+
}
258+
>
259+
<div
260+
class={cx(
261+
"px-2 py-0.5 flex items-center gap-1.5 font-medium text-[11px] text-gray-12 rounded-full w-fit bg-orange-600",
262+
)}
263+
>
264+
{/* TODO: Get a proper icon here */}
265+
<IconCapInstant class="invert size-2.5 dark:invert-0" />
266+
<p>RECORDING</p>
267+
</div>
268+
</Show>
269+
270+
{/* TODO: Account for studio mode vs instant mode error */}
252271
<Show
253272
when={
254273
"error" in props.recording.meta
@@ -259,8 +278,7 @@ function RecordingItem(props: {
259278
{(error) => (
260279
<div
261280
class={cx(
262-
"px-2 py-0.5 flex items-center gap-1.5 font-medium text-[11px] text-gray-12 rounded-full w-fit",
263-
mode() === "instant" ? "bg-blue-100" : "bg-gray-3",
281+
"px-2 py-0.5 flex items-center gap-1.5 font-medium text-[11px] text-gray-12 rounded-full w-fit bg-red-600",
264282
)}
265283
>
266284
{/* TODO: Get a proper icon here */}

0 commit comments

Comments
 (0)