From 0503ded1579b7ac52a4c32728e2e6a221f0d985e Mon Sep 17 00:00:00 2001 From: Jules Belveze <32683010+JulesBelveze@users.noreply.github.com> Date: Sat, 23 Nov 2024 14:41:48 +0100 Subject: [PATCH] [front] - refactor: replace `Searchbar` with `SearchInput` (#8863) * [front] - refactor: replace Searchbar with SearchInput across components - Updated all instances of Searchbar component to the newer SearchInput for consistency and better UX - Adjusted SearchInput usage to remove size prop where applicable, as it's likely handled by the component's internal styling now [front] - refactor: update @dust-tt/sparkle dependency version - Bumped the @dust-tt/sparkle version to "^0.2.324-rc-1" to align with the latest component API changes [front] - refactor: remove size prop from SearchInput in AssistantBrowser - Removed the now-unnecessary size prop from the SearchInput component in AssistantBrowser after library update * [front] - refactor: remove size prop from AssistantPicker search input - The search bar in the AssistantPicker component no longer has a fixed small size to improve UI flexibility * [front] - fix: upgrade @dust-tt/sparkle to stable version - Moved from release candidate version 0.2.324-rc-1 to stable version 0.2.324 in package dependencies - Updated package-lock.json to reflect the new version's resolved URL and integrity sha --- front/components/ContentNodeTree.tsx | 4 ++-- front/components/assistant/AssistantBrowser.tsx | 5 ++--- front/components/assistant/AssistantPicker.tsx | 1 - front/components/data_source/DataSourcePicker.tsx | 4 ++-- front/components/poke/templates/TemplatesDataTable.tsx | 4 ++-- front/components/spaces/SearchMembersPopover.tsx | 4 ++-- front/components/spaces/SpaceAppsList.tsx | 4 ++-- front/components/spaces/SpaceCategoriesList.tsx | 4 ++-- .../components/spaces/SpaceDataSourceViewContentList.tsx | 4 ++-- front/components/spaces/SpaceResourcesList.tsx | 4 ++-- front/components/tables/TablePicker.tsx | 4 ++-- front/package-lock.json | 8 ++++---- front/package.json | 2 +- front/pages/w/[wId]/builder/assistants/create.tsx | 5 ++--- front/pages/w/[wId]/builder/assistants/index.tsx | 4 ++-- front/pages/w/[wId]/members/index.tsx | 4 ++-- 16 files changed, 31 insertions(+), 34 deletions(-) diff --git a/front/components/ContentNodeTree.tsx b/front/components/ContentNodeTree.tsx index b8211229e2c5..d82a6ffaec6f 100644 --- a/front/components/ContentNodeTree.tsx +++ b/front/components/ContentNodeTree.tsx @@ -4,7 +4,7 @@ import { ExternalLinkIcon, IconButton, ListCheckIcon, - Searchbar, + SearchInput, Tooltip, Tree, } from "@dust-tt/sparkle"; @@ -282,7 +282,7 @@ function ContentNodeTreeChildren({ <>