typedb / typedb-studio

TypeDB Studio (IDE)
https://typedb.com
Mozilla Public License 2.0
191 stars 44 forks source link

Improve certificate selection for cluster connections #641

Closed jamesreprise closed 2 years ago

jamesreprise commented 2 years ago

What is the goal of this PR?

We provide users connecting to cluster servers the ablility to browse their file system and select cluster certificates, rather than having to type the filepath out (or copy paste it from their file system browser).

As a result of this PR, end users will an easier time selecting certificates for cluster server connections in the future. Contributors and developers have an abstracted file selector dialog interface that they may re-use throughout Studio.

What are the changes implemented in this PR?

The FileSelectorDialog object has been introduced, providing functions to Studio to present users with a dialog to select files or folders.

The CACertificateFormField in ServerDialog has been updated to provide a button for selecting the CA certificate.

grabl commented 2 years ago

PR Review Checklist

Do not edit the content of this comment. The PR reviewer should simply update this comment by ticking each review item below, as they get completed.


Code

Architecture

jamesreprise commented 2 years ago

Staying as a draft until I can test this on a Windows machine as this is cross-platform code. This has been tested in a Linux VM successfully.

jamesreprise commented 2 years ago

Tested on macOS, Windows and Linux. Working as expected. Ready for review!