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

[admin] Update page titles #12833

Merged
merged 2 commits into from
Sep 27, 2024
Merged

Conversation

dacook
Copy link
Member

@dacook dacook commented Sep 2, 2024

What? Why?

It struck me today that the browser tab title/history doesn't include the full name of the page you're on. For example, if I had edited multiple products and wanted to go back to a particular one, I can't choose it. They are all simply labelled "Products".
Screenshot 2024-09-02 at 10 54 17 am

So I wondered if we can easily use the titles that appear on the page. At first glance it looks much more helpful to me:

Screenshot 2024-09-02 at 10 57 40 am

Although note that there are some differences. Sometimes the page title doesn't match the navigation menu. For example:
Screenshot 2024-09-02 at 10 58 55 am

Some deeper pages have arrows, so these are stripped:
Screenshot 2024-09-02 at 11 07 32 am

What should we test?

Click around and check the page titles in the browser tab, and in browser history.
Try another language too.
One page was changed that I didn't know how to test:

  • Paypal refund

@dacook dacook added the user facing changes Thes pull requests affect the user experience label Sep 2, 2024
@dacook dacook self-assigned this Sep 2, 2024
Copy link
Collaborator

@rioug rioug left a comment

Choose a reason for hiding this comment

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

Nice !

Copy link
Member

@mkllnk mkllnk left a comment

Choose a reason for hiding this comment

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

Nice! Thank you.

This is much  more meaningful than the controller name, and is helpful for browser tab history.
Because the page title has extra content.
@filipefurtad0 filipefurtad0 self-assigned this Sep 27, 2024
@filipefurtad0 filipefurtad0 added pr-staged-fr staging.coopcircuits.fr pr-staged-au staging.openfoodnetwork.org.au and removed pr-staged-fr staging.coopcircuits.fr labels Sep 27, 2024
@filipefurtad0
Copy link
Contributor

Hey @dacook,

I've smoke tested the page titles by checking that these reflect the current page. Also test page titles reflect the current locale. Some examples below:

image

image

image

Merging!

@filipefurtad0 filipefurtad0 merged commit 4899323 into openfoodfoundation:master Sep 27, 2024
55 checks passed
@filipefurtad0 filipefurtad0 removed the pr-staged-au staging.openfoodnetwork.org.au label Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user facing changes Thes pull requests affect the user experience
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants