Skip to content

Commit 75d69c8

Browse files
feat: add user feedback component (#1764)
* feat: feedback component and scss * feat: renamed component to UserFeedback and added components to required pages * chore: renamed imports from feedback to UserFeedback * feat: unused css removed
1 parent ccb4764 commit 75d69c8

File tree

6 files changed

+65
-0
lines changed

6 files changed

+65
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
const UserFeedback = () => {
2+
return (
3+
<div className="app-feedback-section">
4+
<hr />
5+
6+
<h2 className="nhsuk-u-padding-top-4">Help us improve</h2>
7+
<p>Your feedback helps us make our service better.</p>
8+
<a
9+
className="nhsuk-action-link"
10+
href="https://feedback.digital.nhs.uk/jfe/form/SV_3fSsaWEgsDZ2DJA"
11+
target="_blank"
12+
rel="noopener noreferrer"
13+
>
14+
<svg
15+
className="nhsuk-icon nhsuk-icon--arrow-right-circle"
16+
xmlns="http://www.w3.org/2000/svg"
17+
viewBox="0 0 24 24"
18+
width="25"
19+
height="25"
20+
focusable="false"
21+
aria-hidden="true"
22+
>
23+
<path d="M12 2a10 10 0 0 0-10 9h11.7l-4-4a1 1 0 0 1 1.5-1.4l5.6 5.7a1 1 0 0 1 0 1.4l-5.6 5.7a1 1 0 0 1-1.5 0 1 1 0 0 1 0-1.4l4-4H2A10 10 0 1 0 12 2z" />
24+
</svg>
25+
<span className="nhsuk-action-link__text">
26+
Let us know about your experience of Cohort Manager
27+
</span>
28+
</a>
29+
<p>
30+
If you need technical support, please continue to use our{' '}
31+
<a href="/contact-us">contact us</a> page rather than this form.
32+
</p>
33+
</div>
34+
);
35+
};
36+
37+
export default UserFeedback;

application/CohortManager/src/Web/app/exceptions/[filter]/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import Breadcrumb from "@/app/components/breadcrumb";
1010
import Unauthorised from "@/app/components/unauthorised";
1111
import DataError from "@/app/components/dataError";
1212
import Pagination from "@/app/components/pagination";
13+
import UserFeedback from "@/app/components/userFeedback";
1314

1415
export const metadata: Metadata = {
1516
title: `Raised breast screening exceptions - ${process.env.SERVICE_NAME} - NHS`,
@@ -144,6 +145,7 @@ export default async function Page({
144145
}
145146
/>
146147
)}
148+
<UserFeedback />
147149
</>
148150
)}
149151
</div>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import Breadcrumb from "@/app/components/breadcrumb";
1010
import Unauthorised from "@/app/components/unauthorised";
1111
import DataError from "@/app/components/dataError";
1212
import Pagination from "@/app/components/pagination";
13+
import UserFeedback from "@/app/components/userFeedback";
1314

1415
export const metadata: Metadata = {
1516
title: `Not raised breast screening exceptions - ${process.env.SERVICE_NAME} - NHS`,
@@ -145,6 +146,7 @@ export default async function Page({
145146
}
146147
/>
147148
)}
149+
<UserFeedback />
148150
</>
149151
)}
150152
</div>

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,3 +142,23 @@
142142
margin-right: 0;
143143
margin-left: 8px;
144144
}
145+
146+
.nhsuk-action-link {
147+
display: flex;
148+
}
149+
150+
.nhsuk-icon--arrow-right-circle {
151+
margin-right: 8px;
152+
}
153+
154+
.nhsuk-action-link__text {
155+
font-size: 20px;
156+
font-weight: bold;
157+
align-self: center;
158+
}
159+
160+
.app-feedback-section .nhsuk-action-link svg.nhsuk-icon--arrow-right-circle {
161+
fill: #00703c;
162+
color: #00703c;
163+
}
164+

application/CohortManager/src/Web/app/participant-information/[exceptionId]/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import Breadcrumb from "@/app/components/breadcrumb";
99
import ParticipantInformationPanel from "@/app/components/participantInformationPanel";
1010
import Unauthorised from "@/app/components/unauthorised";
1111
import DataError from "@/app/components/dataError";
12+
import UserFeedback from "@/app/components/userFeedback";
1213

1314
export const metadata: Metadata = {
1415
title: `Exception information - ${process.env.SERVICE_NAME} - NHS`,
@@ -195,6 +196,7 @@ export default async function Page(props: {
195196
searchParams={resolvedSearchParams}
196197
/>
197198
</div>
199+
<UserFeedback />
198200
</div>
199201
</main>
200202
</>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import ReportsTable from "@/app/components/reportsTable";
77
import Unauthorised from "@/app/components/unauthorised";
88
import { type ReportDetails } from "@/app/types";
99
import { formatDate, formatIsoDate } from "../lib/utils";
10+
import UserFeedback from "@/app/components/userFeedback";
1011

1112
export const metadata: Metadata = {
1213
title: `Reports - ${process.env.SERVICE_NAME} - NHS`,
@@ -75,6 +76,7 @@ export default async function Page() {
7576
</div>
7677
</div>
7778
</div>
79+
<UserFeedback />
7880
</main>
7981
</>
8082
);

0 commit comments

Comments
 (0)