Skip to content

[Feature Request] Configurable default environment / case-insensitive environment sort order #975

@jusicgn

Description

@jusicgn

Problem statement

When Dockhand has multiple environments configured, the environment shown by default on login/page load is determined by alphabetical sort order — but the sort is case-sensitive (ASCII order), meaning uppercase letters sort before lowercase ones. This causes environments starting with uppercase letters (e.g. Remote-Host) to always appear before environments starting with lowercase letters (e.g. local), regardless of what the user would consider "first" alphabetically.

There is also no way to explicitly configure which environment should be selected by default after login.

Proposed solution

Two complementary improvements:

  1. Case-insensitive sort order for environments throughout the UI (environment selector, containers page, stacks page). Environments named local and Remote-Host should sort as if the names were lowercased, so local comes before Remote-Host.

  2. Configurable default environment: Add a "Default environment" toggle in Settings → Environments → [Edit environment] → General that marks one environment as the one to pre-select on page load. This gives users explicit control independent of sort order.

Alternatives considered

  • Rename environments so the main one sorts first under the current case-sensitive scheme (e.g. prefix with _ or 0). Workaround, not a solution.
  • Accept the current behavior and manually switch environments after every login.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions