-
Notifications
You must be signed in to change notification settings - Fork 1
HEEDLS-432 - Centre Course Setup search sort filter and paginate impl… #554
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
HEEDLS-432 - Centre Course Setup search sort filter and paginate impl… #554
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few minor things, other than those it looks OK to me
| ApplicationName = "Course", CustomisationName = "Customisation", Active = true, CourseTopic = "Topic 1", | ||
| CategoryName = "Category 1", HideInLearnerPortal = true, DelegateCount = 1, CompletedCount = 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This initialiser shouldn't be formatted like this
| private readonly ICourseService courseService; | ||
|
|
||
| public CourseSetupController(ICourseService courseService) | ||
| public CourseSetupController(ICourseService courseService, ICourseCategoriesDataService courseCategoriesDataService, ICourseTopicsDataService courseTopicsDataService) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Long line, run formatter
| return View(model); | ||
| } | ||
|
|
||
| private void UpdateFilterCookie(string? filterBy) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took a slightly different approach to this comment and only took out the contents of the true branch to a new method. We should be consistent, but I'm not sure which way.
If we take the approach here, the method needs renaming to something referencing the fact that it may also be deleted here.
DigitalLearningSolutions.Data/DataServices/CourseTopicsDataService.cs
Outdated
Show resolved
Hide resolved
...ningSolutions.Web.Tests/Controllers/TrackingSystem/CourseSetup/CourseSetupControllerTests.cs
Outdated
Show resolved
Hide resolved
...lLearningSolutions.Web/ViewModels/TrackingSystem/CourseSetup/AllCourseStatisticsViewModel.cs
Outdated
Show resolved
Hide resolved
...lLearningSolutions.Web/ViewModels/TrackingSystem/CourseSetup/AllCourseStatisticsViewModel.cs
Show resolved
Hide resolved
DigitalLearningSolutions.Web/ViewModels/TrackingSystem/CourseSetup/CourseSetupViewModel.cs
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Web/Views/TrackingSystem/CourseSetup/Index.cshtml
Show resolved
Hide resolved
...olutions.Web/ViewModels/TrackingSystem/CourseSetup/CourseStatisticsViewModelFilterOptions.cs
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Web/Controllers/TrackingSystem/CourseSetup/CourseSetupController.cs
Outdated
Show resolved
Hide resolved
...ningSolutions.Web.Tests/Controllers/TrackingSystem/CourseSetup/CourseSetupControllerTests.cs
Outdated
Show resolved
Hide resolved
...ningSolutions.Web.Tests/Controllers/TrackingSystem/CourseSetup/CourseSetupControllerTests.cs
Outdated
Show resolved
Hide resolved
...ningSolutions.Web.Tests/Controllers/TrackingSystem/CourseSetup/CourseSetupControllerTests.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Could you please double check before merge that the VC inconsistency is mentioned in JIRA? 🙏
...emented
JIRA link
This is split over three tickets:
Search & Paginate: https://softwiretech.atlassian.net/browse/HEEDLS-432
Sort: https://softwiretech.atlassian.net/browse/HEEDLS-433
Filter: https://softwiretech.atlassian.net/browse/HEEDLS-434
Description
Implemented both JS and non-JS versions of searching, pagination, sorting, and filtering to the Course Setup page.
Screenshots
JS UI with full page:

Non JS UI:

Mobile:

Developer checks
I have: