Skip to content
Merged
42 changes: 42 additions & 0 deletions .github/workflows/build-app.prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on: push

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: npm

- name: 🧰 Install
run: npm ci --production-only

- name: 🧹 Run lint
run: npm run lint
build:
name: Build application
needs: lint
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: npm

- name: 🧰 Install
run: npm ci --production-only

- name: 📦 build
run: npm run build
48 changes: 48 additions & 0 deletions data/db.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,54 @@
"department": "design",
"startTimestamp": "2026-03-26T09:30:00.000Z",
"stopTimestamp": "2026-03-26T10:00:00.000Z"
},
{
"id": "98bd",
"billable": true,
"client": "Heineken",
"department": "design",
"startTimestamp": "2026-04-08T12:14:00.000Z",
"stopTimestamp": "2026-04-08T15:21:00.000Z"
},
{
"id": "870d",
"billable": true,
"client": "Heineken",
"department": "design",
"startTimestamp": "2026-04-08T12:12:00.000Z",
"stopTimestamp": "2026-04-08T15:12:00.000Z"
},
{
"id": "5ccc",
"billable": true,
"client": "Heineken",
"department": "design",
"startTimestamp": "2026-04-08T12:04:00.000Z",
"stopTimestamp": "2026-04-08T12:57:00.000Z"
},
{
"id": "dece",
"billable": true,
"client": "Heineken",
"department": "design",
"startTimestamp": "2026-04-08T12:14:00.000Z",
"stopTimestamp": "2026-04-08T15:16:00.000Z"
},
{
"id": "61fc",
"billable": true,
"client": "Heineken",
"department": "design",
"startTimestamp": "2026-04-08T12:14:00.000Z",
"stopTimestamp": "2026-04-08T15:16:00.000Z"
},
{
"id": "9d40",
"billable": true,
"client": "Heineken",
"department": "design",
"startTimestamp": "2026-05-09T12:12:00.000Z",
"stopTimestamp": "2026-05-09T15:15:00.000Z"
}
],
"members": [
Expand Down
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const eslintConfig = defineConfig([
"no-console": ["warn", { allow: ["warn", "error"] }],
"no-unused-vars": "off", // or "@typescript-eslint/no-unused-vars": "off",
"unused-imports/no-unused-imports": "error",
"react-hooks/set-state-in-effect": ["warn", { allow: ["warn", "error"] }],
"unused-imports/no-unused-vars": [
"warn",
{
Expand Down
2 changes: 1 addition & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import "./.next/dev/types/routes.d.ts";
import "./.next/types/routes.d.ts";

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
154 changes: 152 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
"lint": "eslint"
},
"dependencies": {
"@supabase/ssr": "^0.10.0",
"@supabase/supabase-js": "^2.102.1",
"eslint-plugin-unused-imports": "^4.4.1",
"next": "16.1.6",
"react": "19.2.3",
Expand Down
2 changes: 1 addition & 1 deletion services/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const memberSchema = z.object({
info: z.string().max(150),
lastName: z.string().trim().min(1),
position: z.string().trim(),
startingDate: z.iso.datetime(),
startingDate: z.iso.datetime({ local: true }),
});

const fullNameSchema = z
Expand Down
Loading
Loading