Skip to content

Add connection environment categorization and improve settings dialog UX#18

Closed
Copilot wants to merge 1 commit intoconnections-improvementsfrom
copilot/sub-pr-17
Closed

Add connection environment categorization and improve settings dialog UX#18
Copilot wants to merge 1 commit intoconnections-improvementsfrom
copilot/sub-pr-17

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 23, 2025

Adds environment categorization (DEV/TEST/PROD) to saved connections and improves settings dialog layout for better usability on smaller screens.

Changes

  • Connection Environment Support

    • Added ConnectionEnvironment enum (None, Development, Test, Production) to SavedConnection and StoredConnection models
    • Extended ConnectionStorageService to persist environment metadata
    • Added environment filter tabs to Connection Library dialog
    • Display environment badges on connection cards with abbreviated labels (DEV/TEST/PROD)
  • Settings Dialog Layout

    • Moved action buttons outside ScrollViewer and docked to bottom for consistent accessibility
    • Wrapped settings content in ScrollViewer to prevent overflow on smaller screens
    • Cleaned up trailing whitespace

Example Usage

// Connections now include environment metadata
var connection = new SavedConnection(
    Id: guid,
    Name: "Production Bus",
    ConnectionString: connString,
    Type: ConnectionType.Namespace,
    EntityName: null,
    CreatedAt: DateTimeOffset.UtcNow,
    Environment: ConnectionEnvironment.Production  // New
);

// Display helpers available
connection.EnvironmentDisplayName;  // "PROD"
connection.HasEnvironment;          // true

Backward compatible with existing saved connections (default to Environment.None).


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Dec 23, 2025

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • av-build-tel-api-v1.avaloniaui.net
    • Triggering command: /usr/share/dotnet/dotnet dotnet exec --runtimeconfig /home/REDACTED/.nuget/packages/avalonia.buildservices/11.3.2/tools/netstandard2.0/runtimeconfig.json /home/REDACTED/.nuget/packages/avalonia.buildservices/11.3.2/tools/netstandard2.0/Avalonia.BuildServices.Collector.dll (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Improve connections functionality Add connection environment categorization and improve settings dialog UX Dec 23, 2025
Copilot AI requested a review from soliktomasz December 23, 2025 11:37
@soliktomasz soliktomasz deleted the copilot/sub-pr-17 branch December 23, 2025 11:46
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