Skip to content
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

Improve consistency of breadcrumbs #2643

Merged
merged 14 commits into from
Jan 15, 2024
Merged

Improve consistency of breadcrumbs #2643

merged 14 commits into from
Jan 15, 2024

Conversation

chrislo
Copy link
Contributor

@chrislo chrislo commented Jan 11, 2024

Trello: https://trello.com/c/dB0VDo9a

We've taken a look at the site as a whole and identified some places where the consistency of the breadcrumb trail can be improved. The main changes here are in the first two commits where we:

  • Standardise on "Dashboard" as the first crumb in the trail
  • Remove the final crumb from every trail to be consistent with the design system

The other changes are mostly small tweaks to make things more consistent.

We used a mixture of "Home" and "Dashboard" in our breadcrumbs, this
makes sure they all start at "Dashboard".
@chrislo chrislo force-pushed the tidy-up-breadcrumbs branch 2 times, most recently from feec20e to 6af980e Compare January 11, 2024 16:06
As per the design system[1], the "breadcrumbs should start with your
‘home’ page and end with the parent section of the current page". This
commit removes the current page from all of our breadcrumbs.

[1] https://design-system.service.gov.uk/components/breadcrumbs/#how-it-works
@chrislo chrislo marked this pull request as ready for review January 11, 2024 16:18
@chrislo chrislo marked this pull request as draft January 11, 2024 16:21
The breadcrumb trail on this page only has a single link back to
Dashboard, and that link is easily accessible from the main nav. The
design system says[1]:

    If you’re using other navigational elements on the page, such as a
    sidebar, consider whether your users need the additional support
    of breadcrumbs.

So I don't think we need this breadcrumb trail here.

[1] https://design-system.service.gov.uk/components/breadcrumbs/#how-it-works
The breadcrumb trail on this page only has a single link back to
Dashboard, and that link is easily accessible from the main nav. The
design system says[1]:

    If you’re using other navigational elements on the page, such as a
    sidebar, consider whether your users need the additional support
    of breadcrumbs.

So I don't think we need this breadcrumb trail here.

[1] https://design-system.service.gov.uk/components/breadcrumbs/#how-it-works
We're not consistently using quotes around names in titles, so have
decided to remove them.
We're not consistently using quotes around names in titles, so have
decided to remove them.
We're not consistently using quotes around names in titles, so have
decided to remove them.
Using a breadcrumb trail here is more consistent with the rest of the site.
This commit changes the last breadcrumb to match that used
on `/users/*/applications`.
We don't think it's necessary to repeat the user's name in this
breadcrumb trail and it can lead to very long breadcrumbs when the
user has a long name.
We don't think it's necessary to repeat the user's name in this
breadcrumb trail and it can lead to very long breadcrumbs when the
user has a long name.
We don't think it's necesarry to include the word "Edit" in the title
here, since the subtitle "Manage API users" conveys that information.
We don't think it's necesarry to include the word "Edit" in the title
here, since the subtitle "Manage other users" conveys that
information.
The other pages that are linked to from the /users/edit page have this
title caption, so we should be consistent here too.
@chrislo chrislo marked this pull request as ready for review January 11, 2024 16:37
@floehopper floehopper self-assigned this Jan 15, 2024
@floehopper floehopper self-requested a review January 15, 2024 09:05
Copy link
Contributor

@floehopper floehopper left a comment

Choose a reason for hiding this comment

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

I haven't looked at all the breadcumbs across the site to check you haven't missed any, but all these changes make sense to me! 👍

@chrislo chrislo merged commit 600a952 into main Jan 15, 2024
16 checks passed
@chrislo chrislo deleted the tidy-up-breadcrumbs branch January 15, 2024 09:58
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