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

SLVS-1376 Binding Dialog: list connections #5649

Conversation

gabriela-trutan-sonarsource
Copy link
Contributor

@gabriela-trutan-sonarsource gabriela-trutan-sonarsource commented Aug 29, 2024

SLVS-1376

To test this feature in the UI, you have to adapt the DummyServerConnectionsRepository.GetAll to return some connections instead of throwing

@terraform-techuser terraform-techuser changed the title SLVS-1376 Binding Dialog: list connections SLVS-1376 Binding Dialog: list connections Aug 29, 2024
Copy link
Contributor

@vnaskos-sonar vnaskos-sonar left a comment

Choose a reason for hiding this comment

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

👍

@@ -351,4 +351,10 @@
<data name="ValidatingOrganziationSelectionFailedText" xml:space="preserve">
<value>The connection is not valid for the chosen organization "{0}". Make sure the entered key matches exactly your organization's key.</value>
</data>
<data name="LoadingConnectionsFailedText" xml:space="preserve">
<value>Could not load existing connections</value>
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to show a message on the dropdown, when there are no connections?
Something like "No connections found. Please consider creating a new one!"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The combobox control does not support this, unfortunately. But we do have a TextBlock that has a placeholder text when no selection exists. I could adapt this TextBlock and disable the combobox. What do you say?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I also noticed that, but I didn't do it, because I was not sure if we should invest the effort.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, at the moment, it looks confusing when there is no connection because the dropdown is opening and has a large area (the height of the pop-up is too long). In the beginning, I thought that something was not working properly and the entries were not visible. If adding the text is too difficult, can we decrease the height of the pop up..

Copy link

@gabriela-trutan-sonarsource gabriela-trutan-sonarsource merged commit 30af3c4 into feature/new-connected-mode Aug 30, 2024
3 checks passed
@gabriela-trutan-sonarsource gabriela-trutan-sonarsource deleted the gt/list-connections-binding-dialog branch August 30, 2024 09:19
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