From d5d9fa5bc9ce4e9e2ad18e26e9110f39ac153413 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Thu, 27 Feb 2025 23:48:10 +0700 Subject: [PATCH] added loading bar (dev only) --- .../features/ToolbarTopCenter/index.tsx | 42 +++++++++++++++++-- .../realtime/src/components/ui/LoadingBar.tsx | 11 ++--- 2 files changed, 43 insertions(+), 10 deletions(-) diff --git a/frontend/realtime/src/components/features/ToolbarTopCenter/index.tsx b/frontend/realtime/src/components/features/ToolbarTopCenter/index.tsx index 6f7a2acdb6..45d9a2406d 100644 --- a/frontend/realtime/src/components/features/ToolbarTopCenter/index.tsx +++ b/frontend/realtime/src/components/features/ToolbarTopCenter/index.tsx @@ -3,6 +3,7 @@ import { Button } from "~/components/ui/Button"; import { useState } from "react"; import { BaseDialog } from "~/components/ui/BaseDialog"; import { DialogTitle } from "@headlessui/react"; +import { LoadingBar, LoadingBarStatus } from "~/components/ui"; interface ModelButtonProps { iconSrc: string; @@ -52,8 +53,9 @@ const ModelButton = ({ export const ToolbarTopCenter = () => { return ( - <> - {import.meta.env.DEV && ( // only show in dev mode for now +
+ {/* Model selection buttons (only shown in dev mode for now) */} + {import.meta.env.DEV && (
{
)} - + + {/* Loading models indicator (only shown in dev mode for now) */} + {import.meta.env.DEV && ( +
+ +
+ + + + + Downloading models - 70% +
+
+ )} +
); }; diff --git a/frontend/realtime/src/components/ui/LoadingBar.tsx b/frontend/realtime/src/components/ui/LoadingBar.tsx index 7456d482a3..147fb5dd1a 100644 --- a/frontend/realtime/src/components/ui/LoadingBar.tsx +++ b/frontend/realtime/src/components/ui/LoadingBar.tsx @@ -35,17 +35,14 @@ export const LoadingBar = ({ >