feat: add RTU Kota CSE syllabus (Sem 1-8) + fix download & preview bug#458
Open
aryan24cse109-dev wants to merge 1 commit into
Open
Conversation
|
@aryan24cse109-dev is attempting to deploy a commit to the Lovely Mahour's projects Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📚 What this PR does
Adds complete syllabus data for Rajasthan Technical University (RTU) Kota
— Computer Science Engineering department, covering all 8 semesters.
Also fixes two critical bugs in
Syllabus.jsthat were present for all entries.🐛 Bugs Fixed
1. Download button was not working
The
handleDownloadfunction was only showing analert()popup instead ofactually downloading the file. Fixed with proper anchor-click download method.
2. Preview button had no functionality
The Preview button had no
onClickhandler at all. AddedhandlePreviewfunction that opens the PDF in a new browser tab.
3. Subjects section showing empty heading
For entries with no subjects listed, "Subjects Covered:" heading was still
rendering with empty content. Added conditional rendering to hide it when
subjectsarray is empty.✅ Changes Made
client/public/pdf/:RTU_CSE_Sem1.pdftoRTU_CSE_Sem8.pdfhandleDownloadfunction inSyllabus.jshandlePreviewfunction inSyllabus.jsfileUrlfield to all existingsyllabusDataentries🏫 College Details
🧪 Tested
localhost:3000📌 Note
This is the first of multiple planned contributions for RTU Kota.
After this PR, similar PRs will follow for other departments (IT, ECE, ME, Civil etc.)
Closes #447