You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add labels in New Workspace UI and from workspace view
#5700
Workspaces with labels are clumsy to work with today due to limitations on where you can modify labels for a workspace, especially in conjunction with using labels as fitlers.
Today, workspace labels can only be modified from the sidebar's context menu:
Labels cannot be added when creating a new workspace
Imagine you have your sidebar filtered to labels "A" and "B". Then you create a new workspace. There is no option in the UI to add a label for the new workspace when it gets created. This means that once its created, it doesn't appear in the sidebar. To assign it one of the labels that you want, you have to clear your sidebar label filters, find the workspace, use the context menu to add the label(s) you want, then re-apply your sidebar label filters.
Labels cannot be modified from within the workspace view
Related to the above, modifying labels (nor any of the workspace context menu actions) are available when you have a workspace open:
In conjunction with the above scenario where you have sidebar label filters applied and you are looking at a workspace that is not part of those filters, you have no way to take common actions on the workspace.
Proposed Solution
In the new workspace UI, have a labels dropdown for adding labels on create
In workspace header dropdown menu, have the same options as are available in the sidebar context menu:
Scope of Changes
The changes to support these would only be UI. Excluding tests, its ~380 lines of code. The sidebar workspace context menu would be extracted into a shared component to be used in both the sidebar and in the workspace view header dropdown. The new workspace view gets a picker for the labels.
I have PRs ready for both of these but have refrained opening them until getting feedback.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Problem
Workspaces with labels are clumsy to work with today due to limitations on where you can modify labels for a workspace, especially in conjunction with using labels as fitlers.
Today, workspace labels can only be modified from the sidebar's context menu:

Labels cannot be added when creating a new workspace
Imagine you have your sidebar filtered to labels "A" and "B". Then you create a new workspace. There is no option in the UI to add a label for the new workspace when it gets created. This means that once its created, it doesn't appear in the sidebar. To assign it one of the labels that you want, you have to clear your sidebar label filters, find the workspace, use the context menu to add the label(s) you want, then re-apply your sidebar label filters.
Labels cannot be modified from within the workspace view
Related to the above, modifying labels (nor any of the workspace context menu actions) are available when you have a workspace open:

In conjunction with the above scenario where you have sidebar label filters applied and you are looking at a workspace that is not part of those filters, you have no way to take common actions on the workspace.
Proposed Solution
Scope of Changes
The changes to support these would only be UI. Excluding tests, its ~380 lines of code. The sidebar workspace context menu would be extracted into a shared component to be used in both the sidebar and in the workspace view header dropdown. The new workspace view gets a picker for the labels.
I have PRs ready for both of these but have refrained opening them until getting feedback.
All reactions