Skip to content

TEMPFIX: Hardcoded VS data #281

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 43 commits into
base: staged
Choose a base branch
from
Open

TEMPFIX: Hardcoded VS data #281

wants to merge 43 commits into from

Conversation

Debatreya
Copy link
Member

This pull request includes significant updates to the FacultySection component in page.tsx. The primary change is the addition of a new faculty profile for Vikram Singh, along with modifications to the logic that selects which profile to display based on the employee_id parameter.

Additions to Faculty Profile:

Logic Updates:

Code Comments:

heydoyouknowme0 and others added 30 commits April 11, 2025 00:18
commit 8aa2014
Author: heydoyouknowme0 <[email protected]>
Date:   Sat Sep 28 11:58:39 2024 +0530

    temp: dynamic hostels

commit b92a240
Author: antkr <[email protected]>
Date:   Sun Jun 30 10:58:58 2024 +0530

    feat:init hostels page
commit 92edbb9
Author: KambojRajan <[email protected]>
Date:   Fri Sep 13 20:17:14 2024 +0530

    fix: remove console issues

commit 4cd5a67
Author: KambojRajan <[email protected]>
Date:   Tue Aug 27 17:55:06 2024 +0530

    fix: null icon issue

commit bc82c96
Author: KambojRajan <[email protected]>
Date:   Thu Jul 4 18:45:44 2024 +0530

    feat: sections-landing
Co-authored-by: KambojRajan  <[email protected]>
Co-authored-by: KambojRajan  <[email protected]>
commit 12f2dfe9e2e0163e16f27ec38d00efe0e086d418
Author: som-04 <[email protected]>
Date:   Mon May 13 10:46:45 2024 +0530

    added: health centre page
commit 3d75069ae460fe9c1f6579da8836d61c7b2d18ff
Author: KambojRajan <[email protected]>
Date:   Sat Sep 28 08:49:17 2024 +0530

    init:academics landing
commit 03f2d23027d092c22a86be085df30e4aa6fcc64c
Author: KambojRajan <[email protected]>
Date:   Wed Oct 2 07:55:21 2024 +0530

    init: deans-landing
commit 39f108a
Author: antri <[email protected]>
Date:   Sun May 26 20:06:47 2024 +0530

    feat:central workshop page
Copy link

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

@Debatreya Debatreya requested a review from Copilot April 10, 2025 20:22
Copy link

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


if (!profileTabs[faculty_section]) {
return notFound();
}

// TODO: (fix): If any section of profile is empty, the frontend is breaking
Copy link
Preview

Copilot AI Apr 10, 2025

Choose a reason for hiding this comment

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

Consider implementing defensive checks or fallback values for empty profile sections to prevent the frontend from breaking rather than relying on the TODO comment as a reminder.

Suggested change
// TODO: (fix): If any section of profile is empty, the frontend is breaking
if (profileTabs[faculty_section].length === 0) {
return (
<div className="text-center text-neutral-500">
No data available for this section.
</div>
);
}

Copilot uses AI. Check for mistakes.

Copy link
Member

Choose a reason for hiding this comment

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

@Debatreya Debatreya requested a review from Copilot April 10, 2025 21:05
Copy link

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

app/[locale]/faculty-and-staff/[employee_id]/[faculty_section]/page.tsx:116

  • [nitpick] Consider using consistent naming conventions for profile objects. For example, if the existing profile 'jkchabbraProfile' uses camelCase with a capitalized name segment, consider renaming 'vikramsinghProfile' to 'vikramSinghProfile' or another consistent variant.
const vikramsinghProfile = {

Copy link

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

app/[locale]/faculty-and-staff/[employee_id]/[faculty_section]/page.tsx:116

  • [nitpick] Consider renaming 'vikramsinghProfile' to 'vikramSinghProfile' for consistency and improved readability.
const vikramsinghProfile = {

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.

8 participants