-
Notifications
You must be signed in to change notification settings - Fork 636
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
Set Packageinfo Restart State #9982
Conversation
@@ -205,7 +204,7 @@ | |||
DockPanel.Dock="Top" | |||
Height="55" | |||
Margin="1" | |||
Visibility="{Binding Path=IsPendingRestart, Mode=OneWay, Converter={StaticResource BoolToVis} }"> |
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.
have you used the wpf live tree to verify that this dockPanel actually has a dataContext that is not null - you may need to set it explicitly, not on the parent, but on this sub tree.
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.
Yes, I did that. The data context is inherited from parent
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.
@QilongTang you are missing RaisePropertyChanged("IsPendingRestart");
or nameOf(IsPendingRestart)
inside your setter for the public property.
/// <summary> | ||
/// Property to check if the Dynamo session has package pending for uninstall | ||
/// </summary> | ||
public Boolean IsPendingRestart { get; set; } |
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.
it is potentially time for us to move all this data to a model - right now it's all in the view...
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.
I agree, that should a better example for 3rd party devs, I checked other view extensions, all of them have similar problems
@@ -197,7 +197,23 @@ | |||
|
|||
<!-- Template for the feedback banner --> | |||
<DockPanel Name="Feedback" VerticalAlignment="Bottom" Grid.Row="2" Width="600"> | |||
<StatusBar Background="{StaticResource FeedbackSectionBackground}" DockPanel.Dock="Bottom" Height="55"> | |||
<!-- Restart Banner --> |
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.
I'm curious why you all decided to copy the feature preview banner UI for this instead of adding another state icon. Seems like we would want to avoid conflating dependency-state and feature-state UI components.
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.
@scottmitchell The team have discussed around this state, we admit this is not a state for package like the other ones, this is more like a state for Dynamo. So we decide to display this differently and still show it as a warning.
src/WorkspaceDependencyViewExtension/Properties/Resources.en-US.resx
Outdated
Show resolved
Hide resolved
test/DynamoCoreWpfTests/ViewExtensions/WorkspaceDependencyViewExtensionTests.cs
Outdated
Show resolved
Hide resolved
src/WorkspaceDependencyViewExtension/WorkspaceDependencyView.xaml.cs
Outdated
Show resolved
Hide resolved
@QilongTang looks good, just a few comments. |
@mjkkirschner Comments all addressed, I also reverted the last changes in order to preserve the behavior that when a package is marked for uninstall in PM UI, it can also be reflected on package dep viewer ( not binding to the download button). The logic is now back to |
After talking with @mjkkirschner , Merging |
Please Note:
DynamoRevit
repo will need to be cherry-picked into all the DynamoRevit Release branches that Dynamo supports. Contributors will be responsible for cherry-picking their reviewed commits to the other branches after aLGTM
label is added to the PR.Purpose
DYN-2103
As a Dynamo user, I want workspace dep viewer to set Restart State
gif of whole workflow:
TODO
Declarations
Check these if you believe they are true
*.resx
filesReviewers
@DynamoDS/dynamo
FYIs