-
Notifications
You must be signed in to change notification settings - Fork 0
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
Create ofsted pages #641
base: main
Are you sure you want to change the base?
Create ofsted pages #641
Conversation
… was added compared to when the inspection took place
Quality Gate passedIssues Measures |
return rating switch | ||
{ | ||
CategoriesOfConcern.None => "None", | ||
CategoriesOfConcern.SpecialMeasures => "Special Measures", |
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.
CategoriesOfConcern.SpecialMeasures => "Special Measures", | |
CategoriesOfConcern.SpecialMeasures => "Special measures", |
{ | ||
CategoriesOfConcern.None => "None", | ||
CategoriesOfConcern.SpecialMeasures => "Special Measures", | ||
CategoriesOfConcern.SeriousWeakness => "Serious Weakness", |
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.
CategoriesOfConcern.SeriousWeakness => "Serious Weakness", | |
CategoriesOfConcern.SeriousWeakness => "Serious weakness", |
CategoriesOfConcern.None => "None", | ||
CategoriesOfConcern.SpecialMeasures => "Special Measures", | ||
CategoriesOfConcern.SeriousWeakness => "Serious Weakness", | ||
CategoriesOfConcern.NoticeToImprove => "Notice To Improve", |
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.
CategoriesOfConcern.NoticeToImprove => "Notice To Improve", | |
CategoriesOfConcern.NoticeToImprove => "Notice to improve", |
@@ -26,8 +28,9 @@ public static string ToDisplayString(this OfstedRatingScore rating) | |||
OfstedRatingScore.RequiresImprovement => "Requires improvement", | |||
OfstedRatingScore.Inadequate => "Inadequate", | |||
OfstedRatingScore.None => "Not yet inspected", | |||
OfstedRatingScore.NoJudgement => "No Judgement", |
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.
OfstedRatingScore.NoJudgement => "No Judgement", | |
OfstedRatingScore.NoJudgement => "No judgement", |
SafeguardingScore.None => "None", | ||
SafeguardingScore.Yes => "Yes", | ||
SafeguardingScore.No => "No", | ||
SafeguardingScore.NotRecorded => "Not Recorded", |
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.
SafeguardingScore.NotRecorded => "Not Recorded", | |
SafeguardingScore.NotRecorded => "Not recorded", |
|
||
### Removed | ||
|
||
- Remove acadmies in trust ofsted page |
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.
- Remove acadmies in trust ofsted page | |
- Remove academies in trust Ofsted page |
<caption class="govuk-table__caption govuk-table__caption--m">Current ratings</caption> | ||
<thead class="govuk-table__head"> | ||
<tr class="govuk-table__row"> | ||
<th scope="col" class="govuk-table__header" aria-sort="ascending" data-testid="ofsted-current-ratings-school-name-header"> |
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.
Missing govuk-body (which leads to browser font re-sizing a11y issues)
Same on all tables for the school name column
<th scope="col" class="govuk-table__header govuk-body column-header-ofsted-rating" aria-sort="none" data-testid="ofsted-current-ratings-early-years-provision-header"> | ||
Early years provision | ||
</th> | ||
<th scope="col" class="govuk-table__header govuk-body column-header-ofsted-rating" aria-sort="none" data-testid="ofsted-current-ratings-sixth-form-provision-header"> |
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.
We seem to be overriding the width of most columns on most tables but overrides should be the exception rather than the norm.
I think it would be better to only override the width of the school name column and before/after joining column if they need to be specific widths
CategoriesOfConcern.SpecialMeasures => "Special Measures", | ||
CategoriesOfConcern.SeriousWeakness => "Serious Weakness", | ||
CategoriesOfConcern.NoticeToImprove => "Notice To Improve", | ||
_ => "Unknown" |
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.
From old PR: #634 (comment)
@academy.PreviousOfstedRating.SixthFormProvision.ToDisplayString() | ||
</td> | ||
<td class="govuk-table__cell govuk-body" data-sort-value="@(academy.IsPreviousInspectionAfterJoining ? "After" : "Before")" data-testid="ofsted-previous-ratings-before-or-after-joining "> | ||
@await Html.PartialAsync("_BeforeOrAfterTag", academy.IsCurrentInspectionAfterJoining) |
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.
@await Html.PartialAsync("_BeforeOrAfterTag", academy.IsCurrentInspectionAfterJoining) | |
@await Html.PartialAsync("_BeforeOrAfterTag", academy.IsPreviousInspectionAfterJoining) |
<td class="govuk-table__cell govuk-body" data-sort-value="@academy.CurrentOfstedRating.CategoryOfConcern.ToDataSortValue()" data-testid="category-of-concern" data-testid="ofsted-safeguarding-and-concerns-category-of-concern"> | ||
@academy.CurrentOfstedRating.CategoryOfConcern.ToDisplayString() | ||
</td> | ||
<td class="govuk-table__cell govuk-body" data-sort-value="@(academy.IsPreviousInspectionAfterJoining ? "After" : "Before")" data-testid="ofsted-safeguarding-and-concerns-before-or-after-joining"> |
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.
<td class="govuk-table__cell govuk-body" data-sort-value="@(academy.IsPreviousInspectionAfterJoining ? "After" : "Before")" data-testid="ofsted-safeguarding-and-concerns-before-or-after-joining"> | |
<td class="govuk-table__cell govuk-body" data-sort-value="@(academy.IsCurrentInspectionAfterJoining ? "After" : "Before")" data-testid="ofsted-safeguarding-and-concerns-before-or-after-joining"> |
@@ -0,0 +1,13 @@ | |||
@model bool |
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.
For readability and to enable extra states (like not inspected) we could use an enum instead of a bool to store the before/after state
public enum BeforeOrAfterJoining
{
Before,
After
}
User Story 183586: Build: New Ofsted data (iteration 1 - Add Ofsted pages)
Create the ofsted page in the service nav and ofsted pages in the sub nav of the page.
Changes
Screenshots of UI changes
Before
After
Checklist