Skip to content

Fix/filter faculty#452

Draft
NavvneetK wants to merge 9 commits intostagedfrom
fix/filter-faculty
Draft

Fix/filter faculty#452
NavvneetK wants to merge 9 commits intostagedfrom
fix/filter-faculty

Conversation

@NavvneetK
Copy link
Contributor

No description provided.

yashika1221 and others added 8 commits January 3, 2026 22:34
Co-authored-by: Aryawart-kathpal <aryawart.kathpal2909@gmail.com>
Co-authored-by: Aryawart-kathpal <aryawart.kathpal2909@gmail.com>
This pull request introduces several improvements and refactors across
multiple pages, focusing on dynamic data fetching from the database, UI
consistency, and code style cleanups. The most significant changes are
the migration of static research data to dynamic database queries, UI/UX
refinements for the SC/ST cell page, and minor formatting and code
cleanup in other components.

**Dynamic Data Fetching and Table Updates:**

* Migrated static data for Memorandum of Understanding (MoU) and
Sponsored Research Projects in `app/[locale]/research/page.tsx` to fetch
directly from the database, including transforming and formatting the
data for table display. This includes updating the table headers and
rows to show new fields such as sanctioned file/order number, date, and
project status.
([app/[locale]/research/page.tsxR24-R38](diffhunk://#diff-7e2ef4caf94dbc72306307e50144de2644725209044410ff5dc769152068eb67R24-R38),
[app/[locale]/research/page.tsxR98-R132](diffhunk://#diff-7e2ef4caf94dbc72306307e50144de2644725209044410ff5dc769152068eb67R98-R132),
[app/[locale]/research/page.tsxL210-R148](diffhunk://#diff-7e2ef4caf94dbc72306307e50144de2644725209044410ff5dc769152068eb67L210-R148),
[app/[locale]/research/page.tsxL473-R411](diffhunk://#diff-7e2ef4caf94dbc72306307e50144de2644725209044410ff5dc769152068eb67L473-R411),
[app/[locale]/research/page.tsxR449-R453](diffhunk://#diff-7e2ef4caf94dbc72306307e50144de2644725209044410ff5dc769152068eb67R449-R453),
[app/[locale]/research/page.tsxR740-R742](diffhunk://#diff-7e2ef4caf94dbc72306307e50144de2644725209044410ff5dc769152068eb67R740-R742),
[app/[locale]/research/page.tsxR761-R763](diffhunk://#diff-7e2ef4caf94dbc72306307e50144de2644725209044410ff5dc769152068eb67R761-R763))

**UI/UX and Styling Improvements:**

* Refined layout, className ordering, and responsive styles for the
SC/ST cell page (`app/[locale]/institute/cells/scst/page.tsx`),
including adjustments to faculty info display, section spacing, and list
styling for better readability and consistency.
([app/[locale]/institute/cells/scst/page.tsxL18-R18](diffhunk://#diff-19c9706882ffe3c5011d10c9fc1e574aa3f0c8095b33184bddde8ec8abf2ba6cL18-R18),
[app/[locale]/institute/cells/scst/page.tsxL33-R40](diffhunk://#diff-19c9706882ffe3c5011d10c9fc1e574aa3f0c8095b33184bddde8ec8abf2ba6cL33-R40),
[app/[locale]/institute/cells/scst/page.tsxL58-R65](diffhunk://#diff-19c9706882ffe3c5011d10c9fc1e574aa3f0c8095b33184bddde8ec8abf2ba6cL58-R65),
[app/[locale]/institute/cells/scst/page.tsxL86-R139](diffhunk://#diff-19c9706882ffe3c5011d10c9fc1e574aa3f0c8095b33184bddde8ec8abf2ba6cL86-R139),
[app/[locale]/institute/cells/scst/page.tsxL159-R163](diffhunk://#diff-19c9706882ffe3c5011d10c9fc1e574aa3f0c8095b33184bddde8ec8abf2ba6cL159-R163),
[app/[locale]/institute/cells/scst/page.tsxL179-L190](diffhunk://#diff-19c9706882ffe3c5011d10c9fc1e574aa3f0c8095b33184bddde8ec8abf2ba6cL179-L190))
* Minor UI adjustments in the gallery component for improved code
readability and style formatting.
[[1]](diffhunk://#diff-7a11d6e30b52d89cba0ae61febfb2a8dc1c64a312509fdbeffa3119de9061aa7L188-R191)
[[2]](diffhunk://#diff-7a11d6e30b52d89cba0ae61febfb2a8dc1c64a312509fdbeffa3119de9061aa7L204-R211)

**Code Style and Formatting Cleanups:**

* Added or corrected trailing commas and semicolons for consistency in
various files.
([app/[locale]/academics/curricula/page.tsxL123-R123](diffhunk://#diff-f28e90cdfc2124ecddf73b3a9d4522b6270d42112fa9b8a81c67656ed7722c86L123-R123),
[app/[locale]/header.tsxL88-R88](diffhunk://#diff-05aeabaff5d1ec0d925bc6519f8dcf6cdc4f94efcf74117ecca3fbbd77eb7777L88-R88))
* Removed unnecessary blank lines and improved code formatting for
clarity.
([app/[locale]/student-activities/clubs/[display_name]/event-section.tsxL96](diffhunk://#diff-fe0a45bba40a113ff0cfe178c0a454d4980293098763ae248037759f44e58de0L96))

These changes collectively enhance maintainability, data accuracy, and
user experience across the affected pages.

---------

Co-authored-by: soumil221 <soumiljain221@gmail.com>
A constant Faculty updates to Staged

---------

Co-authored-by: Navneet Kaur <navneet78141@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: ArnavSharma005 <145358467+ArnavSharma005@users.noreply.github.com>
Co-authored-by: heydoyouknowme0 <akrb2204@gmail.com>
@Debatreya Debatreya changed the base branch from master to staged January 14, 2026 09:57
Comment on lines +28 to +47
translations = {
filters: 'Filters',
filterBy: 'Filter By',
designation: 'Designation',
department: 'Department',
saveSelection: 'Save Selection',
clearAllFilters: 'Clear All Filters',
},
}: {
departments?: Dept[];
department?: string | string[];
className?: string;
translations?: {
filters: string;
filterBy: string;
designation: string;
department: string;
saveSelection: string;
clearAllFilters: string;
};
Copy link
Member

Choose a reason for hiding this comment

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

Use of translations like this seems incorrect. We have never used translations like this

@Debatreya Debatreya marked this pull request as draft January 15, 2026 19:05
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.

6 participants