Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default workspace selection to first value #1625

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mootari
Copy link
Member

@mootari mootari commented Sep 1, 2024

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.

@mbostock
Copy link
Member

mbostock commented Sep 1, 2024

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?

@mootari
Copy link
Member Author

mootari commented Sep 1, 2024

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 mootari marked this pull request as draft September 1, 2024 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants