From b2919220fb003ecbee2c126f26c35a47a0d713d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=A9douard=20wautier?= Date: Mon, 25 Mar 2024 16:35:19 +0100 Subject: [PATCH] Deploying the new Spinner --- .../DataSourceResourceSelectorTree.tsx | 4 ++-- front/components/app/blocks/Block.tsx | 6 ++--- .../components/assistant/AssistantDetails.tsx | 4 ++-- .../AssistantBuilderTablesModal.tsx | 4 ++-- .../assistant_builder/InstructionScreen.tsx | 4 ++-- front/pages/poke/[wId]/index.tsx | 4 ++-- front/pages/poke/plans.tsx | 4 ++-- front/pages/w/[wId]/a/[aId]/execute/index.tsx | 5 ++-- front/pages/w/[wId]/subscription/index.tsx | 4 ++-- sparkle/src/components/Chip.tsx | 10 +++++--- sparkle/src/components/Dialog.tsx | 4 ++-- sparkle/src/components/Tree.tsx | 4 ++-- sparkle/src/stories/Chip.stories.tsx | 23 +++++++++++++++++++ sparkle/tailwind.config.js | 13 ++++++++++- 14 files changed, 65 insertions(+), 28 deletions(-) diff --git a/front/components/DataSourceResourceSelectorTree.tsx b/front/components/DataSourceResourceSelectorTree.tsx index f04f9a750f93..9064afafdc81 100644 --- a/front/components/DataSourceResourceSelectorTree.tsx +++ b/front/components/DataSourceResourceSelectorTree.tsx @@ -4,7 +4,7 @@ import { ChevronDownIcon, ChevronRightIcon, DocumentTextIcon, - Spinner, + Spinner2, } from "@dust-tt/sparkle"; import type { ContentNode, @@ -159,7 +159,7 @@ function DataSourceResourceSelectorChildren({ return ( <> {isResourcesLoading ? ( - + ) : (
{resources.map((r) => { diff --git a/front/components/app/blocks/Block.tsx b/front/components/app/blocks/Block.tsx index 51208f72c30f..1703075d32d9 100644 --- a/front/components/app/blocks/Block.tsx +++ b/front/components/app/blocks/Block.tsx @@ -2,6 +2,7 @@ import { ArrowPathIcon, ChevronDownIcon, ChevronUpIcon, + Spinner2, Square3Stack3DStrokeIcon, TrashIcon, } from "@dust-tt/sparkle"; @@ -15,7 +16,6 @@ import type { BlockType, RunType } from "@dust-tt/types"; import { useEffect, useState } from "react"; import NewBlock from "@app/components/app/NewBlock"; -import { Spinner } from "@app/components/Spinner"; import { classNames } from "@app/lib/utils"; import Output from "./Output"; @@ -194,7 +194,7 @@ export default function Block({ !["map", "reduce", "end"].includes(block.type) ? (
- +
{` ${status.success_count} successes ${status.error_count} errors`}
@@ -202,7 +202,7 @@ export default function Block({
- +
{` 0 successes 0 errors`} diff --git a/front/components/assistant/AssistantDetails.tsx b/front/components/assistant/AssistantDetails.tsx index b9205fc45f46..35ccd9b79726 100644 --- a/front/components/assistant/AssistantDetails.tsx +++ b/front/components/assistant/AssistantDetails.tsx @@ -7,7 +7,7 @@ import { IconButton, Page, ServerIcon, - Spinner, + Spinner2, Tree, } from "@dust-tt/sparkle"; import type { @@ -508,7 +508,7 @@ function TablesQuerySection({ return (
{isLoading ? ( - + ) : !tablesQueryConfig.tables.length ? ( No tables are currently linked to this assistant. ) : tables ? ( diff --git a/front/components/assistant_builder/AssistantBuilderTablesModal.tsx b/front/components/assistant_builder/AssistantBuilderTablesModal.tsx index 5bdd31b2a45f..9e933e9ee03d 100644 --- a/front/components/assistant_builder/AssistantBuilderTablesModal.tsx +++ b/front/components/assistant_builder/AssistantBuilderTablesModal.tsx @@ -6,7 +6,7 @@ import { Page, Searchbar, ServerIcon, - Spinner, + Spinner2, } from "@dust-tt/sparkle"; import type { ContentNode, WorkspaceType } from "@dust-tt/types"; import type { @@ -321,7 +321,7 @@ export default function AssistantBuilderTablesModal({ >
{isInitializingNodes || isInitializingParents ? ( - + ) : !selectedDataSource ? (
Tips
- {loading && } + {loading && }
{(() => { diff --git a/front/pages/poke/[wId]/index.tsx b/front/pages/poke/[wId]/index.tsx index a576bed7341b..caf433e15042 100644 --- a/front/pages/poke/[wId]/index.tsx +++ b/front/pages/poke/[wId]/index.tsx @@ -3,7 +3,7 @@ import { Collapsible, DropdownMenu, Modal, - Spinner, + Spinner2, } from "@dust-tt/sparkle"; import type { AgentConfigurationType, @@ -402,7 +402,7 @@ const WorkspacePage = ({ {isLoading ? (

Deleting workspace data... - +

) : (