feat(chrome): added content script scraping to obtain course data from Albert page#40
feat(chrome): added content script scraping to obtain course data from Albert page#40interfinityOfficial wants to merge 14 commits intomainfrom
Conversation
chenxin-yan
left a comment
There was a problem hiding this comment.
Great!
The scraping for course user already taken looks good. Could you make sure the shape for the courses taken look like this:
const userCourses = {
userId: v.string(),
courseCode: v.string(), // CSCI-UA 101
title: v.string(),
year: v.number(), // 2025
term: v.union(
v.literal("spring"),
v.literal("summer"),
v.literal("fall"),
v.literal("j-term"),
),
grade: v.optional(
v.union(
v.literal("a"),
v.literal("a-"),
v.literal("b+"),
v.literal("b"),
v.literal("b-"),
v.literal("c+"),
v.literal("c"),
v.literal("c-"),
v.literal("d+"),
v.literal("d"),
v.literal("p"),
v.literal("f"),
v.literal("w"),
),
),
};
you can ignore the userId for now I can help you set it up.
for the enrolled courses for this semester and courses in the shopping cart, you should get the following data for each record: courseCode, term, year', and section`
7072356 to
503ca3f
Compare
80858e4 to
99692c0
Compare
chenxin-yan
left a comment
There was a problem hiding this comment.
As we discussed last time, connect what you have so far with the backend. Let me know if you have any questions or when you are ready for review
4740be5 to
25e00d9
Compare
7f96cdd to
3a033b0
Compare
chenxin-yan
left a comment
There was a problem hiding this comment.
this is not working as expected on my end. Make sure we have convex database as the source of truth and user can confirm and save to the db.
7103a52 to
70e93ad
Compare
e2d6c6a to
f1d9b93
Compare
166dea0 to
60ed6ec
Compare
📌 What’s Changed
✅ Actions
📝 Notes for Reviewer