Skip to content

Conversation

@malcolmbaig
Copy link
Contributor

@malcolmbaig malcolmbaig commented Dec 9, 2025

Description

  • Render saved appointment notes on appointment details tab
  • Add flash messages when saving a note

Flash message

Screenshot 2025-12-09 at 14 25 16

Rendered note

Screenshot 2025-12-09 at 14 25 47

Jira link

https://nhsd-jira.digital.nhs.uk/browse/DTOSS-11724

Review notes

na

Review checklist

  • Check database queries are correctly scoped to current_provider

Include assertions covering:

- the flash message appearing on note save
- seeing the saved note rendered on the appointment details tab
auditor.audit_create(note)
else:
auditor.audit_update(note)
messages.add_message(
Copy link
Contributor

Choose a reason for hiding this comment

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

Design question, but I'm wondering if this success message is unnecessary here.

Instead of redirecting back to the top of the notes tab, we could potentially redirect the user back to the appointment details tab, where the appointment note is visible as a banner.

When I tested the current version, it wasn't obvious to me that the banner was added to the appointment details tab after submitting the form on the notes tab.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@malcolmbaig malcolmbaig merged commit 37a7cb1 into main Dec 10, 2025
23 of 25 checks passed
@malcolmbaig malcolmbaig deleted the 11724-render-app-notes branch December 10, 2025 11:00
@github-actions
Copy link

The review app at this URL has been deleted:
https://pr-817.manage-breast-screening.non-live.screening.nhs.uk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants