dashboard
dashboard copied to clipboard
[RFE] More specific page titles
Is your feature request related to a problem? Please describe. Right now the page title for rancher is always Rancher. If you want to go back to a previous page in your browser history, this makes it hard to find the right page to go back to.
Describe the solution you'd like It would be nice if the page title was more specific, like:
Rancher - <cluster name> - DeploymentsRancher - <cluster name> - Deployment: phpmyadminRancher - CD - <git repo>Rancher - VM mgmt - <harvester cluster name> - HostsRancher - VM mgmt - <harvester cluster name> - Image: ubuntu-22.04-minimal-cloudimg-amd64- etc.
Describe alternatives you've considered An alternative is that Rancher keeps track of a page history itself, but that seems clunky and the browser doesn't provide the functionality without a reason.
Additional context

In the case of that last example, the title would be quite long, so if needed the title could be cut off after a certain number of characters.
This repository uses an automated workflow to automatically label issues which have not had any activity (commit/comment/label) for 60 days. This helps us manage the community issues better. If the issue is still relevant, please add a comment to the issue so the workflow can remove the label and we know it is still valid. If it is no longer relevant (or possibly fixed in the latest release), the workflow will automatically close the issue in 14 days. Thank you for your contributions.
The issue is still relevant
This repository uses an automated workflow to automatically label issues which have not had any activity (commit/comment/label) for 60 days. This helps us manage the community issues better. If the issue is still relevant, please add a comment to the issue so the workflow can remove the label and we know it is still valid. If it is no longer relevant (or possibly fixed in the latest release), the workflow will automatically close the issue in 14 days. Thank you for your contributions.
Still relevant
This repository uses an automated workflow to automatically label issues which have not had any activity (commit/comment/label) for 60 days. This helps us manage the community issues better. If the issue is still relevant, please add a comment to the issue so the workflow can remove the label and we know it is still valid. If it is no longer relevant (or possibly fixed in the latest release), the workflow will automatically close the issue in 14 days. Thank you for your contributions.
I understand that this is low prio to fix so I wouldn't expect this to be implemented yet, but not even a reply for HALF A YEAR? Makes me think that the Rancher project is dead.
Still relevant btw
Transferring this to the dashboard repo to figure out a design.
Internal reference: SURE-6121
Thanks for the response, @gaktive . I'm glad to see not just a comment, but actual actions taken to triage the issue.
#9538 will be a prerequisite for this.
@codyrancher I've re-opened this - there is a small bug - go to Workloads, then go to a workload type, like Deployments and then go back to Workloads and the title is now incorrect - is says Rancher - local - ? - first time in, it is correct.
I had a tiny look and I see a watch in TabTitle, but I don't think Vue allows watching of slot content like that.
If you add :key="_typeDisplay" to the TabTitle in MastHead.vue, this resolves the issue, but this forces the TabTitle to be recreated/rendered when _typeDisplay changes - which gets around the watch - but not sure why this is not an issue when you move to a different resource type.
The page titles have been updated to be more specific however when clicking and holding the back button to see browser history, I only see the specific page titles there for a few areas. Going to reopen this for further investigation
repro'd in Chrome, Firefox, and Edge
https://github.com/rancher/dashboard/assets/127343932/c7752f2f-05ac-409e-bdf7-328023a8c2c2
@yonasberhe23 do you notice anything different about the way I'm testing the app? I seem to get titles in firefox when using the back button.
https://github.com/rancher/dashboard/assets/55104481/d87de5f7-d9dd-4204-8392-a6daadb2101c
Edit: Interesting to note it looks like the back button skipped the daemonsets visit in the history.
@codyrancher it seems like it works for certain page visits and not for others. For example, it works for the tabs under Workloads but not for the ones under Cluster.
https://github.com/rancher/dashboard/assets/127343932/b54deb0c-43c7-4197-b8cf-52d315c82827
this looks good to me, thank you @codyrancher !
Tested in v2.9-01491294fbb5870288d476ef82560512ae11937b-head
https://github.com/rancher/dashboard/assets/127343932/60745d4e-0bca-4f71-93d1-9f4d0118b7e5
I want to confirm that this now works for me in v2.9.0.
Thanks for your effort!
I want to confirm that this now works for me in v2.9.0.
Thanks for your effort!
I'm glad it's working for you! Sorry it took as long as it did to get in.
No problem. From what I saw in the timeline, there were a couple of roadblocks that had to get fixed first.