diff --git a/bun.lock b/bun.lock index 912230f..07f0fa3 100644 --- a/bun.lock +++ b/bun.lock @@ -15,14 +15,14 @@ "@radix-ui/react-separator": "^1.1.7", "@radix-ui/react-slot": "^1.2.3", "@radix-ui/react-tabs": "^1.1.13", - "@sentry/nextjs": "^10.10.0", + "@sentry/nextjs": "^10.11.0", "@t3-oss/env-nextjs": "^0.13.8", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", - "convex": "^1.26.2", + "convex": "^1.27.0", "eslint-plugin-prettier": "^5.5.4", "lucide-react": "^0.542.0", - "next": "^15.5.2", + "next": "^15.5.3", "next-plausible": "^3.12.4", "next-themes": "^0.4.6", "radix-ui": "^1.4.3", @@ -45,7 +45,7 @@ "@types/react-dom": "^19.1.9", "dotenv": "^16.6.1", "eslint": "^9.35.0", - "eslint-config-next": "^15.5.2", + "eslint-config-next": "^15.5.3", "npm-run-all": "^4.1.5", "prettier": "^3.6.2", "tailwindcss": "^4.1.13", @@ -1811,7 +1811,7 @@ "yocto-queue": ["yocto-queue@0.1.0", "", {}, "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q=="], - "zod": ["zod@4.1.5", "", {}, "sha512-rcUUZqlLJgBC33IT3PNMgsCq6TzLQEG/Ei/KTCU0PedSWRMAXoOUN+4t/0H+Q8bdnLPdqUYnvboJT0bn/229qg=="], + "zod": ["zod@4.1.7", "", {}, "sha512-6qi6UYyzAl7W9uV29KvcSFXqK4QCYNYUz2YASPNBWpJE1RY6R1nArmmFPgGY/CBYWzpeMw3EOER+DR9a05O4IA=="], "@babel/core/json5": ["json5@2.2.3", "", { "bin": { "json5": "lib/cli.js" } }, "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg=="], diff --git a/convex/statuses.ts b/convex/statuses.ts index 7be89bc..1642972 100644 --- a/convex/statuses.ts +++ b/convex/statuses.ts @@ -312,7 +312,7 @@ export const listHistory = query({ for (const s of result.page) { const owner = await getDisplay(s.userId); const updatedBy = - (s.updatedBy && s.updatedBy !== s.userId) + s.updatedBy && s.updatedBy !== s.userId ? await getDisplay(s.updatedBy) : null; @@ -354,8 +354,8 @@ export const endOfShiftUpdate = action({ message: 'End of shift', }); } else if (hour === 11) { - const ms = ((60-minute) % 60) * 60 * 1000; + const ms = ((60 - minute) % 60) * 60 * 1000; await ctx.scheduler.runAfter(ms, api.statuses.endOfShiftUpdate); } else return; - } + }, }); diff --git a/package.json b/package.json index 1ae27bd..9263cb6 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "tailwind-merge": "^3.3.1", "typescript-eslint": "^8.43.0", "vaul": "^1.1.2", - "zod": "^4.1.5" + "zod": "^4.1.7" }, "devDependencies": { "@eslint/eslintrc": "^3.3.1", diff --git a/src/components/layout/status/list/index.tsx b/src/components/layout/status/list/index.tsx index ef0d456..b5a95d0 100644 --- a/src/components/layout/status/list/index.tsx +++ b/src/components/layout/status/list/index.tsx @@ -240,7 +240,11 @@ export const StatusList = ({ fullName={s.updatedBy.name ?? 'User'} className={tvMode ? 'w-6 h-6' : 'w-4 h-4'} /> - + {s.updatedBy.name ?? s.updatedBy.email ?? 'another user'} diff --git a/src/components/layout/status/table/index.tsx b/src/components/layout/status/table/index.tsx index 3e43e8d..c0db8ac 100644 --- a/src/components/layout/status/table/index.tsx +++ b/src/components/layout/status/table/index.tsx @@ -205,7 +205,9 @@ export const StatusTable = ({ -

+

{s ? formatTime(s.updatedAt) : '--:--'}

@@ -213,7 +215,9 @@ export const StatusTable = ({ -

+

{s ? formatDate(s.updatedAt) : '--:--'}