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

Improved the JSON authoring view #1207

Merged
merged 8 commits into from
May 24, 2018

Conversation

geoffreykwan
Copy link
Member

For all the different JSON authoring views, make sure the "JSON Valid" and "JSON Invalid" message displays properly when the JSON is changed. Also make sure the message goes away when the author leaves the view. If the JSON is invalid and the author tries to close the JSON authoring view, it should display a confirm popup asking if they want to revert to the last valid JSON or keep the invalid JSON open to try to fix it.

Check these views

  • Project JSON authoring view
  • Step/Activity JSON authoring view
  • Discussion component JSON authoring view. I only changed the Discussion component because later we will refactor the components to inherit from a parent so that we don't need to add the code to all the individual components.

…ONValidMessage() to be more consistent with the other code.
…ot return anything because we never use the return value.
…by displaying the "JSON Valid" or "JSON Invalid" message. We also display a confirm popup when the JSON is invalid and the author tries to close the JSON authoring view.
@geoffreykwan geoffreykwan added this to the v5.8 Major Release milestone May 22, 2018
Copy link
Member

@hirokiterashima hirokiterashima left a comment

Choose a reason for hiding this comment

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

Looks good. Can you make the status message more prominent? Add check mark for valid and X for invalid, make the font bold, etc.

@hirokiterashima hirokiterashima merged commit f72a511 into develop May 24, 2018
@hirokiterashima hirokiterashima deleted the issue-920-malformed-json-warning branch May 24, 2018 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants