Skip to content

Commit

Permalink
Deploy ongoing
Browse files Browse the repository at this point in the history
  • Loading branch information
Duncid committed Dec 17, 2024
1 parent d551f39 commit 6f458f4
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 27 deletions.
27 changes: 14 additions & 13 deletions front/components/assistant_builder/ActionsScreen.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import {
BookOpenIcon,
Button,
CardButton,
Card,
CardActionButton,
Checkbox,
Chip,
ContentMessage,
Expand All @@ -13,7 +14,6 @@ import {
DropdownMenuSeparator,
DropdownMenuTrigger,
Icon,
IconButton,
InformationCircleIcon,
Input,
Modal,
Expand Down Expand Up @@ -631,24 +631,25 @@ function ActionCard({
}
const actionError = hasActionError(action);
return (
<CardButton
<Card
variant="primary"
onClick={editAction}
className="mx-auto inline-block w-72"
action={
<CardActionButton
size="mini"
icon={XMarkIcon}
onClick={(e: any) => {
deleteAction();
e.stopPropagation();
}}
/>
}
>
<div className="flex w-full flex-col gap-2 text-sm">
<div className="flex w-full gap-1 font-medium text-element-900">
<Icon visual={spec.cardIcon} size="sm" className="text-element-900" />
<div className="w-full truncate">{actionDisplayName(action)}</div>
<IconButton
icon={XMarkIcon}
variant="outline"
size="sm"
onClick={(e) => {
deleteAction();
e.stopPropagation();
}}
/>
</div>
{isLegacyConfig ? (
<div className="mx-auto">
Expand All @@ -673,7 +674,7 @@ function ActionCard({
</>
)}
</div>
</CardButton>
</Card>
);
}

Expand Down
14 changes: 5 additions & 9 deletions front/components/workspace/Analytics.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Card, Page, Spinner } from "@dust-tt/sparkle";
import { Page, Spinner, ValueCard } from "@dust-tt/sparkle";
import type { WorkspaceType } from "@dust-tt/types";

import { useWorkspaceAnalytics } from "@app/lib/swr/workspaces";
Expand All @@ -22,18 +22,17 @@ export function QuickInsights({ owner }: QuickInsightsProps) {
</div>
) : (
<div className="mt-2 grid grid-cols-2 gap-2">
<Card
<ValueCard
title="Members"
subtitle="Total members"
content={
<div className="text-lg font-semibold text-element-900">
{analytics.memberCount}
</div>
}
size="sm"
className="w-full"
/>
<Card
<ValueCard
title="Daily Active Members"
subtitle="Average on 7 days"
content={
Expand All @@ -43,10 +42,9 @@ export function QuickInsights({ owner }: QuickInsightsProps) {
</div>
</div>
}
size="sm"
className="w-full"
/>
<Card
<ValueCard
title="Active Members"
subtitle="Last 7 days"
content={
Expand All @@ -61,10 +59,9 @@ export function QuickInsights({ owner }: QuickInsightsProps) {
</div>
</div>
}
size="sm"
className="w-full"
/>
<Card
<ValueCard
title="Active Members"
subtitle="Last 30 days"
content={
Expand All @@ -79,7 +76,6 @@ export function QuickInsights({ owner }: QuickInsightsProps) {
</div>
</div>
}
size="sm"
className="w-full"
/>
</div>
Expand Down
8 changes: 4 additions & 4 deletions front/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"dependencies": {
"@auth0/nextjs-auth0": "^3.5.0",
"@dust-tt/client": "file:../sdks/js",
"@dust-tt/sparkle": "^0.2.342",
"@dust-tt/sparkle": "0.2.343-rc",
"@dust-tt/types": "file:../types",
"@headlessui/react": "^1.7.7",
"@heroicons/react": "^2.0.11",
Expand Down

0 comments on commit 6f458f4

Please sign in to comment.