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

Use icons with deployment selection details #2535

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dotNomad
Copy link
Collaborator

@dotNomad dotNomad commented Jan 14, 2025

This PR adds icons next to the details in the deployment selection QuickPickItem component.

Specifically:

  • the server codicon next to the Credential indicating the Connect Server the deployment will be going to
  • the file codicon next to the entrypoint file name

If you have an alternative suggest the list of codicons can be found here: https://microsoft.github.io/vscode-codicons/dist/codicon.html

Before

CleanShot 2025-01-14 at 14 49 59@2x

After

CleanShot 2025-01-14 at 16 58 09@2x

Intent

Resolves #2483

Type of Change

    • Bug Fix
    • New Feature
    • Breaking Change
    • Documentation
    • Refactor
    • Tooling

Approach

The approach here was to support both strings (as we did before) and the new IconDetail object in the QuickPickItem details prop. Now that it supports both we can easily send the new IconDetail array to the component.

Additional margin (margin-bottom: 2px) was added to the detail rows to provide a bit more spacing between the details with the new icons.

Copy link
Collaborator

@sagerb sagerb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent!

@dotNomad
Copy link
Collaborator Author

I noticed the margin-bottom wasn't being applied as I expected. I got that fixed up.

@dotNomad dotNomad force-pushed the dotnomad/selection-icons branch from c64b82a to 8214c33 Compare January 15, 2025 00:59
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.

Add icons to deployment selection details
2 participants