Skip to content

Commit

Permalink
[front/assistant_builder] - refactor: update icons for data source se…
Browse files Browse the repository at this point in the history
…lectors

 - Change the icon for the "Websites" data source option to `GlobeAltIcon` for better representation
 - Update icons for "Select Websites", "Select Dust App", and other relevant modals to match the new icon choice
 - Replace `CloudArrowDownIcon` with `GlobeAltIcon` across various components to maintain consistency in the UI
  • Loading branch information
Jules authored and Jules committed Aug 1, 2024
1 parent 7a488e6 commit 9472d4d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {
CloudArrowDownIcon,
CloudArrowLeftRightIcon,
FolderIcon,
GlobeAltIcon,
Item,
Modal,
Page,
Expand Down Expand Up @@ -373,7 +374,7 @@ function PickDataSource({
{shouldDisplayWebsiteEntry && (
<Item.Navigation
label="Websites"
icon={CloudArrowDownIcon}
icon={GlobeAltIcon}
onClick={onPickWebsites}
/>
)}
Expand Down Expand Up @@ -504,7 +505,7 @@ function FolderOrWebsiteResourceSelector({
<Page>
<Page.Header
title={type === "folder" ? "Select Folders" : "Select Websites"}
icon={type === "folder" ? FolderIcon : CloudArrowDownIcon}
icon={type === "folder" ? FolderIcon : GlobeAltIcon}
description={`Select the ${
type === "folder" ? "folders" : "websites"
} that will be used by the assistant as a source for its answers.`}
Expand Down Expand Up @@ -580,7 +581,7 @@ function FolderOrWebsiteTree({
type={type === "folder" ? "leaf" : "node"}
label={dataSource.name}
variant="folder"
visual={type === "folder" ? <FolderIcon /> : <CloudArrowDownIcon />}
visual={type === "folder" ? <FolderIcon /> : <GlobeAltIcon />}
className="whitespace-nowrap"
checkbox={{
checked: currentConfig?.isSelectAll ?? false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import {
CloudArrowDownIcon,
CommandLineIcon,
Item,
Modal,
Page,
} from "@dust-tt/sparkle";
import { CommandLineIcon, Item, Modal, Page } from "@dust-tt/sparkle";
import type { AppType } from "@dust-tt/types";
import { Transition } from "@headlessui/react";

Expand Down Expand Up @@ -60,7 +54,7 @@ function PickDustApp({
return (
<Transition show={show} className="mx-auto max-w-6xl">
<Page>
<Page.Header title="Select Dust App" icon={CloudArrowDownIcon} />
<Page.Header title="Select Dust App" icon={CommandLineIcon} />
{hasSomeUnselectableApps && (
<Page.P>
Dust apps without a description are not selectable. To make a Dust
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
Button,
CloudArrowDownIcon,
GlobeAltIcon,
Item,
Modal,
Page,
Expand Down Expand Up @@ -300,7 +300,7 @@ function PickDataSource({
icon={
ds.connectorProvider
? CONNECTOR_CONFIGURATIONS[ds.connectorProvider].logoComponent
: CloudArrowDownIcon
: GlobeAltIcon
}
key={ds.id}
onClick={() => {
Expand Down
4 changes: 2 additions & 2 deletions front/components/poke/subscriptions/table.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
CloudArrowDownIcon,
ConfluenceLogo,
GithubLogo,
GlobeAltIcon,
GoogleLogo,
IntercomLogo,
Modal,
Expand Down Expand Up @@ -219,7 +219,7 @@ export function ActiveSubscriptionTable({
<ConfluenceLogo />
) : null}
{activePlan.limits.connections.isWebCrawlerAllowed ? (
<CloudArrowDownIcon />
<GlobeAltIcon />
) : null}
</div>
</PokeTableCell>
Expand Down

0 comments on commit 9472d4d

Please sign in to comment.