Skip to content

Conversation

@swebberuk
Copy link
Contributor

@swebberuk swebberuk commented Dec 18, 2025

Added change links to participant details and medical information

Description

image

Jira link

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

Review notes

Review checklist

  • Check database queries are correctly scoped to current_provider

@swebberuk swebberuk force-pushed the DTOSS-11816-edit-delete-mammograms branch from 228907e to 5eb448c Compare January 5, 2026 08:47
@swebberuk swebberuk marked this pull request as ready for review January 5, 2026 09:23
@swebberuk swebberuk requested a review from a team as a code owner January 5, 2026 09:23
@swebberuk swebberuk force-pushed the DTOSS-11816-edit-delete-mammograms branch from 5eb448c to 45b7544 Compare January 5, 2026 09:23
Comment on lines +23 to +29
{% if delete_link %}
<p class="nhsuk-u-margin-top-4">
<a href="{{ delete_link.href }}" class="{{ delete_link.class }}">
{{ delete_link.text }}
</a>
</p>
{% endif %}
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we stick this link inside the button group? @edwardhorsford
https://nhsuk.github.io/nhsuk-frontend/examples/button-group/

Copy link
Contributor

Choose a reason for hiding this comment

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

I think / reckon not.

I see button group as mostly being about complimentary choices - continue or perhaps cancel. But delete feels like a distinct action and worthy of being more separated from the continue buttonn.

{% if mammograms_by_date_added %}
{% for mammogram in mammograms_by_date_added %}
<p>
<a style="float: right" class="nhsuk-link nhsuk-link--no-visited-state" href="{{ mammogram.change_link.href}}">
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the inline style="float: right" from the prototype @edwardhorsford?

Do we need to set up some styles for this so it works nicely at all sizes?

Copy link
Contributor

@MatMoore MatMoore Jan 5, 2026

Choose a reason for hiding this comment

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

It might have been me who introduced it. On the record medical info page I'm expecting it to go away when we switch to the new card component, but not sure about this one.

Copy link
Contributor

Choose a reason for hiding this comment

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

This now uses a summary list so I expect this'll probably go away soon?

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess we can leave it for now then. Do you know if we've got a ticket for that @edwardhorsford?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not involved in writing dev tickets, but there's a design ticket in the 'ready for tech review' column so presumably @gpeng will pick up at some point?

Display is now more like this:
506054885-f5f89b8b-d7e0-4983-8cf1-91ecb62102d6

Copy link
Contributor

Choose a reason for hiding this comment

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

Cool that's good enough for me, just wanted to make sure we don't forget about it

@swebberuk swebberuk changed the title [wip] Update and delete previous mammogram Update and delete previous mammogram Jan 5, 2026
@swebberuk swebberuk force-pushed the DTOSS-11816-edit-delete-mammograms branch from 45b7544 to 6cb0ab3 Compare January 8, 2026 13:28
@swebberuk swebberuk requested a review from MatMoore January 8, 2026 14:24
)


@pytest.fixture
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be worth moving this fixture into a shared conftest.py under mammograms if there isn't one already. I think we define it in a lot of places and it's not really specific to the tests its used in

Added change links to participant details and medical information
@swebberuk swebberuk force-pushed the DTOSS-11816-edit-delete-mammograms branch from 6cb0ab3 to d161907 Compare January 8, 2026 16:52
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 8, 2026

@swebberuk swebberuk merged commit 4013b91 into main Jan 8, 2026
14 checks passed
@swebberuk swebberuk deleted the DTOSS-11816-edit-delete-mammograms branch January 8, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants