-
Notifications
You must be signed in to change notification settings - Fork 12
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
base: staged
Are you sure you want to change the base?
Conversation
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
There was a problem hiding this 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.
app/[locale]/faculty-and-staff/[employee_id]/[faculty_section]/page.tsx
Outdated
Show resolved
Hide resolved
…/page.tsx Co-authored-by: Copilot <[email protected]>
There was a problem hiding this 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 |
There was a problem hiding this comment.
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.
// 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this 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 = {
There was a problem hiding this 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 = {
ecd9ba2
to
1a34505
Compare
5d5f958
to
a2249a1
Compare
This pull request includes significant updates to the
FacultySection
component inpage.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 theemployee_id
parameter.Additions to Faculty Profile:
Logic Updates:
employee_id
is '1083'. (app/[locale]/faculty-and-staff/[employee_id]/[faculty_section]/page.tsxL217-R377)Code Comments: