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

Dyn 5317 check webview2 installed #13464

Merged
merged 3 commits into from
Nov 3, 2022
Merged

Dyn 5317 check webview2 installed #13464

merged 3 commits into from
Nov 3, 2022

Conversation

RobertGlobant20
Copy link
Contributor

Purpose

Check that WebView2 is installed before starting Dynamo
I added a validation that before starting the DynamoSandbox app we will check if the WebView2 Runtime is installed or not, if is not installed we will show a MessageBox with the link of the WebView2 installer and then after pressing the OK button close Dynamo.
Also in the DynamoMessageBox I added a RichTextBox that will be visible under very specific circumstances, this RichTextBox allows to have a blue hyperlink as a part of the text so the user can click it and open the webview2 installer webpage.

Declarations

Check these if you believe they are true

  • The codebase is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • All tests pass using the self-service CI.
  • Snapshot of UI changes, if any.
  • Changes to the API follow Semantic Versioning and are documented in the API Changes document.
  • This PR modifies some build requirements and the readme is updated

Release Notes

Check that WebView2 is installed before starting Dynamo

Reviewers

@QilongTang

FYIs

@filipeotero

I added a validation that before starting the DynamoSandbox app we will check if the WebView2 Runtime is installed or not, if is not installed we will show a MessageBox with the  link of the WebView2 installer and then after pressing the OK button close Dynamo.
Also in the DynamoMessageBox I added a RichTextBox that will be visible under very specific circumstances, this RichTextBox allows to have a blue hyperlink as a part of the text so the user can click it and open the webview2 installer webpage.
removing extra comment
@RobertGlobant20
Copy link
Contributor Author

GIF showing behavior when WebView2 Runtime is not installed.
DynamoMissingWebView2

@RobertGlobant20
Copy link
Contributor Author

GIF showing behavior when WebView2 is installed
DynamoWebView2Installed

Margin="20"
CustomText="{Binding BodyText}"
Style="{StaticResource CustomRichTextBoxStyle}">
</localui:CustomRichTextBox>
Copy link
Contributor

Choose a reason for hiding this comment

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

Would you also test if normal messages display correctly?

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh you are adding a RIchTextBox instead of forcing it, I guess it is less impactful then

@@ -57,6 +58,10 @@ public void RunApplication(Application app)
{
try
{
//This line validates if the WebView2 Runtime is installed in the computer, if is not we return and then exit Dynamo
if (!WebView2Utilities.ValidateWebView2RuntimeInstalled())
return;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is fine for now. For integrations, usually host will include WebView2 Runtime, for any integration launching Dynamo as another process, this should hit

Copy link
Member

Choose a reason for hiding this comment

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

do we really need to exit Dynamo?

Copy link
Contributor

Choose a reason for hiding this comment

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

@mjkkirschner It would be safe to do so since Splash Screen depending on WebView2, unless we want to totally skip that experience when runtime not installed

@QilongTang QilongTang added this to the 2.17.0 milestone Nov 3, 2022
@QilongTang
Copy link
Contributor

QilongTang commented Nov 3, 2022

@RobertGlobant20 Can you check the regression? Looks like the next one passed

@QilongTang QilongTang merged commit dc4ee31 into DynamoDS:master Nov 3, 2022
@QilongTang QilongTang deleted the DYN-5317-Check-WebView2-Installed branch November 3, 2022 18:29
QilongTang pushed a commit that referenced this pull request Jul 12, 2023
* DYN-5317-Check-WebView2-Installed

I added a validation that before starting the DynamoSandbox app we will check if the WebView2 Runtime is installed or not, if is not installed we will show a MessageBox with the  link of the WebView2 installer and then after pressing the OK button close Dynamo.
Also in the DynamoMessageBox I added a RichTextBox that will be visible under very specific circumstances, this RichTextBox allows to have a blue hyperlink as a part of the text so the user can click it and open the webview2 installer webpage.

* DYN-5317-Check-WebView2-Installed

removing extra comment
@QilongTang QilongTang mentioned this pull request Jul 12, 2023
9 tasks
QilongTang added a commit that referenced this pull request Jul 13, 2023
* Fixing horizontal center (#13312)

* Fix Trusted Message behavior (#13355)

* Fix Trusted Message behavior

* Extract Business Logic as a function

* Moving API to Preferences

* Adding unit test

* Leave RenderPackage data intact when passed to AggregateRenderPackages (#13437)

* Leave RP data intact

* Fix tests

* Remove unnessary code

* Spelling typos and clean up

* clean up

* clean up

* Add regression test for render package mutation.

* Unsubscribe from event.

* Add image comparison test for render bug.

* Fix test image size.

Co-authored-by: Craig Long <[email protected]>
Co-authored-by: Trygve Wastvedt <[email protected]>

* DYN-5437 Export image button shortcut (#13550)

* Insert the export command in the shortcut view model

* remove test method

* Dyn 5317 check webview2 installed (#13464)

* DYN-5317-Check-WebView2-Installed

I added a validation that before starting the DynamoSandbox app we will check if the WebView2 Runtime is installed or not, if is not installed we will show a MessageBox with the  link of the WebView2 installer and then after pressing the OK button close Dynamo.
Also in the DynamoMessageBox I added a RichTextBox that will be visible under very specific circumstances, this RichTextBox allows to have a blue hyperlink as a part of the text so the user can click it and open the webview2 installer webpage.

* DYN-5317-Check-WebView2-Installed

removing extra comment

* DYN-5674-CustomNode-Renamed (#13854)

After the auto-save functionality is triggered when we are located in the Custom Node edit tab when the node in the Home Workspace is being renamed to "backup". Then after my fix first is checking if it has a name and file associated (that usually happen when you create/edit a custom node) if that is the case then we don't execute the rename process.
Also I added a test that will validate that the Save functionality doesn't rename the CustomNode name.

* clean up

---------

Co-authored-by: jesusalvino <[email protected]>
Co-authored-by: Craig Long <[email protected]>
Co-authored-by: Craig Long <[email protected]>
Co-authored-by: Trygve Wastvedt <[email protected]>
Co-authored-by: filipeotero <[email protected]>
Co-authored-by: Roberto T <[email protected]>
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