Skip to content

Convert key:value tables to summary lists - part 2 - #6046

Open
kr8n3r wants to merge 11 commits into
mainfrom
convert-tables-to-lists-part-2
Open

Convert key:value tables to summary lists - part 2#6046
kr8n3r wants to merge 11 commits into
mainfrom
convert-tables-to-lists-part-2

Conversation

@kr8n3r

@kr8n3r kr8n3r commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

What

Convert tables on below urls to summary lists. These lists are key:value pairs so from an accessibility standpoint, a summary list that's built on description list element is more appropriate.

Continuation of the work started in #6029

Accompanying FTs alphagov/notifications-functional-tests#672 should be merged before this

Review

See individual commits for details

URLs

/services/uuid:service_id/notifications
/services/uuid:service_id/uploads
/services/uuid:service_id/jobs
/services/uuid:service_id/jobs/uuid:job_id
/services/uuid:service_id/uploaded-letters/YYY-MM-DD (when uploading a letter via /uploads)
/services/uuid:service_id/send/uuid:template_id/from-contact-list (send by uploading csv)

Visuals

Screenshot 2026-08-28 at 16 14 44 Screenshot 2026-08-28 at 16 15 36 Screenshot 2026-08-28 at 16 16 00 Screenshot 2026-08-28 at 16 20 41

@kr8n3r
kr8n3r force-pushed the convert-tables-to-lists-part-2 branch 2 times, most recently from 6c55293 to da828c0 Compare August 26, 2026 14:22
kr8n3r added a commit to alphagov/notifications-functional-tests that referenced this pull request Aug 27, 2026
Needed for alphagov/notifications-admin#6046

We look both both current and future selectors,
like we did in #665,
so tests can be merged before admin.

Once admin is merged, we'll do a cleanup here.
@kr8n3r
kr8n3r force-pushed the convert-tables-to-lists-part-2 branch 2 times, most recently from 44a6c6a to 74b4d2b Compare August 27, 2026 14:30
kr8n3r added 10 commits August 27, 2026 15:31
Update table to summary list

Utilises classes created in #6029
Create a simplified version of the notification_status_field
macro from the table component to be used in the
notifications lists.

Styles for it were taken from components/table.scss
and rewritten.

Once we've migrated all the tables to either
summary-lists or govuk-frontend tables,
the table macros can safely be deleted.

Note: Ideally this would be called
`notification-status` but we already use that
some something else, so did not want to create
more changes.
Update table to summary list

Utilises classes created in
#6029

Utilises the newly created `notification-state`
component.
Update table to summary list

Utilises classes created in
#6029

Utilises the newly created `notification-state`
component.
Update table to summary list

Utilises classes created in
#6029
Update target selectors
Update target

For the test_sending_status_hint_displays_correctly_on_notifications_page
which was testing whether the link to the
status page is present, parameters were reversed
and single_line changed to has_link.

This is easier to follow now that the
`.notification-state` elements contains/not contains
the link. Link was previously outside of the
of a similar container.
Update target selectors

Remove
assert "Recipient" in content["notifications"]
assert "Status" in content["notifications"]

which were previously table headers.
With the conversion to a list, this is no longer
present.
Update target selectors
@kr8n3r
kr8n3r force-pushed the convert-tables-to-lists-part-2 branch from 74b4d2b to 145dc2c Compare August 27, 2026 14:44
@kr8n3r kr8n3r changed the title WIP: Convert tables to summary-lists - part 2 Convert key:value tables to summary lists - part 2 Aug 28, 2026
@kr8n3r
kr8n3r marked this pull request as ready for review August 28, 2026 15:11
For utility classes that aren't part of a component.

Migrate existing `.no-data` from app.scss

Add `.more-items-available-text` class - modified version from `components/table.scss` for when lists and tables have more data thna we show.  As this paragraph in no longer a paer of the table it doesn't make sense to have it there anymore.

Once all tables have been migrated, we'll be able to safely delete table.scss
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.

1 participant