Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My courses #34

Merged
merged 13 commits into from
Jul 29, 2021
Merged

My courses #34

merged 13 commits into from
Jul 29, 2021

Conversation

emilkovacev
Copy link
Contributor

@emilkovacev emilkovacev commented Jul 28, 2021

Proposed changes


closes #15

  • Adds a user interface and drop-down filter for the Courses page
    • Displays a list of active courses
    • Saves filter option in local storage
    • Adds global styles

Types of changes


What types of changes does your code introduce?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Checklist


Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. This is simply a reminder of what we are going to look for before merging your code.

  • My changeset covers only what is described above (no extraneous changes)
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged downstream

Further comments

I added a small tag to the left of every course to easily differentiate them and add some color. I used an npm package licensed under MIT license to make hashes of each course code. I think it adds a nice visual flair, but if it needs to be removed then that's completely fine.

I didn't add this to this pull request, but there's an argument to be made to be able to toggle between rows and cards (which given the current implementation would not be difficult to do). Possibly redundant but thought I would at least throw the idea out there.


If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

devU-courses

devU-client-filter

devU-client-resize

emilkovacev and others added 9 commits July 25, 2021 16:00
* added CourseView, CourseFilter (in-progress), and CourseList (list of CourseViews)
* added filter dropdown
* reformatted information to table view
* transitioned grid to using flexbox for versatility
* Displaying all user-course & course info
* TODO
  * Store filter changes into local storage and read from ls for default
  * Touchup css (make it prettier)
  * Use actual loading overlay component
  * Use actual error component
Modified styling
Added a tag for each ListItem
@emilkovacev emilkovacev added the enhancement New feature or request label Jul 28, 2021
@emilkovacev emilkovacev self-assigned this Jul 28, 2021
Copy link
Member

@MikeDrewitt MikeDrewitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great first pass. The most amount of changes would just be that error page.

Absolutely great work.

src/components/pages/userCoursesListPage.tsx Outdated Show resolved Hide resolved
src/components/pages/userCoursesListPage.tsx Outdated Show resolved Hide resolved
Fixed accidental deletion of font

fixed pacing error for error page

Fixed error bug
src/components/pages/userCoursesListPage.tsx Outdated Show resolved Hide resolved
src/components/pages/userCoursesListPage.tsx Outdated Show resolved Hide resolved
src/components/pages/errorPage.tsx Outdated Show resolved Hide resolved
@MikeDrewitt
Copy link
Member

I'll leave this up until tomorrow if anyone else wants to take a look. But otherwise I think this looks g2g.

@MikeDrewitt MikeDrewitt merged commit ebedbe3 into master Jul 29, 2021
@MikeDrewitt MikeDrewitt deleted the my-courses branch July 29, 2021 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

My courses page
2 participants