Skip to content

Catalog years - #1204

Draft
CadenLee2 wants to merge 6 commits into
mainfrom
catalog-years
Draft

Catalog years#1204
CadenLee2 wants to merge 6 commits into
mainfrom
catalog-years

Conversation

@CadenLee2

Copy link
Copy Markdown
Collaborator

Note

Wait to merge this until Anteater API has the requirements for 2026-27 for most majors

Support major and minor catalog years. This is the product of several PRs.

Description

Catalog years are now associated with majors and minors. The year can be chosen by a dropdown in the catalog, which then displays the correct data from Anteater API.

Screenshots

Screenshot 2026-07-15 172702

Test Plan

  • Catalog years load and save properly for accounts
  • A warning shows properly when the year's data is not yet available
  • UI works well

Issues

Closes #1154 #1153 #1144

anthonyj33 and others added 6 commits June 28, 2026 10:47
* Integrate catalog years into major/minor endpoints

* Cleanup for catalog yrs
* Integrate catalog years into major/minor endpoints (#1190)

* Integrate catalog years into major/minor endpoints

* Cleanup for catalog yrs

* create initial redux slice to store catalog year

* include catalogYearReducer in store.ts

* update slice to associate catalog year with major

* include catalog year in endpoint

* add setALlCatalogYears reducer for loading multiple catalog years

* Update catalog year types to string

* feat: include catalog years in course requirements slice

* remove catalogYearSlice

* remove catalogYearSlice from store.ts

* feat: catalog year dropdown + include catalog year in major course requirement fetch

* feat: options for catalog years from the past 5 years

* feat: use a current year for catalog year

* feat: catalog years for minors

* fix minors not including catalog year when fetching

* replace default dropdown arrow icon

* feat: catalog year tooltip

* move catalog year constants to courseRequirements.ts

* feat: include warning if a catalog year isn't available

* feat: extract year formatting into courseRequirements.ts + comments

* feat: add catalog year warning for minor course list

* fix: warning not rendering again on resize

* fix: include fallbackCatalogYear in major/minor mapping

* feat: warning text and formatting updates

* create initial redux slice to store catalog year

* include catalogYearReducer in store.ts

* update slice to associate catalog year with major

* include catalog year in endpoint

* add setALlCatalogYears reducer for loading multiple catalog years

* feat: include catalog years in course requirements slice

* remove catalogYearSlice

* remove catalogYearSlice from store.ts

* feat: catalog year dropdown + include catalog year in major course requirement fetch

* feat: options for catalog years from the past 5 years

* feat: use a current year for catalog year

* feat: catalog years for minors

* fix minors not including catalog year when fetching

* replace default dropdown arrow icon

* feat: catalog year tooltip

* move catalog year constants to courseRequirements.ts

* feat: include warning if a catalog year isn't available

* feat: extract year formatting into courseRequirements.ts + comments

* feat: add catalog year warning for minor course list

* fix: warning not rendering again on resize

* fix: include fallbackCatalogYear in major/minor mapping

* feat: warning text and formatting updates

* fix: warning not showing because of nulled fallback catalog year

* address code comments - fix tooltip hover + specify tooltip message between major/minor

---------

Co-authored-by: Anthony Jenanian <55033931+anthonyj33@users.noreply.github.com>
Co-authored-by: Atticus Wong <atile4>
* refactor: catalog years component

* feat: implement redesigned catalog year switcher

* refactor: remove unused code

* chore: remove unnecessary comment

* feat: larger font size for catalog years select

* tooltip grammar

---------

Co-authored-by: Anthony Jenanian <55033931+anthonyj33@users.noreply.github.com>
@laggycomputer

Copy link
Copy Markdown
Member
image

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.

Support catalogue years: backend

4 participants