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 selected cluster is inconsistent #1426

Closed
Dugong42 opened this issue Mar 16, 2023 · 0 comments · Fixed by #1523
Closed

Default selected cluster is inconsistent #1426

Dugong42 opened this issue Mar 16, 2023 · 0 comments · Fixed by #1523
Labels
enhancement New feature or request good first issue Good for newcomers ui Need an ui update

Comments

@Dugong42
Copy link

Dugong42 commented Mar 16, 2023

Hi, I've noticed that the cluster selected by default is inconsistent when there a multiple configured connections.

In my testing, the default cluster looks like the last one of the list (alphabetically by connections.key) which is not intuitive.
Except that when the key starts with a number, AKHQ selects the one with the greater number.

image

One would expect the ordering of clusters to be consistent with the cluster selected by default. I believe it would be better to select the first one of the list.

Feature request

Could it be made so that the first one (alphabetically) is selected, matching the order displayed?

To go even further, an attribute could be used to determine which is the default cluster to select on startup.

Example: akhq.ui-options.connections.default-selected: <connection_key>

If not set, it would fall back to the first connection alphabetically.

Steps to reproduce

  • create multiple connections
  • logout/login
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers ui Need an ui update
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants