Skip to content

Commit 632402d

Browse files
style: Web UX - moving sort by (#1854)
* testing verified commit * fix: UX changes for sort by * moved placement of sort by * UX changes
1 parent cd231f5 commit 632402d

6 files changed

Lines changed: 35 additions & 26 deletions

File tree

application/CohortManager/src/Web/app/components/ExceptionsPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@ export default async function ExceptionsPage({
9090
{title && <h1>{title}</h1>}
9191

9292
{totalItems === 0 ? (
93-
<p className="nhsuk-body">
93+
<p className="nhsuk-body nhsuk-u-margin-top-5">
9494
{noResultsMessage}
9595
</p>
9696
) : (
9797
<>
9898
<p
99-
className="app-results-text"
99+
className={"app-results-text_exceptions"}
100100
data-testid={exceptionStatus === ExceptionStatus.Raised ? "raised-exception-count" : "not-raised-exception-count"}
101101
>
102102
Showing {startItem} to {endItem} of {totalItems} results

application/CohortManager/src/Web/app/components/filterExceptionsForm.tsx

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -33,27 +33,6 @@ export default function FilterExceptionsForm({
3333

3434
return (
3535
<form className="nhsuk-form" data-testid="filter-exceptions-form" method="GET">
36-
<div className="nhsuk-form-group">
37-
<label
38-
className="nhsuk-label"
39-
htmlFor="sort-exceptions"
40-
>
41-
Sort by
42-
</label>
43-
<select
44-
className="nhsuk-select"
45-
id="sort-exceptions"
46-
name="sortBy"
47-
defaultValue={sortBy}
48-
>
49-
{sortOptions.map((option) => (
50-
<option key={option.value} value={option.value}>
51-
{option.label}
52-
</option>
53-
))}
54-
</select>
55-
</div>
56-
5736
<div className="nhsuk-form-group">
5837
<label className="nhsuk-label" htmlFor="filter-rule">
5938
Filter by exception type
@@ -72,7 +51,6 @@ export default function FilterExceptionsForm({
7251
))}
7352
</select>
7453
</div>
75-
7654
<div
7755
className={`nhsuk-form-group ${dateError ? "nhsuk-form-group--error" : ""}`}
7856
>
@@ -166,6 +144,26 @@ export default function FilterExceptionsForm({
166144
</div>
167145
</fieldset>
168146
</div>
147+
<div className="nhsuk-form-group_exceptions">
148+
<label
149+
className="nhsuk-label"
150+
htmlFor="sort-exceptions"
151+
>
152+
Sort by
153+
</label>
154+
<select
155+
className="nhsuk-select"
156+
id="sort-exceptions"
157+
name="sortBy"
158+
defaultValue={sortBy}
159+
>
160+
{sortOptions.map((option) => (
161+
<option key={option.value} value={option.value}>
162+
{option.label}
163+
</option>
164+
))}
165+
</select>
166+
</div>
169167
</form>
170168
);
171169
}

application/CohortManager/src/Web/app/components/sortExceptionsForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function SortExceptionsForm({
1111
}: Readonly<SortExceptionsFormProps>) {
1212
return (
1313
<form className="nhsuk-form" data-testid="sort-exceptions-form" method="GET">
14-
<div className="nhsuk-form-group">
14+
<div className="nhsuk-form-group_exceptions">
1515
<label
1616
className="nhsuk-label nhsuk-u-visually-hidden"
1717
htmlFor="sort-exceptions"

application/CohortManager/src/Web/app/globals.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,3 +203,13 @@
203203
.nhsuk-header__account {
204204
flex-shrink: 0;
205205
}
206+
207+
.nhsuk-form-group_exceptions {
208+
text-align: right;
209+
}
210+
211+
.app-results-text_exceptions {
212+
margin-top: -2rem;
213+
}
214+
215+

application/CohortManager/src/Web/app/reports/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default async function Page() {
5858
<div className="nhsuk-grid-column-full">
5959
<h1 data-testid="heading-report">Reports</h1>
6060
<p
61-
className="app-results-text nhsuk-u-margin-bottom-4"
61+
className="nhsuk-body nhsuk-u-margin-bottom-3"
6262
data-testid="reports-date-range"
6363
>
6464
Showing reports for {formatDate(formatIsoDate(start))} to{" "}

docs/user-guides/Sign_Git_commits.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,3 +335,4 @@ After completing these steps, your new signing key will be listed in the "**SSH
335335
## Testing
336336

337337
To ensure your configuration works as expected, make a commit to a branch locally and push it to GitHub. When you view the commit history of the branch on GitHub, [your latest commit](https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification#about-commit-signature-verification) should now display a `Verified` tag, which indicates successful signing with your GPG or SSH key.
338+

0 commit comments

Comments
 (0)