From 7de5bfe24124be1141898ddcdbefb899bf6ec0df Mon Sep 17 00:00:00 2001 From: Kevin Sutandi <63829516+KevinSutandi@users.noreply.github.com> Date: Sat, 6 Apr 2024 13:32:04 +1100 Subject: [PATCH] fix/UNI-266 : Updated SQL query to remove duplicate course cards (#273) * feat: update devsoc branding references (#260) * chore(landing): update landing meta description * Update README.md * added more strict sorting when calling getCoursesbyOffset --------- Co-authored-by: Bob Chen <83627389+3bobchen@users.noreply.github.com> Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com> Co-authored-by: Dylan W <119717655+dylanwz@users.noreply.github.com> --- LICENSE | 4 ++-- README.md | 8 +++----- backend/src/repositories/course.repository.ts | 2 +- frontend/src/app/page.tsx | 6 +++--- frontend/src/app/terms-and-conditions/page.tsx | 4 ++-- frontend/src/components/Navbar/Navbar.tsx | 2 +- 6 files changed, 12 insertions(+), 14 deletions(-) diff --git a/LICENSE b/LICENSE index af94ab794..52bd645de 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ Uni-lectives -Copyright (C) 2023 CSESoc UNSW +Copyright (C) 2023 DevSoc UNSW This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free @@ -37,7 +37,7 @@ party components included in the software. 6. If you use this software in a product that is freely available to the public, you must give full credit to the original authors of the software by prominently displaying the following attribution in the product: "This product -includes software developed by CSESoc UNSW." +includes software developed by DevSoc UNSW." 7. This license extension shall not be interpreted to affect the validity or enforceability of the AGPL-v3 license. diff --git a/README.md b/README.md index 203b97731..8a8701227 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,13 @@ -# cselectives-v2 +# unilectives A website to review UNSW courses and electives. ## Branch conventions Type: feature, task, bugfix, refactor -Jira Ticket: ELEC-XXX +[type]/UNI-XXX-[opt. description-in-kebab-case] -{type}/{jira-ticket} - -e.g. feature/ELEC-777 +e.g. feature/UNI-777-the-brown-fox ## Running Locally diff --git a/backend/src/repositories/course.repository.ts b/backend/src/repositories/course.repository.ts index 2d1c79c30..b848ec22d 100644 --- a/backend/src/repositories/course.repository.ts +++ b/backend/src/repositories/course.repository.ts @@ -72,7 +72,7 @@ export class CourseRepository { FROM courses c LEFT JOIN reviews r ON c.course_code = r.course_code GROUP BY c.course_code - ORDER BY "reviewCount" DESC + ORDER BY "reviewCount" DESC, c.course_code ASC LIMIT 25 OFFSET ${offset}; `) as any[]; return courses; diff --git a/frontend/src/app/page.tsx b/frontend/src/app/page.tsx index bcf585865..0e79f0843 100644 --- a/frontend/src/app/page.tsx +++ b/frontend/src/app/page.tsx @@ -9,13 +9,13 @@ import { Course, Courses } from "@/types/api"; export async function generateMetadata(): Promise { return { title: `Home | Unilectives - UNSW Course Reviews`, - description: `A course review website for UNSW made by CSESoc`, + description: `UNSW course reviews, ratings, and study tips. Unilectives is your one-stop shop for making informed course choices at UNSW.`, }; } export default async function Home() { const { courses: initialCourses } = (await get( - "/courses?offset=0" + "/courses?offset=0", )) as Courses; const metaLD: WithContext = { @@ -66,7 +66,7 @@ export default async function Home() {

- CSESoc presents + DevSoc presents

unilectives diff --git a/frontend/src/app/terms-and-conditions/page.tsx b/frontend/src/app/terms-and-conditions/page.tsx index 0e795ed76..065947c30 100644 --- a/frontend/src/app/terms-and-conditions/page.tsx +++ b/frontend/src/app/terms-and-conditions/page.tsx @@ -11,8 +11,8 @@ export default function TermsAndConditions() {

Terms and Conditions


- CSESoc is the constituent student society of UNSW's School of Computer - Science and Engineering. We do not represent the School, Faculty or + Software Development Society (DevSoc) is a student society comprised of interested + developers, inventors and tech enthusiasts. We do not represent the School, Faculty or University.


diff --git a/frontend/src/components/Navbar/Navbar.tsx b/frontend/src/components/Navbar/Navbar.tsx index 4778604ef..60ea3d689 100644 --- a/frontend/src/components/Navbar/Navbar.tsx +++ b/frontend/src/components/Navbar/Navbar.tsx @@ -279,7 +279,7 @@ export default function Navbar({ userZid }: NavbarProps) { . - © CSESoc {new Date().getFullYear()}, v1.0.0 + © DevSoc {new Date().getFullYear()}, v1.0.0