Open Nikhil-Nandagopal opened 3 years ago
@somangshu more like the former but we can add linting also to it. Like this is a great example https://jsoneditoronline.org/
Estimation details:
Just submitted a PR for a read-only JSON widget - which could be expanded to read/write without too much difficulty
@somangshu I just added the link to Figma
@momcilo-appsmith @somangshu This editor needs more states to be designed. See screenshots below from the JSON editor that haven't been designed.
Is it possible to list every single interaction that is necessary for this JSON editor? There's a lot of scenarios to cover here.
@momcilo-appsmith the given design is not covering the PRD, simply restyling the current widget is not out goal, We also have additional options like save and copy that need to be an option for the end user (if allowed by the developer)
Apart from the the mode according to me should be an option in the property pane, I dont see why the end user needs this option.
@areyabhishek regarding the above feedback, the functionality you see is all default of the package, Do we really need to alter all that, We could control / hide some options based on the PRD
@somangshu The UI looks inconsistent with what we have today. Can we simplify the current editor to only include the essential features? We can then only style the essential features the right way.
I'm worried about this widget's styling because it looks so bad and totally out of place in Appsmith.
@areyabhishek we can work on changing the basic UI of the widget to make it consistent, The functionality offered by the package is useful and lets us offer more to the user when it comes to JSON Widget, In case we do not want the functionality we will use a very basic package which can just display JSON is an indented manner.
My conclusion here would be that:
Please ensure UI consistency. That's my main point. It shouldn't look out of place in an Appsmith app. Once you decide the core features, we can style the app to work like that
@wmdev0808 we need to check what kind of options are provided by the package to customise the UI, Check out the design for a basic idea
OK, let me check
disable
, visible
, copy
, defaultJSON
and onSave
. In component features are: edit mode
, view mode
, JSON error reporting
. We might need disableEditing
and defaultEditMode
here. As @areyabhishek and @somangshu mentioned, let's not increase the scope for v1. The core problem to solve is to have a nice way to edit and view JSON.@somangshu A user was requesting an enhancement on this widget. Not sure if it had been implemented, is in scope for v1, or even whether we want to be supporting the feature at all. :)
is it possible to have a preview of images when there is links in the JSON?
@nidhi-nair could you ask the user to share context of a place where they have seen something like this anywhere on the web? It doesn't seem like it should be a part of this widget
Here's what the user has shared on Discord:
thay's how I am doing it on vscode but I wanted to do it in appsmith interface instead ^^', so a preview of the picture when it's a link
Adding notes from re-opening the PR and testing it out
Checked this, i think the widget wasn't fully built out UX and DX wise, but keeping that aside there are some challenges from theming perspective -
@dilippitchika do we plan to pick this up?
We recently added a custom widget where you can create a custom JSON widget. Check out the post below where you can fork and try out the widget https://community.appsmith.com/template/json-editorviewer
Summary
Users need a way to edit & explore JSON objects
Requirement
Figma Link
https://www.figma.com/file/w9CaXHF5iYcrLtiEbAHcFu/Widgets-Library?node-id=421%3A11596
Front conversations