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

Empty state #178

Open
michaelgallagher opened this issue Oct 29, 2024 · 1 comment
Open

Empty state #178

michaelgallagher opened this issue Oct 29, 2024 · 1 comment
Labels
pattern Add or improve a design pattern

Comments

@michaelgallagher
Copy link

michaelgallagher commented Oct 29, 2024

What?

There are a number of places in the app where a user can look for data but none is available, temporarily. For instance, the "your approved prescriptions" page.

Should we have a standard pattern for empty state pages?

We might handle these by showing the normal page title (e.g. "Your approved prescriptions") and then show text content that says something lie "you have no approved prescriptions". Or, we might handle these by altering the page title itself, e.g. "You have no approved prescriptions".

Further, should we handle these kinds of pages differently to a step in a transactional journey that a user would not encounter as regularly? (There is a structural difference – one is a cul de sac, where you go in and then back, while the other is a place you pass through.)

@michaelgallagher michaelgallagher converted this from a draft issue Oct 29, 2024
@michaelgallagher michaelgallagher added the pattern Add or improve a design pattern label Oct 29, 2024
@michaelgallagher
Copy link
Author

michaelgallagher commented Nov 16, 2024

Static page title

An example of how an empty state works now, in which the page title is static and we change the page content as needed.

An NHS App screen with a static page title

Dynamic page title

An example of how an empty state might work with a dynamic page title. An issue we've identified here is that this idea would break the standard convention of a page title matching the link text from the previous page. When a page is accessed via a card link in a menu, the two should match.

An NHS App screen with a dynamic page title

Current thinking

Right now, we think that pages that are persistent "places" a user can visit to see lists of content (e.g. your approved prescriptions, your GP appointments, your hospital appointments) should have static page titles that do not change based on the content of the page. The reasoning is that these pages are things a user would access repeatedly over time, so they should have a predictable structure. Additionally, these kinds of pages are accessed via a card link in a menu, and the standard convention is for the link text and page title to match.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pattern Add or improve a design pattern
Development

No branches or pull requests

1 participant