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-3657] Save changes label #11671

Merged
merged 65 commits into from
May 11, 2021

Conversation

Astul-Betizagasti
Copy link
Contributor

Purpose

Change the current Save Changes button on the Preferences modal into a label that will display information so the user can know when changes where saved

Includes a change to make the first expander on the Features tab be expanded by default when opening the Preferences modal
savechanges

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

Reviewers

Aaron Tang (@QilongTang )

FYIs

Roberto Tellez (@RobertGlobant20 )

Astul-Betizagasti and others added 30 commits July 6, 2020 17:48
Master update from public repo
@Astul-Betizagasti Astul-Betizagasti changed the base branch from master to 0.3.4 May 7, 2021 08:30
@Astul-Betizagasti Astul-Betizagasti changed the base branch from 0.3.4 to master May 7, 2021 08:30
SavedChangesTooltip = string.Empty;
}

internal void UpdateSavedChangesLabel()
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's add some comments to this function

@@ -87,6 +122,7 @@ public string SelectedLanguage
{
selectedLanguage = value;
RaisePropertyChanged(nameof(SelectedLanguage));
UpdateSavedChangesLabel();
Copy link
Contributor

Choose a reason for hiding this comment

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

This call is repeated too many times. We can add a property change listener so we can listen to changes and call this automatically. That way we can get rid of all these single calls.

Copy link
Contributor

Choose a reason for hiding this comment

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

Something like here: https://github.com/DynamoDS/Dynamo/blob/master/src/DynamoCoreWpf/ViewModels/Core/NodeViewModel.cs#L636. Single handler can handle all property change I think, then we can filter out properties we need and call UpdateSavedChangesLabel() there

Copy link
Contributor

@QilongTang QilongTang left a comment

Choose a reason for hiding this comment

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

LGTM in general, it would be good that we can address the so many calls of UpdateSavedChangesLabel()

@QilongTang
Copy link
Contributor

QilongTang commented May 11, 2021

To avoid confusion on customer demo today, I am merging this in order to get rid of the save button. But @Astul-Betizagasti please address the PR comments using a new one. Also I checked the failure on self CI current failing on master branch already

@QilongTang QilongTang merged commit 677d647 into DynamoDS:master May 11, 2021
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.

2 participants