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

Restructure front end for new course/assignment/signup flow. #127

Open
wants to merge 9 commits into
base: restructure
Choose a base branch
from

Conversation

souravtecken
Copy link
Contributor

@souravtecken souravtecken commented Sep 1, 2019

  1. Added signup option in the navbar dropdown.
  2. Seperated courseCards for courseAdmin/(Student/CourseMember)
  3. Seperated courseView pages for the same.
  4. Added requestCourse option in courses page.
  5. courseMember can add assignments within a courseCard.
  6. Added collegeMembers reducer (For retrieving list of teaching members in courseAdminCard)

Course component hierarchy:

  • CoursesContainer (Conditionally renders either of the following two views)
    • CoursesAdminView (contains handleApproveCourse, handleRejectCourse methods)
      • CourseCardAdmin (Card for course request)
    • CourseView (contains handleActivateCourse, handleRequestCourse methods)
      • CourseCard (Card for teaching members/student, contains handleCreateAssignment method)

collegeMembersReducer:

  • Action: FETCHED_PROFS
    • adds list of professor objects (containing ID and name) to store.
  • Action: CLEARED_PROFS
    • Clears professors from store.
  • Action: FETCHED_STUDENTS
    - adds list of student objects (containing ID and name) to store.
  • Action: CLEARED_PROFS
    • Clears professors from store.

1. Added signup option in the navbar dropdown.
2. Seperated courseCards for courseAdmin/(Student/CourseMember)
3. Seperated courseView pages for the same.
4. Added requestCourse option in courses page.
5. courseMember can add assignments within a courseCard.
6. Added professor list reducer (For retrieving list of teaching members in courseAdminCard)

Course component hierarchy:
- CoursesContainer (Conditional renders either of the following two views)
	- CoursesAdminView (contains handleApproveCourse, handleRejectCourse methods)
		- CourseCardAdmin (Card for course request)
	- CourseView (contains handleActivateCourse, handleRequestCourse methods)
		- CourseCard (Card for teaching members/student, contains handleCreateAssignment method)

profReducer:
- Action: FETCHED_PROFS
	- adds list of teacher objects (containing ID and name) to store.
- Action: CLEARED_PROFS
	- Clears teachers from store.
1. Added comment, removed tags from user object in response.
2. Updated route used to fetch teacher details.
Copy link
Collaborator

@adityavinodk adityavinodk left a comment

Choose a reason for hiding this comment

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

The courses page isn't loading, please look into that

Copy link
Collaborator

@adityavinodk adityavinodk left a comment

Choose a reason for hiding this comment

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

Need minor UI flow changes

@RRK1000 RRK1000 self-requested a review September 28, 2019 03:04
-> Updated to allow adding of different classes with respective teaching members and sections.
-> Added student/prof selector with role in courseAdminCard
-> Improved signup form appearance
-> Added collegeMember reducer for students and professors, replacing previous prof reducer.
-> Added validation on frontend in courseAdmin flow. (For grad year, addition of classes, selecting of teaching members)
-> Minor UI changes
-> TODO: Replace toasts with alerts
-> Added graduatingYear to course schema
-> Moved graduatingYear picker for each class from course as a whole
-> Course Admin card shows selected teaching members outside the selector
Copy link
Collaborator

@RRK1000 RRK1000 left a comment

Choose a reason for hiding this comment

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

LGTM

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.

None yet

3 participants