framework icon indicating copy to clipboard operation
framework copied to clipboard

Default workspace selection to first value

Open mootari opened this issue 1 year ago • 2 comments

In the workspace selection we sort workspaces by role and name, but default the selection to the first unsorted value. Example: image

Because this selection may appear arbitrary to users, we should instead preselect the first option in the list.

mootari avatar Sep 01 '24 15:09 mootari

Maybe it would be better to make the API smarter about what the default workspace should be? Like, it could be the one you most recently deployed to?

mbostock avatar Sep 01 '24 15:09 mbostock

Sounds good to me! Ideally we also show a hint like "you recently deployed to" to explain the default.

I'll file a PR to have /cli/user return the additional metadata.

mootari avatar Sep 01 '24 15:09 mootari