format and update

This commit is contained in:
2025-09-11 12:28:13 -05:00
parent 136047ca25
commit 0ce699d44c
5 changed files with 20 additions and 12 deletions

View File

@@ -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=="],

View File

@@ -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;
@@ -357,5 +357,5 @@ export const endOfShiftUpdate = action({
const ms = ((60 - minute) % 60) * 60 * 1000;
await ctx.scheduler.runAfter(ms, api.statuses.endOfShiftUpdate);
} else return;
}
},
});

View File

@@ -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",

View File

@@ -240,7 +240,11 @@ export const StatusList = ({
fullName={s.updatedBy.name ?? 'User'}
className={tvMode ? 'w-6 h-6' : 'w-4 h-4'}
/>
<span className={tvMode ? 'text-lg font-semibold' : 'text-base'}>
<span
className={
tvMode ? 'text-lg font-semibold' : 'text-base'
}
>
{s.updatedBy.name ??
s.updatedBy.email ??
'another user'}

View File

@@ -205,7 +205,9 @@ export const StatusTable = ({
<Clock
className={`${tvMode ? 'lg:w-11 lg:h-11' : 'lg:w-9 lg:h-9'}`}
/>
<p className={`${tvMode ? 'text-4xl' : 'text-3xl'}`}>
<p
className={`${tvMode ? 'text-4xl' : 'text-3xl'}`}
>
{s ? formatTime(s.updatedAt) : '--:--'}
</p>
</div>
@@ -213,7 +215,9 @@ export const StatusTable = ({
<Calendar
className={`${tvMode ? 'lg:w-11 lg:h-11' : 'lg:w-9 lg:h-9'}`}
/>
<p className={`${tvMode ? 'text-4xl' : 'text-3xl'}`}>
<p
className={`${tvMode ? 'text-4xl' : 'text-3xl'}`}
>
{s ? formatDate(s.updatedAt) : '--:--'}
</p>
</div>