Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions apps/mcp-server/.env.example

This file was deleted.

1 change: 0 additions & 1 deletion apps/mcp-server/.gitignore

This file was deleted.

20 changes: 0 additions & 20 deletions apps/mcp-server/README.md

This file was deleted.

24 changes: 0 additions & 24 deletions apps/mcp-server/package.json

This file was deleted.

137 changes: 0 additions & 137 deletions apps/mcp-server/src/index.ts

This file was deleted.

15 changes: 0 additions & 15 deletions apps/mcp-server/tsconfig.json

This file was deleted.

106 changes: 0 additions & 106 deletions apps/web/__tests__/ai-example-matches.test.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import { Table, TableBody, TableRow, TableCell } from "@/components/ui/table";
import { Card } from "@/components/ui/card";
import type { RunRulesResult } from "@/utils/ai/choose-rule/run-rules";
import { SearchForm } from "@/components/SearchForm";
import { Badge } from "@/components/Badge";
import type { BatchExecutedRulesResponse } from "@/app/api/user/executed-rules/batch/route";
import {
isAIRule,
Expand Down Expand Up @@ -370,9 +369,6 @@ function ProcessRulesRow({
{result ? (
<>
<div className="flex max-w-xs flex-col justify-center gap-0.5 whitespace-nowrap">
{result.existing && (
<Badge color="yellow">Already processed</Badge>
)}
<ProcessResultDisplay
result={result}
emailAccountId={emailAccountId}
Expand Down
8 changes: 6 additions & 2 deletions apps/web/app/(app)/[emailAccountId]/clean/onboarding/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Card } from "@/components/ui/card";
import { Card, CardTitle } from "@/components/ui/card";
import { IntroStep } from "@/app/(app)/[emailAccountId]/clean/IntroStep";
import { ActionSelectionStep } from "@/app/(app)/[emailAccountId]/clean/ActionSelectionStep";
import { CleanInstructionsStep } from "@/app/(app)/[emailAccountId]/clean/CleanInstructionsStep";
Expand Down Expand Up @@ -35,9 +35,13 @@ export default async function CleanPage(props: {
},
});

if (!emailAccount) {
return <CardTitle>Email account not found</CardTitle>;
}

const emailProvider = await createEmailProvider({
emailAccountId,
provider: emailAccount?.account.provider ?? null,
provider: emailAccount.account.provider,
});
const { unhandledCount } = await getUnhandledCount(emailProvider);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function Row({
mutate: () => void;
selected: Map<string, boolean>;
onToggleSelect: (id: string) => void;
markNotColdEmail: (input: { sender: string }) => Promise<any>;
markNotColdEmail: (input: { sender: string }) => Promise<unknown>;
isExecuting: boolean;
}) {
return (
Expand Down
6 changes: 1 addition & 5 deletions apps/web/app/(app)/[emailAccountId]/stats/Stats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,7 @@ export function Stats() {

<RuleStatsChart
dateRange={dateRange}
title={
isAccountOwner
? "Your email workload breakdown"
: "Email workload breakdown"
}
title="Assistant processed emails"
/>
</div>

Expand Down
11 changes: 8 additions & 3 deletions apps/web/app/(app)/accounts/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { useAction } from "next-safe-action/hooks";
import Link from "next/link";
import { Trash2, ArrowRight } from "lucide-react";
import { Trash2, ArrowRight, BotIcon } from "lucide-react";
import { ConfirmDialog } from "@/components/ConfirmDialog";
import { LoadingContent } from "@/components/LoadingContent";
import { Button } from "@/components/ui/button";
Expand Down Expand Up @@ -90,8 +90,13 @@ function AccountItem({
</div>
</CardHeader>
<CardContent className="flex justify-end gap-2">
<Button variant="outline" size="sm" Icon={ArrowRight} asChild>
<Link href={prefixPath(emailAccount.id, "/setup")}>View</Link>
<Button variant="outline" size="sm" Icon={BotIcon}>
<Link href={prefixPath(emailAccount.id, "/automation")}>
Assistant
</Link>
</Button>
<Button variant="outline" size="sm" Icon={ArrowRight}>
<Link href={prefixPath(emailAccount.id, "/setup")}>Setup</Link>
</Button>
{!emailAccount.isPrimary && (
<ConfirmDialog
Expand Down
Loading
Loading