Skip to content

Feat/student activites#569

Open
kartik-vats wants to merge 3 commits intostagedfrom
feat/student_activites
Open

Feat/student activites#569
kartik-vats wants to merge 3 commits intostagedfrom
feat/student_activites

Conversation

@kartik-vats
Copy link
Contributor

No description provided.

@kartik-vats kartik-vats changed the base branch from master to staged March 3, 2026 13:18
@Debatreya Debatreya requested a review from Copilot March 3, 2026 19:20
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-image from ^3.19.0 to ^3.20.0 (and corresponding lockfile updates).
  • Extend Student Activities translations (EN/HI) to add “societies” and switch some section fields from more to content.
  • Refactor app/[locale]/student-activities/page.tsx to add new sections and integrate StudentGroup for 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';
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

Suggested change
import { GalleryCarousel } from '~/components/carousels';

Copilot uses AI. Check for mistakes.

<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"
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This Link uses target="_blank" but doesn’t set rel="noopener noreferrer". Add the rel attribute to prevent reverse-tabnabbing (even for internal links).

Suggested change
target="_blank"
target="_blank"
rel="noopener noreferrer"

Copilot uses AI. Check for mistakes.

{/* Right: Description */}
<p className="text-gray-800 text-justify leading-relaxed">
{text.sections.nss.content}
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
{text.sections.nss.content}
{text.sections.ncc.content}

Copilot uses AI. Check for mistakes.
Comment on lines +38 to 45
{ 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' },


]}
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copilot uses AI. Check for mistakes.
Comment on lines +38 to +41
societies: {
title: "TECHNICAL SOCIETIES",
more: "Explore all technical societies"
},
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copilot uses AI. Check for mistakes.
className="container"
glyphDirection="ltr"
heading="h3"
href={`/${locale}/student-activities/societies`}
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
href={`/${locale}/student-activities/societies`}
href="#societies"

Copilot uses AI. Check for mistakes.
Comment on lines +74 to +77
<section className="container mb-6 text-center">
<Suspense fallback={<Loading />}>
<ClubsCarousel locale={locale} />
</Suspense>
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<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.

Copilot uses AI. Check for mistakes.
@@ -63,9 +109,138 @@ export default async function StudentActivities({
variant: 'outline',
}}
linkProps={{ href: `/${locale}/student-activities/clubs` }}
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

Suggested change
linkProps={{ href: `/${locale}/student-activities/clubs` }}
linkProps={{ href: `/${locale}/student-activities/council` }}

Copilot uses AI. Check for mistakes.
Comment on lines +187 to +191
<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"
>
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This Link opens a new tab (target="_blank") without rel="noopener noreferrer". Please add rel to avoid reverse-tabnabbing.

Copilot uses AI. Check for mistakes.
<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"
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This Link uses target="_blank" but is missing rel="noopener noreferrer". Add rel for security.

Suggested change
target="_blank"
target="_blank"
rel="noopener noreferrer"

Copilot uses AI. Check for mistakes.
@Debatreya
Copy link
Member

@kartik-vats
Package.json and Package-lock.json pe change nhi aana chaiye tha.
Yeh fix kr de fer baki dkhta hu

@Debatreya
Copy link
Member

image

How its looking, is not that correct

@Aryawart-kathpal Aryawart-kathpal self-requested a review March 11, 2026 04:03
@Aryawart-kathpal
Copy link
Member

image

The section is covering the whole desktop space.. which it should not.. you might have forgot to use the 'container' class..
Same for NSS and NCC

@Aryawart-kathpal
Copy link
Member

When i clicked on the 'view all members' on the student council.. it is not redirecting to the correct link. FIX THAT

@Aryawart-kathpal
Copy link
Member

image

This is not exactly according to what we expected.. for reference you can see courses and departments on /academics

@Aryawart-kathpal
Copy link
Member

Also the Thought Lab,NCC and NSS links are opening in other tabs. They should be redirected in the same tab only. FIX

@Aryawart-kathpal
Copy link
Member

Also fix the indentation using prettier and check if any other lint warnings or errors are there

@Aryawart-kathpal
Copy link
Member

image

Translations are missing for this text in Though lab,NCC and NSS.

@Aryawart-kathpal
Copy link
Member

image The content for NCC is also same as NSS. Fix required.

@Aryawart-kathpal
Copy link
Member

Also no changes in package and package lock required.. take help of Debatreya to resolve this.

Copy link
Member

@Aryawart-kathpal Aryawart-kathpal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check the comments above and apply Fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants