Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
There was a problem hiding this comment.
Pull request overview
Adds an “Import from UAchieve” flow to the graduate plan creation UI by introducing a new API endpoint that parses an uploaded PDF and returns detected course codes.
Changes:
- Add
pdf-parse(+ typings) dependency to enable server-side PDF text extraction. - Add server-side PDF parsing utilities in
auditPlanscontroller and a new/api/audit/utils/parse-pdfroute. - Add an upload button to
NewPlanModalthat posts a PDF to the new API and displays the number of parsed courses.
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
pnpm-lock.yaml |
Locks new pdf-parse and @types/pdf-parse dependencies. |
apps/searchneu/package.json |
Adds pdf-parse and typings to the app’s deps. |
apps/searchneu/lib/controllers/auditPlans.ts |
Adds PDF-to-text parsing and regex-based course extraction. |
apps/searchneu/components/graduate/modal/NewPlanModal.tsx |
Adds client-side PDF upload UI and fetch to parse endpoint. |
apps/searchneu/app/api/audit/utils/parse-pdf/route.ts |
New API route to accept multipart upload, verify user, parse PDF, return courses. |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Expanding scope of ticket a little bit, can we make another PR for this branch that adds a transfer courses section? this will let us actually make use of the parsed courses, right now we're not sure where to put the courses in the list, and for scheduled courses we want to know what year and term to put them in. |
@23langloisj make pr into this branch or make different ticket? |
|
a1e43aa to
f2d6afa
Compare
f2d6afa to
79c646a
Compare
79c646a to
ac75bf7
Compare
ac75bf7 to
a73ce86
Compare
5246228 to
a73ce86
Compare
3ee0bb4 to
1cf0029
Compare
1cf0029 to
db87478
Compare
889401a to
8497315
Compare
move pdfparsing, add transfer courses row changes based off copilot + builder changes Potential fix for pull request finding Co-Authored-By: Dennis Wang <[email protected]> package prettier lint - dennis
8497315 to
b35683f
Compare
Pull Request
Allows users of graduate to upload courses they've taken with a pdf exported from UAchieve
Closes #306
Type of Change
Please tick the boxes that best match your changes.
Testing
Please describe how you tested this PR (both manually and with tests) Provide instructions so we can reproduce.
Manually updated PDFs to verify courses parse correctly