-
Notifications
You must be signed in to change notification settings - Fork 635
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
Notifications UI web view2 #13096
Notifications UI web view2 #13096
Conversation
<None Remove="View\NotificationUI.xaml" /> | ||
<None Remove="Web\ArtifaktElement-Regular.woff" /> | ||
<None Remove="Web\index.bundle.js" /> | ||
<None Remove="Web\index.html" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is something we need to work on. I would love to avoid hard copy of the existing component.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments
@filipeotero Appreciate the implementation!
|
{ | ||
var dynamoView = (DynamoView)viewLoadedParams.DynamoWindow; | ||
var shortcutBar = dynamoView.ShortcutBar; | ||
var notificationsButton = (Button)shortcutBar.FindName("notificationsButton"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you add a TODO comment to expose button in our extension API?
|
/// TODO it should really be responsive either using grid of auto canvas: | ||
/// https://stackoverflow.com/questions/855334/wpf-how-to-make-canvas-auto-resize | ||
/// </summary> | ||
public double PopupRectangleWidth { get; set; } = 310; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we calculate this using dynamo window width instead of having a fixed value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with couple of comments.
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script>#mainJs</script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may want some comments in this file, maybe can be added into the other repo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with some additional comments plus we need the npm install changes (trial npm package by @jesusalvino )
…tero/Dynamo into NotificationsUI-WebView2
Thank you @filipeotero It looks all comments addressed and we are only missing the npm install step |
Thank you all for the comments! I entered the npm install step, removed the font style file, and added the base64 version directly in the HTML file. Let me know if it's okay. |
} | ||
|
||
[Test] | ||
public void ValidateNotificationsUIEmbeededFiles() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ValidateNotificationsUIEmbeededFiles
spell error, update to - > ValidateNotificationsUIEmbededFiles
On a second thought |
@filipeotero Do you know why |
It looks like it is failing because of the npm package as well. |
@filipeotero @jesusalvino @RobertGlobant20 @reddyashish @zeusongit In order to unblock this work getting into Dynamo, I would love to stage the commits and put the npm package consumption into another Jira and PR. What do you think? |
Sounds good to me Aaron. |
@filipeotero Can you add the hard copy back or simply revert your recent change for now. Otherwise even the mock would not display because the bundled js does not exist in our repo. |
Reverted! |
Purpose
This PR implements the Notifications UI that is rendered in a Webview component and its HTML created in React (Which in this PR are included just for sample purposes).
Declarations
Check these if you believe they are true
*.resx
filesReviewers
@QilongTang @zeusongit @reddyashish
FYIs
@jesusalvino @RobertGlobant20