Skip to content

Commit

Permalink
feat: add courses for Fall 2024 and Spring 2025, update existing
Browse files Browse the repository at this point in the history
  • Loading branch information
awpala committed Dec 10, 2024
1 parent 4e13e9e commit 928c01e
Show file tree
Hide file tree
Showing 6 changed files with 219 additions and 24 deletions.
6 changes: 3 additions & 3 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const config: StorybookConfig = {
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'@chromatic-com/storybook'
'@chromatic-com/storybook',
],

framework: {
Expand All @@ -17,7 +17,7 @@ const config: StorybookConfig = {
docs: {},

typescript: {
reactDocgen: 'react-docgen-typescript'
}
reactDocgen: 'react-docgen-typescript',
},
};
export default config;
81 changes: 81 additions & 0 deletions __seed__/data/courses.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,15 @@ module.exports = [
2022: { 1: 2, 3: 1 },
},
},
{
courseId: 'CS-6261',
numReviews: 0,
avgWorkload: null,
avgDifficulty: null,
avgOverall: null,
avgStaffSupport: null,
reviewsCountsByYearSem: {},
},
{
courseId: 'CS-6262',
numReviews: 126,
Expand Down Expand Up @@ -289,6 +298,24 @@ module.exports = [
2022: { 1: 7 },
},
},
{
courseId: 'CS-6422',
numReviews: 0,
avgWorkload: null,
avgDifficulty: null,
avgOverall: null,
avgStaffSupport: null,
reviewsCountsByYearSem: {},
},
{
courseId: 'CS-6435',
numReviews: 0,
avgWorkload: null,
avgDifficulty: null,
avgOverall: null,
avgStaffSupport: null,
reviewsCountsByYearSem: {},
},
{
courseId: 'CS-6440',
numReviews: 83,
Expand Down Expand Up @@ -377,6 +404,15 @@ module.exports = [
2022: { 1: 3 },
},
},
{
courseId: 'CS-6491',
numReviews: 0,
avgWorkload: null,
avgDifficulty: null,
avgOverall: null,
avgStaffSupport: null,
reviewsCountsByYearSem: {},
},
{
courseId: 'CS-6515',
numReviews: 270,
Expand Down Expand Up @@ -505,6 +541,15 @@ module.exports = [
avgStaffSupport: null,
reviewsCountsByYearSem: { 2021: { 1: 11, 2: 6, 3: 5 }, 2022: { 1: 2 } },
},
{
courseId: 'CS-7400',
numReviews: 0,
avgWorkload: null,
avgDifficulty: null,
avgOverall: null,
avgStaffSupport: null,
reviewsCountsByYearSem: {},
},
{
courseId: 'CS-7450',
numReviews: 0,
Expand Down Expand Up @@ -766,6 +811,24 @@ module.exports = [
avgStaffSupport: null,
reviewsCountsByYearSem: {},
},
{
courseId: 'CS-8803-O23',
numReviews: 0,
avgWorkload: null,
avgDifficulty: null,
avgOverall: null,
avgStaffSupport: null,
reviewsCountsByYearSem: {},
},
{
courseId: 'CS-8803-O24',
numReviews: 0,
avgWorkload: null,
avgDifficulty: null,
avgOverall: null,
avgStaffSupport: null,
reviewsCountsByYearSem: {},
},
{
courseId: 'CS-8803-OC1',
numReviews: 7,
Expand Down Expand Up @@ -880,6 +943,15 @@ module.exports = [
avgStaffSupport: null,
reviewsCountsByYearSem: { 2020: { 3: 1 }, 2021: { 1: 2, 3: 1 } },
},
{
courseId: 'CSE-8803',
numReviews: 0,
avgWorkload: null,
avgDifficulty: null,
avgOverall: null,
avgStaffSupport: null,
reviewsCountsByYearSem: {},
},
{
courseId: 'ECE-6150',
numReviews: 0,
Expand Down Expand Up @@ -1371,6 +1443,15 @@ module.exports = [
2021: { 1: 3, 3: 2 },
},
},
{
courseId: 'PUBP-8823',
numReviews: 0,
avgWorkload: null,
avgDifficulty: null,
avgOverall: null,
avgStaffSupport: null,
reviewsCountsByYearSem: {},
},
/* IGNORE -- ambiguous departmentId */
// {
// courseId: 'VIP-6600',
Expand Down
9 changes: 9 additions & 0 deletions firebase/utilityFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ export const mapCourseToLegacyNumReviews: TMapCourseToLegacyNumReviews = {
'CS-6238': 29,
'CS-6250': 326,
'CS-6260': 39,
'CS-6261': 0,
'CS-6262': 126,
'CS-6263': 74,
'CS-6264': 4,
Expand All @@ -184,12 +185,15 @@ export const mapCourseToLegacyNumReviews: TMapCourseToLegacyNumReviews = {
'CS-6310': 156,
'CS-6340': 136,
'CS-6400': 230,
'CS-6422': 0,
'CS-6435': 0,
'CS-6440': 83,
'CS-6457': 13,
'CS-6460': 89,
'CS-6465': 1,
'CS-6475': 153,
'CS-6476': 162,
'CS-6491': 0,
'CS-6515': 270,
'CS-6601': 236,
'CS-6603': 49,
Expand All @@ -201,6 +205,7 @@ export const mapCourseToLegacyNumReviews: TMapCourseToLegacyNumReviews = {
'CS-6795': 2,
'CS-7210': 31,
'CS-7280': 24,
'CS-7400': 0,
'CS-7450': 0,
'CS-7470': 2,
'CS-7632': 16,
Expand All @@ -223,6 +228,8 @@ export const mapCourseToLegacyNumReviews: TMapCourseToLegacyNumReviews = {
'CS-8803-O17': 0,
'CS-8803-O21': 0,
'CS-8803-O22': 0,
'CS-8803-O23': 0,
'CS-8803-O24': 0,
'CS-8803-OC1': 7,
'CS-8813': 0,
'CSE-6040': 110,
Expand All @@ -232,6 +239,7 @@ export const mapCourseToLegacyNumReviews: TMapCourseToLegacyNumReviews = {
'CSE-6242': 260,
'CSE-6250': 61,
'CSE-6742': 4,
'CSE-8803': 0,
'ECE-6150': 0,
'ECE-6266': 0,
'ECE-6320': 0,
Expand Down Expand Up @@ -277,4 +285,5 @@ export const mapCourseToLegacyNumReviews: TMapCourseToLegacyNumReviews = {
'PUBP-6501': 8,
'PUBP-6502': 3,
'PUBP-6725': 17,
'PUBP-8823': 0,
};
Loading

0 comments on commit 928c01e

Please sign in to comment.