Skip to content

Commit de51117

Browse files
committed
Merge branch 'dev' into search-map-button
2 parents eef37f0 + 9ec40ff commit de51117

23 files changed

Lines changed: 1013 additions & 2968 deletions

.github/workflows/docker.yml

Lines changed: 12 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ on:
66
- "dev"
77

88
env:
9-
BRANCH_NAME: ${{ github.base_ref || github.ref_name }}
9+
ENVIRONMENT: ${{ github.ref_name == 'master' && 'prod' || 'staging' }}
10+
IMAGE_NAME: ${{ github.ref_name == 'master' && 'freerooms' || 'freerooms-staging' }}
1011

1112
jobs:
1213
build:
@@ -51,8 +52,8 @@ jobs:
5152
platforms: linux/amd64
5253
file: ${{ matrix.context }}.dockerfile
5354
tags: |
54-
ghcr.io/csesoc/freerooms-${{ matrix.name }}:${{ github.sha }}
55-
ghcr.io/csesoc/freerooms-${{ matrix.name }}:latest
55+
ghcr.io/devsoc-unsw/${{ env.IMAGE_NAME }}-${{ matrix.name }}:${{ github.sha }}
56+
ghcr.io/devsoc-unsw/${{ env.IMAGE_NAME }}-${{ matrix.name }}:latest
5657
labels: ${{ steps.meta.outputs.labels }}
5758
deploy:
5859
name: Deploy (CD)
@@ -64,9 +65,9 @@ jobs:
6465
- name: Checkout repository
6566
uses: actions/checkout@v4
6667
with:
67-
repository: csesoc/deployment
68+
repository: devsoc-unsw/deployment
6869
token: ${{ secrets.GH_TOKEN }}
69-
ref: migration
70+
ref: dev
7071
- name: Install yq - portable yaml processor
7172
uses: mikefarah/yq@v4.44.3
7273
- name: Update deployment
@@ -76,26 +77,12 @@ jobs:
7677
git config user.name "CSESoc CD"
7778
git config user.email "technical@csesoc.org.au"
7879
79-
case $BRANCH_NAME in
80-
dev)
81-
build_type="staging"
82-
;;
83-
84-
master)
85-
build_type="prod"
86-
;;
87-
*)
88-
echo "Invalid branch '$branch'"
89-
exit 1
90-
;;
91-
esac
92-
93-
git checkout -b update/freerooms-$build_type/${{ github.sha }}
94-
yq -i '.items[0].spec.template.spec.containers[0].image = "ghcr.io/csesoc/freerooms-backend:${{ github.sha }}"' projects/freerooms/$build_type/deploy-backend.yml
95-
yq -i '.items[0].spec.template.spec.containers[0].image = "ghcr.io/csesoc/freerooms-frontend:${{ github.sha }}"' projects/freerooms/$build_type/deploy-frontend.yml
80+
git checkout -b update/${{ env.IMAGE_NAME }}/${{ github.sha }}
81+
yq -i '.items[0].spec.template.spec.containers[0].image = "ghcr.io/devsoc-unsw/${{ env.IMAGE_NAME }}-backend:${{ github.sha }}"' projects/freerooms/${{ env.ENVIRONMENT }}/deploy-backend.yml
82+
yq -i '.items[0].spec.template.spec.containers[0].image = "ghcr.io/devsoc-unsw/${{ env.IMAGE_NAME }}-frontend:${{ github.sha }}"' projects/freerooms/${{ env.ENVIRONMENT }}/deploy-frontend.yml
9683
9784
git add .
98-
git commit -m "feat(freerooms-$build_type): update images"
99-
git push -u origin update/freerooms-$build_type/${{ github.sha }}
100-
gh pr create -B migration --title "feat(freerooms-$build_type): update image" --body "Updates the image for the freerooms deployment to commit csesoc/freerooms@${{ github.sha }}." > URL
85+
git commit -m "feat(${{ env.IMAGE_NAME }}): update images"
86+
git push -u origin update/${{ env.IMAGE_NAME }}/${{ github.sha }}
87+
gh pr create -B dev --title "feat(${{ env.IMAGE_NAME }}): update image" --body "Updates the image for the ${{ env.IMAGE_NAME }} deployment to commit devsoc-unsw/${{ env.IMAGE_NAME }}@${{ github.sha }}." > URL
10188
gh pr merge $(cat URL) --squash -d

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Freerooms is a tool designed to help UNSW students find empty rooms on campus.
1111
- TypeScript (everything)
1212
and more! 🤓👨‍💻
1313

14-
You can find a live build of Freerooms at [https://freerooms.csesoc.app](https://freerooms.csesoc.app/).
14+
You can find a live build of Freerooms at [https://freerooms.devsoc.app](https://freerooms.devsoc.app/).
1515

1616
## Features
1717

TEAM.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Freerooms Team
22

3+
## 2025
4+
5+
### Leads
6+
- Anh Viet Duc Nguyen (@avdn-dev)
7+
- Michael Tanto (@mt-fns)
8+
9+
### Developers
10+
- Benjamin Harold Godwin (@bengodw)
11+
- Connie Du (@c0nnied)
12+
- Brandon Tan (@BT0906)
13+
- Yi Yao Wang (@yiyaoW11)
14+
- Shabinda Sarkaria (@shaykaria)
15+
- Dicko Evaldo (@dickoevaldo)
16+
- Chris Wong (@xleonx0x)
17+
- Muqueet Mohsen Chowdhury (@mmc03-ucb)
18+
319
## 2024
420

521
### Leads

app/package-lock.json

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

backend/package-lock.json

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

backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"@typescript-eslint/eslint-plugin": "^8.0.0",
4141
"@typescript-eslint/parser": "^8.0.0",
4242
"eslint": "^8.57.0",
43-
"eslint-config-prettier": "^9.1.0",
43+
"eslint-config-prettier": "^10.0.0",
4444
"eslint-plugin-simple-import-sort": "^12.0.0",
4545
"jest": "^29.7.0",
4646
"nodemon": "^3.0.0",

frontend/app/room/[room]/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import Stack from "@mui/material/Stack";
1919
import Typography from "@mui/material/Typography";
2020
import { Dictionary } from "@reduxjs/toolkit";
2121
import RoomRating from "components/Rating/RoomRating";
22+
import RoomUtilityTags from "components/RoomUtilityTags";
2223
import useRoomRatings from "hooks/useRoomRatings";
2324
import Image from "next/image";
2425
import { useParams } from "next/navigation";
@@ -86,6 +87,7 @@ export default function Page() {
8687
}
8788
/>
8889
<BookingCalendar events={adjustedBookings ?? []} roomID={room.id} />
90+
<RoomUtilityTags roomId={room?.id} />
8991
<RoomRating buildingID={building.id} roomID={room.id} />
9092
</Stack>
9193
) : (

frontend/components/FakeBuildingCard.tsx

Lines changed: 0 additions & 101 deletions
This file was deleted.

frontend/components/FakeBuildingCardMobile.tsx

Lines changed: 0 additions & 108 deletions
This file was deleted.

0 commit comments

Comments
 (0)