Update browser title to reflect current main panel view
Currently the title is set to "Arvados Workbench (clusterid)".
The page title should be kept up to date with the name of the item or page currently displayed in the main panel.
Updated by Brett Smith 9 months ago
For better accessibility I think we should avoid including the UUID, for the same reason you should avoid having raw URLs in text: hearing it read through a screen reader would be unpleasant and unhelpful. If the object doesn't have a name I think it would be better to prefer a generic description like "<resource type> on <cluster name>," a la:
"Collection on Arvados Playground"
"Workflow on PharmaCo EMEA R&D"
I don't know if we have a concept of a human-friendly "cluster name" yet, if we don't at least a five-letter identifier would be nicer than a 25-character UUID.
Updated by Peter Amstutz 4 months ago
19369-workbench-title @ arvados-workbench2|99cfb0bcf2d99f8d410a7cb90e252bda9664be9e
This is very simplistic, it just incorporates the path into the title. I think this is worth merging as a stopgap until we can dedicate time to a better solution.
The immediate problem this is solving is that when copying-and-pasting URLs from a browser, some applications (for example, Microsoft Teams, I think Google docs does something similar) will create a hyperlink from the page title. When the title doesn't change, all links end up looking like this:
With this change, you would get this:
I 100% agree it would be friendlier to include the actual names of the thing you are looking at, but that's going to be more time consuming to implement, because we don't know the object name (and thus can't set the title) until after we've loaded the object record, which has to be done differently for every route.