-
Notifications
You must be signed in to change notification settings - Fork 534
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
Integrate with code-mirror to have a fallback to plugins' render issue #815
Comments
We will use CodeMirror to highlight the json data. |
Agree, need to provide users with JSONschema examples of each plugin, you can add a link next to the plugin to make it easier for users to find these examples. |
Ya, a quick way is adding a link to that plugin's doc 😂 |
I think this proposal is a good compromise. |
That's it!! |
and this may be easier to use than visual forms :) |
I have just one question, is the plugin data editor friendly enough? say user puts some unexpected characters accidently (like adding extra commas) |
Not sure, if CodeMirror supports it, we will add this feature. |
I think the feeling of interaction is important, some low level syntax errors are not so easy to found especially when the plugin data is fairly long. |
Got it, we support validating with jsonschema, errors will show up if there has something incompatible with schema. |
ok, then I'm going to do this week. |
When users input or paste some JSON codes here, they could click the format button to achieve code format, easy to implement. |
agree ^_^ |
ping @membphis |
got it |
Background
As shown in the figure, on the left side is the current plugin page and an example diagram of the interaction of editing a plugin.
After the user finds the target plugin,
react-jsonschema-form
, built from the plugin's jsonschema, via the Setting button.Enable/Disable
button.Problem
The problem we are currently experiencing is that many plugins cannot properly render forms via react-jsonschema-form because the library supports most of the features of the jsonschema, but some of them are not supported. In addition, plugin developers only need to focus on the jsonschema, and building interfaces that are supported by the library requires higher development costs.
Over the past few months, we tried to update the plugin schema to match the library, but it was inefficient and users could not edit the plugin data properly.
Solution
Temporarily disables react-jsonschema-form building forms, and only supports manual data entry by the user via the Plugin Data Editor (View Raw) interface.
Disadvantages
Advantages
As for the feature that allows users to enter plugin data via a form (instead of manually entering JSON), this will remain a concern, and we will resubmit the proposal to resolve the issue when a suitable solution is available to cover all plugins.
Reference
The text was updated successfully, but these errors were encountered: