diff --git a/apps/dashboard/package.json b/apps/dashboard/package.json index b275e97e76..c3f4f91873 100644 --- a/apps/dashboard/package.json +++ b/apps/dashboard/package.json @@ -21,16 +21,16 @@ "@midday/supabase": "workspace:*", "@midday/ui": "workspace:*", "@novu/headless": "^0.21.0", - "@trigger.dev/nextjs": "^2.2.5", - "@trigger.dev/react": "^2.2.5", - "@trigger.dev/sdk": "^2.2.5", + "@trigger.dev/nextjs": "^2.2.6", + "@trigger.dev/react": "^2.2.6", + "@trigger.dev/sdk": "^2.2.6", "change-case": "^5.1.2", "framer-motion": "^10.16.4", "next": "canary", "next-international": "^1.1.4", - "next-safe-action": "^5.0.2", + "next-safe-action": "^5.0.3", "next-themes": "^0.2.1", - "next-usequerystate": "^1.10.1", + "next-usequerystate": "^1.10.2", "react": "18.2.0", "react-dom": "18.2.0", "react-dropzone": "^14.2.3", diff --git a/apps/dashboard/src/app/[locale]/@login/page.tsx b/apps/dashboard/src/app/[locale]/@login/page.tsx index 58d2958a5d..db2abc2afe 100644 --- a/apps/dashboard/src/app/[locale]/@login/page.tsx +++ b/apps/dashboard/src/app/[locale]/@login/page.tsx @@ -1,4 +1,5 @@ import { GoogleSignIn } from "@/components/google-sign-in"; +import { SlackSignIn } from "@/components/slack-sign-in"; import { Icons } from "@midday/ui/icons"; import Link from "next/link"; @@ -49,8 +50,9 @@ export default function Login() {
effortlessly.

-
+
+

diff --git a/apps/dashboard/src/components/google-sign-in.tsx b/apps/dashboard/src/components/google-sign-in.tsx index 4e1f7df99b..9028eb6f15 100644 --- a/apps/dashboard/src/components/google-sign-in.tsx +++ b/apps/dashboard/src/components/google-sign-in.tsx @@ -19,7 +19,7 @@ export function GoogleSignIn() { return ( + ); +} diff --git a/apps/dashboard/src/jobs/transactions.ts b/apps/dashboard/src/jobs/transactions.ts index 38e9d5e43f..f8a93723eb 100644 --- a/apps/dashboard/src/jobs/transactions.ts +++ b/apps/dashboard/src/jobs/transactions.ts @@ -60,7 +60,7 @@ const dynamicSchedule = client.defineDynamicSchedule({ client.defineJob({ id: "bank-account-created", name: "Bank Account Created", - version: "0.7.0", + version: "0.8.0", trigger: supabaseTriggers.onInserted({ table: "bank_accounts", }), @@ -89,7 +89,7 @@ client.defineJob({ client.defineJob({ id: "transactions-sync", name: "Transactions - Latest Transactions", - version: "0.7.0", + version: "0.8.0", trigger: dynamicSchedule, integrations: { supabase }, run: async (_, io, ctx) => { @@ -102,6 +102,7 @@ client.defineJob({ if (!data) { // TODO: Remove schedule await io.logger.error(`Bank account not found: ${ctx.source.id}`); + await dynamicSchedule.unregister(ctx.source.id); } await io.logger.info(`Fetching Transactions for ID: ${data?.account_id}`); @@ -136,7 +137,7 @@ client.defineJob({ client.defineJob({ id: "transactions-initial-sync", name: "Transactions - Initial", - version: "0.7.0", + version: "0.8.0", trigger: eventTrigger({ name: "transactions.initial.sync", schema: z.object({ diff --git a/bun.lockb b/bun.lockb index b3ceace722..3e77e643a1 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index fc3b08a501..95c8794722 100644 --- a/package.json +++ b/package.json @@ -22,8 +22,6 @@ "dependencies": { "@biomejs/biome": "1.3.3", "@manypkg/cli": "^0.21.0", - "@trigger.dev/sdk": "^2.2.5", - "@trigger.dev/supabase": "^2.2.5", "turbo": "^1.10.16", "typescript": "^5.2.2" } diff --git a/packages/supabase/package.json b/packages/supabase/package.json index 703d4ae111..ad93323f7f 100644 --- a/packages/supabase/package.json +++ b/packages/supabase/package.json @@ -11,7 +11,7 @@ "db:generate": "supabase gen types typescript --project-id pytddvqiozwrhfbwqazp --schema public > src/types/db.ts" }, "dependencies": { - "@supabase/ssr": "^0.0.9", + "@supabase/ssr": "^0.0.10", "@supabase/supabase-js": "^2.38.4", "supabase": "^1.110.1" }, diff --git a/packages/ui/src/components/icons.tsx b/packages/ui/src/components/icons.tsx index a25e6f3b29..e99d8aeabb 100644 --- a/packages/ui/src/components/icons.tsx +++ b/packages/ui/src/components/icons.tsx @@ -263,6 +263,32 @@ export const Icons = { /> ), + Slack: (props: any) => ( + + + + + + + + + + + ), FlightTakeoff: MdFlightTakeoff, Desk: MdDesk, FastFood: MdFastfood,