Skip to content

Conversation

@DanBloxham-sw
Copy link
Contributor

@DanBloxham-sw DanBloxham-sw commented Jul 23, 2021

JIRA link

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

Description

Added new Manage Course page in the course setup. Manage Admin Fields page has had some breadcrumbs/back links changed to point to this new page. Note that the final two buttons are secondary buttons rather than primary buttons (used in the ticket wireframes) at Stella's suggestion to reduce the amount of green buttons on the page.

Screenshots

Desktop example 1:
Updated desktop full details

Mobile version of example 1:

Desktop example 2:
Updated desktop alternative details

Learning Pathway defaults with same course name:
Updated Same course display

Course Options with PLAssess = 0:
Course details no PLAssess


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

@AlexJacksonDS AlexJacksonDS left a comment

Choose a reason for hiding this comment

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

Just a few things about formatting/minor refactoring

const int centreId = 101;
const int categoryId = 0;
var fixedCreationDateTime = DateTime.UtcNow;
var expectedCourseDetails = new CourseDetails
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it worth pulling this out into a helper?

<dt class="nhsuk-summary-list__key">
Password
</dt>
<partial name="_SummaryFieldValue" model="@Model.Password" />
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we need to use the partial here since there is already a condition around the Password being null or white space.

<dt class="nhsuk-summary-list__key">
Course completion notification email
</dt>
<partial name="_SummaryFieldValue" model="@Model.NotificationEmails" />
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

Comment on lines 17 to 19
<dd class="nhsuk-summary-list__value">
@(Model.Active ? "Yes" : "No")
</dd>
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be worth turning these bool to Yes/No into a partial similar to the value with a dash partial

<div class="nhsuk-card__content basic-card-content">
<dl class="nhsuk-summary-list">
<div class="nhsuk-summary-list__row basic-summary-list__row">
<dt class="nhsuk-summary-list__key">Current version</dt>
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm sure you've run the formatter here, but is there any other reason for these to all be single line rather than the spaced version we're using elsewhere.

<dl class="nhsuk-summary-list">
<div class="nhsuk-summary-list__row basic-summary-list__row">
<dt class="nhsuk-summary-list__key">Current version</dt>
<dd class="nhsuk-summary-list__value ">@Model.CurrentVersion</dd>
Copy link
Contributor

Choose a reason for hiding this comment

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

There are also a number of classes with a space at the end in this file

Copy link
Contributor

@AlexJacksonDS AlexJacksonDS left a comment

Choose a reason for hiding this comment

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

Just one thing left to change

Comment on lines 73 to 75
<dd class="nhsuk-summary-list__value">
@(Model.ApplyLpDefaultsToSelfEnrol ? "Yes" : "No")
<partial name="_SummaryBooleanField" model="Model.ApplyLpDefaultsToSelfEnrol"/>
</dd>
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this whole element have been replaced?

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 great! 👍

@DanBloxham-sw DanBloxham-sw merged commit b0ac6e7 into master Jul 27, 2021
@DanBloxham-sw DanBloxham-sw deleted the HEEDLS-435-CourseSetupBasicCourseDetails branch July 27, 2021 10:14
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