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

Add diff view #1286

Merged
merged 6 commits into from
Nov 14, 2019
Merged

Add diff view #1286

merged 6 commits into from
Nov 14, 2019

Conversation

andresmgot
Copy link
Contributor

Ref #1235

Add a new tab in which we show the difference between the default values (or the values of the previous version) and the current values.

Example when deploying:
Screenshot from 2019-11-13 16-13-57

Example when upgrading:
Screenshot from 2019-11-13 16-12-05

If there are no changes:
Screenshot from 2019-11-13 16-18-31

I have changed the titles of the tabs to be more descriptive:

  • Basic --> Form
  • Advanced --> Values (YAML) (I have removed the label in that tab to avoid duplicated text)
  • Changes

At the end, I am using the package diff2html for the diff view because I hit an issue with the stable version of react-diff-viewer: praneshr/react-diff-viewer#47

Copy link
Contributor

@absoludity absoludity left a comment

Choose a reason for hiding this comment

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

Woohoo - this is excellent Andres. I remember when we first discussed the work we were thinking whether this would be possible - and you've made it so. Great stuff!

// We compare the values from the old release and the new one
oldValues = this.props.deployedValues;
title = "New values to submit";
emptyDiffText = "Values for the new release are identical";
Copy link
Contributor

Choose a reason for hiding this comment

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

"The values for the new release are identical to the deployed version." ?

// If there are already some deployed values (upgrade scenario)
// We compare the values from the old release and the new one
oldValues = this.props.deployedValues;
title = "New values to submit";
Copy link
Contributor

Choose a reason for hiding this comment

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

"Difference from deployed version"? (matching how you've labelled the new deployment text below)

@andresmgot andresmgot merged commit a3809e6 into vmware-tanzu:master Nov 14, 2019
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