Skip to content

Commit ee3e32c

Browse files
authored
Merge branch 'main' into davidgu/ListUnclaimedItemsQuery
2 parents 3d96e2b + f322047 commit ee3e32c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1201
-178
lines changed

.github/workflows/main.yml

+13-14
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
11
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
33

4-
name: Lint, Test, and Build
4+
name: Lint and Test
55

66
on:
77
push:
8-
branches: [ "main" ]
8+
branches: ["main"]
99
pull_request:
10-
branches: [ "main" ]
10+
branches: ["main"]
1111

1212
jobs:
13-
lint-test-build:
13+
lint-test:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v4
18-
- name: Use Node 22
19-
uses: actions/setup-node@v4
20-
with:
21-
node-version: 22.x
22-
cache: 'npm'
23-
- run: npm install
24-
- run: npm run lint
25-
- run: npm test
26-
- run: npm run build
17+
- uses: actions/checkout@v4
18+
- name: Use Node 22
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 22.x
22+
cache: "npm"
23+
- run: npm install
24+
- run: npm run lint
25+
- run: npm test

babel.config.jest.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
module.exports = {presets: ["next/babel", "@babel/preset-typescript", "@babel/preset-env"]}
1+
module.exports = {
2+
presets: [
3+
"next/babel",
4+
"@babel/preset-typescript",
5+
"@babel/preset-env",
6+
"@babel/preset-react",
7+
],
8+
};

jest.config.js

+11-6
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,15 @@ module.exports = {
77
},
88
setupFilesAfterEnv: ["./src/test/dbMock.ts", "./src/test/authMock.ts"],
99
transform: {
10-
"^.+\\.(ts|tsx)?$": "ts-jest",
11-
"^.+\\.(js|jsx)$": ["babel-jest", { "configFile": "./babel.config.jest.js" }],
10+
"^.+\\.(ts|tsx)?$": [
11+
"ts-jest",
12+
{
13+
tsconfig: {
14+
jsx: "react-jsx",
15+
},
16+
},
17+
],
18+
"^.+\\.(js|jsx)$": ["babel-jest", { configFile: "./babel.config.jest.js" }],
1219
},
13-
transformIgnorePatterns: [
14-
"node_modules/(?!@auth)/"
15-
]
16-
};
20+
transformIgnorePatterns: ["node_modules/(?!@auth)/"],
21+
};

package-lock.json

+100
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"db:view": "npx prisma studio"
1515
},
1616
"dependencies": {
17+
"@phosphor-icons/react": "^2.1.7",
1718
"@prisma/client": "^6.2.1",
1819
"@react-email/render": "1.0.3",
1920
"@sendgrid/mail": "^8.1.4",
@@ -31,6 +32,7 @@
3132
"devDependencies": {
3233
"@babel/core": "^7.26.0",
3334
"@babel/preset-env": "^7.26.0",
35+
"@babel/preset-react": "^7.26.3",
3436
"@babel/preset-typescript": "^7.26.0",
3537
"@babel/runtime": "^7.26.0",
3638
"@jest/globals": "^29.7.0",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
Warnings:
3+
4+
- A unique constraint covering the columns `[email]` on the table `UserInvite` will be added. If there are existing duplicate values, this will fail.
5+
- Added the required column `userType` to the `UserInvite` table without a default value. This is not possible if the table is not empty.
6+
7+
*/
8+
-- AlterTable
9+
ALTER TABLE "UserInvite" ADD COLUMN "userType" "UserType" NOT NULL;
10+
11+
-- CreateIndex
12+
CREATE UNIQUE INDEX "UserInvite_email_key" ON "UserInvite"("email");

prisma/schema.prisma

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ model User {
2828
model UserInvite {
2929
id Int @id @default(autoincrement())
3030
token String @unique
31-
email String
31+
userType UserType
32+
email String @unique
3233
expiration DateTime
3334
}
3435

public/logo.svg

+9
Loading

src/app/account_management/page.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"use client";
2+
3+
import AccountManagementScreen from "@/screens/AccountManagementScreen";
4+
5+
export default AccountManagementScreen;

0 commit comments

Comments
 (0)