Skip to content

Commit 4767563

Browse files
authored
Merge pull request #96 from CS3219-AY2425S1/feat/user-profile
Add user profile operations and minor fixes
2 parents 1a73a71 + d9aee83 commit 4767563

File tree

28 files changed

+2870
-1645
lines changed

28 files changed

+2870
-1645
lines changed

api-gateway/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ WORKDIR /app
99

1010
# Copy package.json and pnpm-lock.yaml
1111
COPY package.json ./
12-
COPY pnpm-lock.yaml ./
1312

1413
RUN pnpm install
1514

docker-compose.prod.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: "3.8"
2-
31
services:
42
redis-server:
53
image: redis:latest
@@ -75,7 +73,7 @@ services:
7573
target: production
7674
volumes:
7775
- ./api-gateway:/app
78-
- ./api-gateway/node_modules:/app/node_modules
76+
- /app/node_modules
7977
ports:
8078
- "8001:8001"
8179
networks:

docker-compose.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: "3.8"
2-
31
services:
42
redis-server:
53
image: redis:latest
@@ -33,7 +31,7 @@ services:
3331
target: development
3432
volumes:
3533
- ./question-service:/app
36-
- ./question-service/node_modules:/app/node_modules
34+
- /app/node_modules
3735
ports:
3836
- "4001:4001"
3937
networks:
@@ -65,7 +63,7 @@ services:
6563
target: development
6664
volumes:
6765
- ./matching-service:/app
68-
- ./matching-service/node_modules:/app/node_modules
66+
- /app/node_modules
6967
ports:
7068
- "5001:5001"
7169
networks:
@@ -97,7 +95,7 @@ services:
9795
target: development
9896
volumes:
9997
- ./api-gateway:/app
100-
- ./api-gateway/node_modules:/app/node_modules
98+
- /app/node_modules
10199
ports:
102100
- "8001:8001"
103101
networks:

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"question-service",
1414
"peerprep-fe",
1515
"user-service",
16-
"matching-service"
16+
"matching-service",
17+
"api-gateway"
1718
],
1819
"dependencies": {
1920
"cors": "^2.8.5",

peerprep-fe/.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
./node_modules
2+
node_modules
23
.next
34
.git
45
.env*.local

peerprep-fe/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"@radix-ui/react-dialog": "^1.1.1",
1717
"@radix-ui/react-dropdown-menu": "^2.1.2",
1818
"@radix-ui/react-icons": "^1.3.0",
19+
"@radix-ui/react-label": "^2.1.0",
1920
"@radix-ui/react-popover": "^1.1.1",
2021
"@radix-ui/react-scroll-area": "^1.2.0",
2122
"@radix-ui/react-select": "^2.1.1",

peerprep-fe/pnpm-lock.yaml

Lines changed: 34 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

peerprep-fe/src/app/(main)/components/filter/FilterBadge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function FilterBadge({ filterType, value, onRemove }: FilterBadgeProps) {
3434
{`${filterType}: ${value}`}
3535
<button
3636
onClick={() => onRemove(filterType, value)}
37-
className="ml-1 focus:outline-none"
37+
className="ml-1 cursor-pointer focus:outline-none"
3838
>
3939
<X className="h-3 w-3" />
4040
</button>

peerprep-fe/src/app/(main)/components/filter/FilterSelect.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ export function FilterSelect({
3030
</SelectTrigger>
3131
<SelectContent>
3232
{options.map((option) => (
33-
<SelectItem key={option.value} value={option.value}>
33+
<SelectItem
34+
key={option.value}
35+
value={option.value}
36+
className="cursor-pointer"
37+
>
3438
{option.label}
3539
</SelectItem>
3640
))}

peerprep-fe/src/app/(main)/components/filter/TopicsPopover.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ export function TopicsPopover({
6262
<Input
6363
placeholder="Search topics..."
6464
value={searchTerm}
65-
onChange={(e) => setSearchTerm(e.target.value)}
65+
onChange={(e) => {
66+
e.stopPropagation();
67+
setSearchTerm(e.target.value);
68+
}}
6669
className="mb-2"
6770
/>
6871
</div>

0 commit comments

Comments
 (0)