Skip to content

Conversation

Anemy
Copy link
Member

@Anemy Anemy commented Nov 30, 2021

COMPASS-5231

This PR adds the general tab to the form. Since this PR has some of the first state related items for this form, we can look at how the state in the rest of the form will work. Right now a lot of the state updating happens near the components where they'll send up a completed connection string when they can successfully be updated which updates the rest of the form.

We could move around where some of these things happen now so if y'all have any ideas or thoughts please share. I'll leave a comment or two in places where these things happen. We could also break this pr down into a couple smaller ones if it helps for reviewing.

general.tab.new.connect.mp4

Copy link
Collaborator

@mcasimir mcasimir left a comment

Choose a reason for hiding this comment

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

In the screen capture it looks like directConnection unsets when moving back and forth to another connection, couldn't really find the cause, but could be related to the fact that one connection is SRV and the other is not.

Is there a way to make the state completely independent between connections?

@Anemy Anemy added the wip label Dec 14, 2021
Copy link
Collaborator

@gribnoysup gribnoysup left a comment

Choose a reason for hiding this comment

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

Overall it looks good to me, I really like using this new form and the fact that it now more or less just maps fields directly to driver options makes so much sense to me. It's also cool to see the string change when the fields are updated and vice versa. I did stumble on a few issues that I mentioned in the comments. Also left a few suggestions here and there for things that caught my eye, but they are totally not that important if you don't feel like accepting them.

@Anemy Anemy removed the wip label Dec 15, 2021
Copy link
Collaborator

@gribnoysup gribnoysup left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Comment on lines +23 to +25
<Button variant={ButtonVariant.Primary} onClick={onConnectClicked}>
Connect
</Button>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this button be disabled / hidden when the URL is not valid? Currently it is clickable and when pressed you are being connected to the last valid url that was in the input

Copy link
Member Author

@Anemy Anemy Dec 20, 2021

Choose a reason for hiding this comment

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

Yes, but I think it probably makes sense to do that in a separate pr if that's cool with you. We can add some tests too. (This diff here is because we moved the original file into the components folder)

@Anemy Anemy merged commit 0cbc1f8 into main Dec 20, 2021
@Anemy Anemy deleted the COMPASS-5231-add-general-tab-contents-to-connect-form branch December 20, 2021 06:24
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.

3 participants