Skip to content

Use action links more consistently#258

Merged
malross merged 5 commits intomainfrom
action-links
Apr 14, 2026
Merged

Use action links more consistently#258
malross merged 5 commits intomainfrom
action-links

Conversation

@paulrobertlloyd
Copy link
Copy Markdown
Collaborator

@paulrobertlloyd paulrobertlloyd commented Apr 13, 2026

Buttons are typically used for submitting data or performing an action, whereas links are used to take you to a new page.

As such, we’ve started using the action link component when linking to the start of a journey. This PR uses this component for remaining links that would benefit from this link styling.

  • School → Children → Import class lists
  • School → Children → Invite to clinic
  • School → Sessions → Add new session
  • Sessions → Session → Record offline
  • Sessions → Session → Send clinic invitations
  • Unmatched responses → Match → Create new record
  • Uploads → Upload records

It also rearranges links on the session overview page to make ‘Record offline’ and ‘Send clinic invitations’ links more prominent, for example for a completed session:

Flu session at Cardinal Wiseman Catholic School.

@paulrobertlloyd paulrobertlloyd requested a review from malross April 13, 2026 16:48
@paulrobertlloyd paulrobertlloyd temporarily deployed to mavis-protot-action-lin-icgbed April 13, 2026 16:50 Inactive
@paulrobertlloyd paulrobertlloyd temporarily deployed to mavis-protot-action-lin-icgbed April 13, 2026 16:57 Inactive
{% include "session/_session-vaccinated-summary.njk" %}
{% endif %}

{% if not session.isUnplanned and not session.isCompleted %}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What was the previous reason for not showing required actions when the session was completed? What changed?

{% call card({
heading: __("session.summary"),
headingLevel: 3,
actions: {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

OK, I'm gonna need to move a new Cancel Session button to here as well (currently sat on a branch, but I'll rebase on this change once merged to main).

Comment thread app/views/session/show.njk
Copy link
Copy Markdown
Collaborator

@malross malross left a comment

Choose a reason for hiding this comment

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

All looks good. My comments/questions are just for info / for me to understand context, but the design and code changes look good.

@malross malross merged commit d211b8a into main Apr 14, 2026
1 check passed
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.

2 participants