Skip to content

Conversation

@AlexJacksonDS
Copy link
Contributor

@AlexJacksonDS AlexJacksonDS commented Aug 11, 2021

JIRA link

https://softwiretech.atlassian.net/browse/HEEDLS-516

Description

Adds a page to display all the courses within the group as a paginated list of NHS expanders. (counterpart of the Delegates page from HEEDLS-513)

Screenshots

image
image
image


Developer checks

I have:

  • Run the formatter and made sure there are no IDE errors.
  • Written tests for the changes (controller, data services, services, view models etc) and manually tested my work with and without JavaScript. Full manual testing guidelines can be found here: https://softwiretech.atlassian.net/wiki/spaces/HEE/pages/6703648740/Testing
  • Updated/added documentation in Swiki and/or Readme.
  • Updated my Jira ticket with information about other parts of the system that were touched as part of the MR and have to be sanity tested to ensure nothing’s broken.
  • Scanned over my own MR to ensure everything is as expected.

Copy link
Contributor

@DanBloxham-sw DanBloxham-sw left a comment

Choose a reason for hiding this comment

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

Few minor comments.

Copy link
Contributor

@DanBloxham-sw DanBloxham-sw left a comment

Choose a reason for hiding this comment

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

Looks good to me

</summary>
<div class="nhsuk-details__text">
<div class="tags">
<div class="card-filter-tag">
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we ever need to filter these?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There's styles associated with this class to make tags on cards display properly

Copy link
Contributor

Choose a reason for hiding this comment

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

Should we in this case name it something different (which doesn't refer to filters and should be used more generally)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are you happy with the refactor of the css here? It is still slightly tied to the search/sort/paginate etc. styles

}
@if (Model.TotalPages > 1)
{
<partial name="SearchablePage/_Pagination" model="Model" />
Copy link
Contributor

Choose a reason for hiding this comment

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

Given that this is not searchable page, should the pagination partial folder have a different name/should it live in a different folder (as it's more generic)?

@AlexJacksonDS AlexJacksonDS force-pushed the HEEDLS-516-group-courses branch from 8d3c607 to 4574a45 Compare August 13, 2021 13:40
@AlexJacksonDS
Copy link
Contributor Author

I've refactored the pagination to pull out the logic for that into a separate BasePaginationViewModel that the old BaseSearchablePageViewModel now implements. I've not done anything about the SortOptions on this ticket, I think we should revisit that on a ticket that is actually using search/filter but not sort.

Copy link
Contributor

@stellake stellake left a comment

Choose a reason for hiding this comment

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

Looks good! 👍

@AlexJacksonDS AlexJacksonDS merged commit e4fb73e into master Aug 16, 2021
@AlexJacksonDS AlexJacksonDS deleted the HEEDLS-516-group-courses branch August 16, 2021 11:28
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.

4 participants