- {isLoading ?
Loading chats...
: null}
+ {isLoading
+ ? Array.from({ length: 4 }).map((_, index) => (
+
+ ))
+ : null}
{!isLoading && threads.length === 0 ? (
No saved chats yet.
) : null}
@@ -479,6 +490,33 @@ function ThreadDrawer({
);
}
+function TaviChatSkeleton() {
+ return (
+
+ );
+}
+
export function AiHelperPage() {
const navigate = useNavigate();
const [searchParams, setSearchParams] = useSearchParams();
@@ -1289,11 +1327,7 @@ export function AiHelperPage() {
onDidDismiss={() => setThreadPendingRename(null)}
/>
- {isThreadLoading && messages.length === 0 ? (
-
-
-
- ) : null}
+ {isThreadLoading && messages.length === 0 ?
: null}
{!isThreadLoading && messages.length === 0 ? (
@@ -1406,7 +1440,7 @@ export function AiHelperPage() {
aria-label="Send message"
>
{isSending ? (
-
+
) : (