Problem/Motivation
After switching to the Stage workspace,
when I go to the workspaces listing page /admin/config/workflow/workspaces
'Live' is not listed there, which can be confusing.
(the only way to switch to live is clicking in any page on "stage" on top, and then click on "live")

Proposed resolution
Add a new row to the workspace listing which allows users to switch to Live.
Remaining tasks
Review.
User interface changes
After the patch (Live workspace is active)

After the patch (Stage workspace is active)

API changes
Nope.
Data model changes
Nope.
Release notes snippet
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #23 | 3092553-after-stage.png | 45.12 KB | amateescu |
| #23 | 3092553-after-live.png | 41.92 KB | amateescu |
| #23 | 3092553-23.patch | 3.78 KB | amateescu |
| #16 | interdiff-16.txt | 2.4 KB | amateescu |
| #16 | 3092553-16.patch | 3.79 KB | amateescu |
Comments
Comment #2
amateescu commentedWorkspaces provides a "Workspace switcher" block for this purpose, but how about adding an additional
Switch to Liveaction button on that page?Comment #3
amateescu commentedComment #4
dixon_I've come across this myself as well, the inability to switch to Live from the overview is indeed annoying.
I think the ideal solution would be to:
This way, the user interface is fully consistent for the user.
However, the above solution would result in lots of tricky/custom code which isn't ideal. The current patch is really simple, so perhaps we move forward with this as an incremental improvement.
I don't think we should redirect to the front page here. It's inconsistent with how the other "Switch" operations work from the overview page.
I think it's better to set a destination on this particular action button we're adding.
I attached a new patch that fixes this.
Comment #5
amateescu commentedAdding a tag to hopefully get some UX folks to chime in here :)
Comment #6
amateescu commentedThis issue and #2986055: Move Workspace overview list current workspace highlight color to Seven theme were discussed in the UX meeting from Jan 16th 2020, so I'm going to merge them and post the outcome of the discussion here. There are two problems that we need to fix on the workspaces listing page:
1. Live workspace is not listed in workspaces page
Agreement from the UX meeting: Add a table row at the top of the table which allows users to switch to the Live workspace
2. The current highlight color (grey) for the table row which contains the active workspace is very unclear and it doesn't really achieve its purpose
Agreement from the UX meeting: replace the grey highlight row with a bold effect of the active workspace label, as well as a
(Active)suffixThis patch implements both suggestions, and it also adds the "dot + space" pattern for hierarchies that is being proposed to be used throughout core in #2384203: Improve indentation in hierarchical select lists .
Here's a couple of "after" screenshots:
Live is the active workspace:

Local 2 is the active workspace:

Comment #11
amateescu commentedAdding credit to everyone who participated in the UX meeting :)
Comment #12
amateescu commentedChanging to a more generic title since we're now handling more things in this issue.
Comment #13
dixon_This is a really nice set of improvements from the previous patch! And the custom row for the Live workspace didn't even end up being that much custom code :)
Based on the notes from the UX call the patch nicely fixes all points. I think this is good to go!
Comment #14
dixon_Taking the liberty to tag this 'WI Critical' as this is a must-have from a user perspective before marking the module stable.
Comment #15
xjmRetitling to capture the specific changes here.
Surprisingly, this still applies even to 9.1.x. Since Workspaces is in beta, a UI change is backportable to the production branch (which is 8.8.x for the moment and will shortly be 8.9.x). That said, don't we need to invalidate the form cache for this page? Otherwise strange things might happen.
I'm not sure about including the indentation changes here. #2384203: Improve indentation in hierarchical select lists hasn't had signoff or been adopted, so I think it'd be better to wait to adopt a new pattern until there's consensus on what's best core-wide for usability and accessibility?
Comment #16
amateescu commented@xjm, this page is not a form, it's only a table as provided by the entity list builder :) Sadly.. reverted the indentation bits.
Comment #17
xjms/form/render/g in my comment then. ;)
Comment #18
xjmQueued the 9.0 and 9.1 tests in environments that are actually supported by D9.
Comment #19
xjmMuch easier issue scope to understand. I'd suggest filing a followup if you want to improve the indentation in the future, possibly postponed on whatever the outcome is for that other issue. That followup will also need accessibility review.
Edit: Actually, I would just title the followup "Make Workspace list indentation accessible". I'd imagine this might involve some aria or such, since what the indentation is trying to communicate is actually hierarchy.
Comment #20
xjmThe updated patch looks good. It occurred to me though that we should probably have a browser test for the new "Switch to live" row.
Also, is bold text sufficient to communicate which workspace is active? That also seems like an accessibility issue. (It might be better from a design standpoint than the background color, but it's still not sufficiently accessible to be the sole thing conveying the information about which workspaces is active.) So we need an accessibility bug for that as well. I'm OK with that being a followup, and making the "switch to live" row the scope of the focus here (since the background color could cause confusion with that also). So, two followups, both major bugs (and WI critical, because of the accessibility gate):
Comment #21
xjmComment #23
amateescu commentedOk, let's keep this issue focused only on adding the row for switching to Live. Here's a new patch with test coverage, and an updated issue summary.
Comment #24
amateescu commentedHere's the followup for "Make indication of the active workspace on the Workspace list accessible": #3207233: Improve the visual indication of the active workspace in the Workspaces listing UI
Note that Workspaces is currently using core's standard indentation mechanism, so a 'WI critical' followup for "Make Workspace list indentation (hierarchy) accessible" is not needed.
Comment #25
fabianx commentedRTBC - looks great to me
Comment #27
amateescu commentedLooks like a random fail.
Comment #28
larowlan9.1 has had it's last bugfix release, so moving this to 9.2
Comment #29
larowlanQueued testing on 9.3 and 9.2
the patch looks good to me, if the tests come back green I'll commit this sometime this week
Comment #31
larowlanCommitted ea475b4 and pushed to 9.3.x. Thanks! Cherry-picked to 9.2.x as the risk of disruption here is low and Workspaces is still experimental.