-
Notifications
You must be signed in to change notification settings - Fork 4
Add appointment notes #797
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
Conversation
6efc53c to
7b64e2a
Compare
|
I think I see two potential issues in these screenshots The error summary is showing beneath the tabs, but this is unconventional. Usually they'd be at the top of the page, below any back links as the fist item within The left red border on the textArea doesn't look right - it's extending too far below the field. The error bar is expected to align with the bottom of the field. This makes me think there may be a bug in the component or the error is being applied to the wrong thing. The spacing between the label / hint / message looks a bit large to me - I wouldn't mind checking the rendered output for this. |
|
I think the red border extending too far is because this field is now a character-count component, and we are using the design system as it comes rather than tweaking any of the margins. By default, it seems to have a large bottom margin, I'm not sure why. |
Ah if it's the character count (which makes sense!), I guess it's leaving space for the message. That might imply the actual bug is that the default message of |
|
Checked in the prototype, and the extended error line is the default for character count when using threshold. I reckon it looks a bit messy, but it means that's not a bug on our side. |
We have threshold set to 25 currently https://github.com/NHSDigital/dtos-manage-breast-screening/blob/11596-add-appointment-note/manage_breast_screening/nhsuk_forms/fields/char_field.py#L21. Could set this to 0 in just this form to make the 'characters remaining' message always appear? @edwardhorsford |
7b64e2a to
33cc009
Compare
|
The review app at this URL has been deleted: |
Each Appointment has one AppointmentNote. Add the model definition, migration and factory for this new model.
- Simplify some filenames - Move CIS2-related system tests into general folder - Move 'appointment cannot go ahead form' into clinical folder
Amend the implementation of this system test helper so that it also works with fields that aren't wrapped in a fieldset (eg - a simple text field).
f3ec3b9 to
452e313
Compare
@rivalee any views? I somewhat reckon we should set the character limit quite high, and the threshold before any warning is shown also quite high - perhaps 75%. The error line extending too far is mildly annoying, but probably something to fix in the source library or else ignore. |
|
Merging for now, can pick up amendments to character fields in a followup PR. |
Description
Add note creation UI to the Note tab on the appointment page.
Jira link
https://nhsd-jira.digital.nhs.uk/browse/DTOSS-11596
Review notes
Individual commits are worth a read through for the indirectly related changes — the system test reorg and changes to the validation error helper for system tests.
Review checklist