-
Notifications
You must be signed in to change notification settings - Fork 706
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
Add diff view #1286
Conversation
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.
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"; |
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.
"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"; |
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.
"Difference from deployed version"? (matching how you've labelled the new deployment text below)
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:
Example when upgrading:
If there are no changes:
I have changed the titles of the tabs to be more descriptive:
At the end, I am using the package
diff2html
for the diff view because I hit an issue with the stable version ofreact-diff-viewer
: praneshr/react-diff-viewer#47