Skip to content

Conversation

@AlexJacksonDS
Copy link
Contributor

Added the new Centre ranking page in the tracking system and the centre rank to the dashboard.

Current centre highlight is the colour chosen by Kevin, but can easily be updated if we need to change it in the future.

Normal admin page:
image

Super admin version showing the no data for your centre entry - this will always be true for test centre ID 101:
image

Mobile 3 col layout:
image

Centre dashboard with no activity. This displays the rank number if there has been activity at the centre in the last 14 days:
image

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, but I am only halfway through a review before needing to leave for a long weekend. Submitting this review for now in case you want to tackle anything, but anyone else can review it instead if we want to get this ticket out of the way while I'm gone. Otherwise I'll pick it back up first thing on Tuesday.

</thead>
<tbody class="nhsuk-table__body">
@foreach (var centre in Model.TopTenCentres) {
<tr role="row" class="nhsuk-table__row @(centre.Rank == Model.CurrentCentre?.Rank ? "current-centre" : string.Empty)">
Copy link
Contributor

Choose a reason for hiding this comment

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

When I've encountered elements that sometimes need classes and sometimes don't, I've defined a variable at the top of the html in its own code block, rather than in the element attribute itself.

It is by no means a big deal, but do we have a preference one way or the other?

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.

Rest of the review completed. Few more 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.

Looking good.

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 26fc2a1 into master Jun 28, 2021
@AlexJacksonDS AlexJacksonDS deleted the HEEDLS-468-basic-centre-ranking-page branch June 28, 2021 13:12
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.

3 participants