-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1676 design new catalog page (#1818)
* hold, without course items * CSS cleanup * Course runs pulled in * Hold, computer acting funky * 3 per row, program type * Reduce reused code, add function comments * Improved comments and variable naming * Update program serializer and tests * Handle CourseRun date on cards * Course cards link to course pages * Formatting * sticky dept filter and header * Pixar level animating * Remove is_catalog_visible property * Filtering works, start date displays * Hold animation for tabs * Tab animate as expected now, course count is wonky * Start date correctly displayed * catalog item number animation * css * Filtering by department/topic works * Formatting department buttons * formatting * Fix courses serializers tests * Format courses serializers * Remove out of date test * Change topics model to departments * format migration * Hold messed up serializer * remove item count and filter from mobile view * holding, mostly good but glitchy mobile tab animation * hold, mobile view * Slide in menu works * Format and fix font color of mobile filter overlay * Large number of changes Added departments to Program model. Added animation for department filtering items. Tested accessibility. * course Serializer tests updated * Fix issue with images not updating quickly * infinite scroll * Added comments * Added more comments * hold, without course items * CSS cleanup * Course runs pulled in * Hold, computer acting funky * 3 per row, program type * Reduce reused code, add function comments * Improved comments and variable naming * Update program serializer and tests * Handle CourseRun date on cards * Course cards link to course pages * Formatting * sticky dept filter and header * Pixar level animating * Remove is_catalog_visible property * Filtering works, start date displays * Hold animation for tabs * Tab animate as expected now, course count is wonky * Start date correctly displayed * catalog item number animation * css * Filtering by department/topic works * Formatting department buttons * formatting * Fix courses serializers tests * Format courses serializers * Remove out of date test * Change topics model to departments * format migration * Hold messed up serializer * remove item count and filter from mobile view * holding, mostly good but glitchy mobile tab animation * hold, mobile view * Slide in menu works * Format and fix font color of mobile filter overlay * Large number of changes Added departments to Program model. Added animation for department filtering items. Tested accessibility. * course Serializer tests updated * Fix issue with images not updating quickly * infinite scroll * Added comments * Added more comments * Clean up * Added javascript tests * hold posthog * Fix * Rename migration * Fix error when switching between tabs * Mobile view fixes, test for bouncing between tabs * Remove unused page * Format and fix test * Update admin page for departments * Now making another call when at bottom of page * Address code review comments * Add ordering to the program and course models * Format * Only paginate when page param is provided * Remove out of date tests * Add a better comment on the pagination logic * Update catalog item image formatting * add feature flags * Fix tests * Fix tests * Repair javascript test, improve serializer test fix * Fix flow issue * Add feature flag check into view * Fix test for 404 * Fix 404 handling from catalog view * Fix mistake
- Loading branch information
1 parent
24dc3d3
commit 366b675
Showing
26 changed files
with
2,389 additions
and
204 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -407,6 +407,7 @@ class Meta: | |
"title", | ||
"readable_id", | ||
"program_type", | ||
"departments", | ||
"live", | ||
"requirements", | ||
] | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Generated by Django 3.2.18 on 2023-08-14 16:56 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("courses", "0040_populate_none_letter_grades_for_DEDP"), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameModel( | ||
old_name="CourseTopic", | ||
new_name="Department", | ||
), | ||
migrations.RemoveField( | ||
model_name="course", | ||
name="topics", | ||
), | ||
migrations.AddField( | ||
model_name="course", | ||
name="departments", | ||
field=models.ManyToManyField(blank=True, to="courses.Department"), | ||
), | ||
migrations.AddField( | ||
model_name="program", | ||
name="departments", | ||
field=models.ManyToManyField(blank=True, to="courses.Department"), | ||
), | ||
] |
22 changes: 22 additions & 0 deletions
22
courses/migrations/0042_add_ordering_to_course_and_program.py
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Generated by Django 3.2.20 on 2023-08-22 15:30 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
"""Adds ordering to the Course and Program model in order to support pagination.""" | ||
|
||
dependencies = [ | ||
("courses", "0041_rename_topics_add_to_programs"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name="course", | ||
options={"ordering": ["id"]}, | ||
), | ||
migrations.AlterModelOptions( | ||
name="program", | ||
options={"ordering": ["id"]}, | ||
), | ||
] |
This file contains 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
This file contains 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
Oops, something went wrong.