diff --git a/apps/dashboard/package.json b/apps/dashboard/package.json index b050ebbb91..9c945f6918 100644 --- a/apps/dashboard/package.json +++ b/apps/dashboard/package.json @@ -24,19 +24,19 @@ "@midday/ui": "workspace:*", "@next/bundle-analyzer": "^14.1.0", "@novu/headless": "^0.23.1", - "@tanstack/react-table": "^8.11.8", + "@tanstack/react-table": "^8.12.0", "@todesktop/client-active-win": "^0.15.0", - "@todesktop/client-core": "^1.2.4", + "@todesktop/client-core": "^1.2.5", "@trigger.dev/nextjs": "^2.3.18", "@uidotdev/usehooks": "^2.4.1", "@vercel/edge-config": "^1.0.0", "@vercel/speed-insights": "^1.0.9", "@zip.js/zip.js": "2.7.34", "base64-arraybuffer": "^1.0.2", - "change-case": "^5.4.2", + "change-case": "^5.4.3", "dub": "^0.7.0", - "fast-csv": "^5.0.0", - "framer-motion": "^11.0.3", + "fast-csv": "^5.0.1", + "framer-motion": "^11.0.5", "geist": "^1.2.2", "headless-currency-input": "^1.1.0", "loops": "0.2.1", @@ -45,7 +45,7 @@ "next-international": "1.2.4", "next-safe-action": "6.1.0", "next-themes": "^0.2.1", - "nuqs": "^1.16.1", + "nuqs": "^1.17.0", "react": "18.2.0", "react-dom": "18.2.0", "react-dropzone": "^14.2.3", @@ -54,7 +54,7 @@ "react-intersection-observer": "^9.8.0", "react-pin-field": "^3.1.5", "recharts": "^2.12.0", - "resend": "^3.1.0", + "resend": "^3.2.0", "sharp": "^0.33.2", "tus-js-client": "^4.0.1", "use-long-press": "^3.2.0", diff --git a/apps/dashboard/src/app/[locale]/(app)/@dashboard/(root)/account/page.tsx b/apps/dashboard/src/app/[locale]/(app)/@dashboard/(root)/account/page.tsx index 25551526b5..92a7d8eb9f 100644 --- a/apps/dashboard/src/app/[locale]/(app)/@dashboard/(root)/account/page.tsx +++ b/apps/dashboard/src/app/[locale]/(app)/@dashboard/(root)/account/page.tsx @@ -1,4 +1,4 @@ -import { ChangeLanguage } from "@/components/change-language"; +// import { ChangeLanguage } from "@/components/change-language"; import { ChangeTheme } from "@/components/change-theme"; import { DeleteAccount } from "@/components/delete-account"; import { DisplayName } from "@/components/display-name"; @@ -21,7 +21,7 @@ export default async function Account() { avatarUrl={userData?.avatar_url} /> - + {/* */} diff --git a/apps/dashboard/src/components/command-menu/root.tsx b/apps/dashboard/src/components/command-menu/root.tsx index 86b326ebf5..a3b007cb85 100644 --- a/apps/dashboard/src/components/command-menu/root.tsx +++ b/apps/dashboard/src/components/command-menu/root.tsx @@ -29,10 +29,10 @@ const navigation = [ name: "Invoices", path: "/invoices", }, - { - name: "Tracker", - path: "/tracker", - }, + // { + // name: "Tracker", + // path: "/tracker", + // }, { name: "Vault", path: "/vault", @@ -79,10 +79,10 @@ export function CommandRoot() { - setMenu(MenuOption.Tracker)}> + {/* setMenu(MenuOption.Tracker)}> Time Tracker - + */} {isDesktopApp() && ( window.location.replace("midday://")}> diff --git a/apps/dashboard/src/components/tracker-day-card.tsx b/apps/dashboard/src/components/tracker-day-card.tsx index d2e935e83c..52010aea6d 100644 --- a/apps/dashboard/src/components/tracker-day-card.tsx +++ b/apps/dashboard/src/components/tracker-day-card.tsx @@ -16,6 +16,7 @@ export function TrackerDayCard({ disableHover, isActive, isTracking, + selectProject, }) { const totalDuration = data?.reduce( (duration, item) => item.duration + duration, @@ -24,13 +25,21 @@ export function TrackerDayCard({ const hoverEnabled = !disableHover && data; + const handleOnClick = () => { + if (selectProject) { + onSelect({ date, projectId: "new" }); + } else { + onSelect({ date }); + } + }; + return (