Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
paulclindo committed Jan 2, 2025
1 parent 8ea21cb commit 24727a9
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 60 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import {
SheetHeader,
SheetTitle,
} from '@shinkai_network/shinkai-ui';
import { FileTypeIcon } from '@shinkai_network/shinkai-ui/assets';
import {
EmbeddingsGeneratedIcon,
FileTypeIcon,
} from '@shinkai_network/shinkai-ui/assets';
import {
formatDateToLocaleStringWithTime,
formatDateToUSLocaleString,
Expand Down Expand Up @@ -118,35 +121,7 @@ export const VectorFileDetails = () => {
</p>
{!!selectedFile?.has_embeddings && (
<div className="inline-flex items-center gap-1 rounded-lg border-cyan-600 bg-cyan-900/20 px-2 py-1">
<svg
className="size-4 text-cyan-400"
fill={'none'}
height={24}
viewBox="0 0 24 24"
width={24}
>
<path
d="M19 11.0032V10C19 6.22876 19 4.34315 17.8284 3.17157C16.6569 2 14.7712 2 11 2H10.0082L3 8.98648V14.0062C3 17.7714 3 19.654 4.16811 20.825L4.17504 20.8319C5.34602 22 7.2286 22 10.9938 22"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="1.5"
/>
<path
d="M3 9.00195H4C6.82843 9.00195 8.24264 9.00195 9.12132 8.12327C10 7.24459 10 5.83038 10 3.00195V2.00195"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="1.5"
/>
<path
d="M16.4069 21.5983C16.6192 22.1365 17.3808 22.1365 17.5931 21.5983L17.6298 21.5051C18.1482 20.1906 19.1887 19.1502 20.5031 18.6318L20.5964 18.595C21.1345 18.3828 21.1345 17.6211 20.5964 17.4089L20.5031 17.3721C19.1887 16.8537 18.1482 15.8133 17.6298 14.4989L17.5931 14.4056C17.3808 13.8674 16.6192 13.8674 16.4069 14.4056L16.3702 14.4989C15.8518 15.8133 14.8113 16.8537 13.4969 17.3721L13.4036 17.4089C12.8655 17.6211 12.8655 18.3828 13.4036 18.595L13.4969 18.6318C14.8113 19.1502 15.8518 20.1906 16.3702 21.5051L16.4069 21.5983Z"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="1.5"
/>
</svg>
<EmbeddingsGeneratedIcon className="size-4 text-cyan-400" />
<span className="text-xs font-medium text-cyan-400">
Embeddings Generated
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ import {
TooltipProvider,
TooltipTrigger,
} from '@shinkai_network/shinkai-ui';
import { CreateAIIcon, FileTypeIcon } from '@shinkai_network/shinkai-ui/assets';
import {
CreateAIIcon,
EmbeddingsGeneratedIcon,
FileTypeIcon,
} from '@shinkai_network/shinkai-ui/assets';
import {
formatDateToUSLocaleString,
getFileExt,
Expand Down Expand Up @@ -47,35 +51,7 @@ export const VectorFsItemInfo = ({
{!!file.has_embeddings && (
<Tooltip>
<TooltipTrigger className="rounded-lg border-cyan-600 bg-cyan-900/20 p-1">
<svg
className="size-4 text-cyan-400"
fill={'none'}
height={24}
viewBox="0 0 24 24"
width={24}
>
<path
d="M19 11.0032V10C19 6.22876 19 4.34315 17.8284 3.17157C16.6569 2 14.7712 2 11 2H10.0082L3 8.98648V14.0062C3 17.7714 3 19.654 4.16811 20.825L4.17504 20.8319C5.34602 22 7.2286 22 10.9938 22"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="1.5"
/>
<path
d="M3 9.00195H4C6.82843 9.00195 8.24264 9.00195 9.12132 8.12327C10 7.24459 10 5.83038 10 3.00195V2.00195"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="1.5"
/>
<path
d="M16.4069 21.5983C16.6192 22.1365 17.3808 22.1365 17.5931 21.5983L17.6298 21.5051C18.1482 20.1906 19.1887 19.1502 20.5031 18.6318L20.5964 18.595C21.1345 18.3828 21.1345 17.6211 20.5964 17.4089L20.5031 17.3721C19.1887 16.8537 18.1482 15.8133 17.6298 14.4989L17.5931 14.4056C17.3808 13.8674 16.6192 13.8674 16.4069 14.4056L16.3702 14.4989C15.8518 15.8133 14.8113 16.8537 13.4969 17.3721L13.4036 17.4089C12.8655 17.6211 12.8655 18.3828 13.4036 18.595L13.4969 18.6318C14.8113 19.1502 15.8518 20.1906 16.3702 21.5051L16.4069 21.5983Z"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="1.5"
/>
</svg>
<EmbeddingsGeneratedIcon className="size-4 text-cyan-400" />
</TooltipTrigger>
<TooltipPortal>
<TooltipContent side="top">
Expand Down
35 changes: 35 additions & 0 deletions libs/shinkai-ui/src/assets/icons/general.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1350,3 +1350,38 @@ export const ScheduledTasksComingSoonIcon = ({
/>
</svg>
);
export const EmbeddingsGeneratedIcon = ({
className,
}: {
className?: string;
}) => (
<svg
className={cn('shrink-0', className)}
fill={'none'}
height={24}
viewBox="0 0 24 24"
width={24}
>
<path
d="M19 11.0032V10C19 6.22876 19 4.34315 17.8284 3.17157C16.6569 2 14.7712 2 11 2H10.0082L3 8.98648V14.0062C3 17.7714 3 19.654 4.16811 20.825L4.17504 20.8319C5.34602 22 7.2286 22 10.9938 22"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="1.5"
/>
<path
d="M3 9.00195H4C6.82843 9.00195 8.24264 9.00195 9.12132 8.12327C10 7.24459 10 5.83038 10 3.00195V2.00195"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="1.5"
/>
<path
d="M16.4069 21.5983C16.6192 22.1365 17.3808 22.1365 17.5931 21.5983L17.6298 21.5051C18.1482 20.1906 19.1887 19.1502 20.5031 18.6318L20.5964 18.595C21.1345 18.3828 21.1345 17.6211 20.5964 17.4089L20.5031 17.3721C19.1887 16.8537 18.1482 15.8133 17.6298 14.4989L17.5931 14.4056C17.3808 13.8674 16.6192 13.8674 16.4069 14.4056L16.3702 14.4989C15.8518 15.8133 14.8113 16.8537 13.4969 17.3721L13.4036 17.4089C12.8655 17.6211 12.8655 18.3828 13.4036 18.595L13.4969 18.6318C14.8113 19.1502 15.8518 20.1906 16.3702 21.5051L16.4069 21.5983Z"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="1.5"
/>
</svg>
);

0 comments on commit 24727a9

Please sign in to comment.