Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the Student Activities area by expanding the page content/sections (societies, council members, Thought Lab, NSS/NCC) and updating related translations, alongside a small dependency bump for TipTap’s image extension.
Changes:
- Bump
@tiptap/extension-imagefrom^3.19.0to^3.20.0(and corresponding lockfile updates). - Extend Student Activities translations (EN/HI) to add “societies” and switch some section fields from
moretocontent. - Refactor
app/[locale]/student-activities/page.tsxto add new sections and integrateStudentGroupfor council members.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 10 comments.
| File | Description |
|---|---|
| package.json | Updates TipTap image extension version. |
| package-lock.json | Updates resolved TipTap packages to match the dependency bump. |
| i18n/translate/student-activities.ts | Adds societies + new content fields for Thought Lab/NSS/NCC (EN/HI). |
| app/[locale]/student-activities/page.tsx | Adds new page sections, council member rendering, and adjusts clubs rendering layout. |
Comments suppressed due to low confidence (1)
i18n/translate/student-activities.ts:56
title: 'NATIONAL SERVICE SCHEME (NSS) 'has a trailing space inside the string. This will render visibly in some UI contexts; please remove the extra space.
title: 'NATIONAL SERVICE SCHEME (NSS) ',
content:
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| @@ -9,6 +9,7 @@ import { BouncyArrowButton } from '~/components/buttons'; | |||
| import { GalleryCarousel } from '~/components/carousels'; | |||
There was a problem hiding this comment.
GalleryCarousel is imported but no longer used after switching the carousel markup to a plain <div> grid. This will trip lint/typecheck; remove the unused import (or reintroduce GalleryCarousel).
| import { GalleryCarousel } from '~/components/carousels'; |
|
|
||
| <Link | ||
| href={`/${locale}/student-activities/thought-lab`} className="absolute bottom-4 left-4 font-serif text-2xl font-semibold text-shade-light hover:underline" | ||
| target="_blank" |
There was a problem hiding this comment.
This Link uses target="_blank" but doesn’t set rel="noopener noreferrer". Add the rel attribute to prevent reverse-tabnabbing (even for internal links).
| target="_blank" | |
| target="_blank" | |
| rel="noopener noreferrer" |
|
|
||
| {/* Right: Description */} | ||
| <p className="text-gray-800 text-justify leading-relaxed"> | ||
| {text.sections.nss.content} |
There was a problem hiding this comment.
In the NCC section, the description is rendering text.sections.nss.content instead of text.sections.ncc.content, so NCC will show the NSS copy.
| {text.sections.nss.content} | |
| {text.sections.ncc.content} |
| { label: text.headings.events, href: '#events' }, | ||
| { label: text.headings.council, href: '#council' }, | ||
| {label: text.headings.thoughtLab, href: '#thought-lab',}, | ||
| { label: text.headings.nss, href: '#nss' }, | ||
| { label: text.headings.ncc, href: 'student-activities/ncc' }, | ||
| { label: text.headings.ncc, href: '#ncc' }, | ||
|
|
||
|
|
||
| ]} |
There was a problem hiding this comment.
This file appears to be unformatted relative to the repo’s Prettier rules (e.g. inconsistent spacing in object literals, extra blank lines). Since CI runs npm run format:check, please run npm run format on this file to avoid formatting check failures.
| societies: { | ||
| title: "TECHNICAL SOCIETIES", | ||
| more: "Explore all technical societies" | ||
| }, |
There was a problem hiding this comment.
This file doesn’t match the repo’s Prettier config (singleQuote: true, trailing commas, etc.). For example, the new societies strings use double quotes and the object formatting is inconsistent; running npm run format should normalize this and prevent format:check from failing.
| className="container" | ||
| glyphDirection="ltr" | ||
| heading="h3" | ||
| href={`/${locale}/student-activities/societies`} |
There was a problem hiding this comment.
href={/${locale}/student-activities/societies} points to a route that doesn’t exist in app/[locale]/student-activities/ (there’s no societies/ page), so this link will 404. Either add the missing route or change the link to an on-page anchor (e.g. #societies) / an existing page.
| href={`/${locale}/student-activities/societies`} | |
| href="#societies" |
| <section className="container mb-6 text-center"> | ||
| <Suspense fallback={<Loading />}> | ||
| <ClubsCarousel locale={locale} /> | ||
| </Suspense> |
There was a problem hiding this comment.
<ClubsCarousel /> is rendered in both the Clubs and Societies sections, and it performs a DB query each time. This duplicates the same query/render work in a single request; consider fetching the clubs list once in StudentActivities and passing it down (or memoizing) so the page only hits the DB once.
| @@ -63,9 +109,138 @@ export default async function StudentActivities({ | |||
| variant: 'outline', | |||
| }} | |||
| linkProps={{ href: `/${locale}/student-activities/clubs` }} | |||
There was a problem hiding this comment.
The council CTA text is text.sections.council.more (“View All Members”), but the button link still points to /${locale}/student-activities/clubs. This will take users to the wrong destination; update linkProps.href to the council destination (or change the text back to the clubs CTA).
| linkProps={{ href: `/${locale}/student-activities/clubs` }} | |
| linkProps={{ href: `/${locale}/student-activities/council` }} |
| <Link | ||
| href={`/${locale}/student-activities/nss`} | ||
| className="absolute bottom-4 left-4 font-serif text-2xl font-semibold text-shade-light hover:underline" | ||
| target="_blank" | ||
| > |
There was a problem hiding this comment.
This Link opens a new tab (target="_blank") without rel="noopener noreferrer". Please add rel to avoid reverse-tabnabbing.
| <Link | ||
| href={`/${locale}/student-activities/ncc`} | ||
| className="absolute bottom-4 left-4 font-serif text-2xl font-semibold text-shade-light hover:underline" | ||
| target="_blank" |
There was a problem hiding this comment.
This Link uses target="_blank" but is missing rel="noopener noreferrer". Add rel for security.
| target="_blank" | |
| target="_blank" | |
| rel="noopener noreferrer" |
|
@kartik-vats |
|
When i clicked on the 'view all members' on the student council.. it is not redirecting to the correct link. FIX THAT |
|
Also the Thought Lab,NCC and NSS links are opening in other tabs. They should be redirected in the same tab only. FIX |
|
Also fix the indentation using prettier and check if any other lint warnings or errors are there |
|
Also no changes in package and package lock required.. take help of Debatreya to resolve this. |
Aryawart-kathpal
left a comment
There was a problem hiding this comment.
Check the comments above and apply Fixes.





No description provided.