-
Notifications
You must be signed in to change notification settings - Fork 16
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
feature: [dev-8574] Advanced Editor updates #1372
Conversation
d5be46f
to
d4466c9
Compare
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.
I think the only issue that needs to be resolved here is the apply button. I'm not able to change the config using the new advanced editor at the moment. I think we'll also want to weight the pros/cons of the speed of the advanced editor vs the text based one.
@@ -309,6 +326,21 @@ export default function ChooseTab() { | |||
</Tooltip> | |||
</li> | |||
</ul> | |||
<hr /> |
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.
This looks good and is working for me. When I used this option I did notice that the Advanced Settings seemed to run really slow. I'm not sure if it was the config I tried uploading. However, compared to the text based format this does seem slower. I think we'll want to weigh pros/cons with speed with text based editor and using this library.
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.
I think maybe because it has to also do a full data pull with this option? with the text editor you're changing things after the data has been updated, which i also thought was no ideal UX because you can also change the data there.
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.
When I paste in an example dashboard config the visualizations property is being stripped and returns an empty dashboard.
@adamdoe what do you mean paste? the only options should not be to either upload (screenshot 1) or edit (screenshot 2) |
a75a080
to
222e337
Compare
@joshlacey There is an option to edit the config. When I click on the pencil icon for the full config and replace it the previous config is still used. |
did you also hit apply? |
Correct here are the issues I'm seeing with steps: Issue 1. Loading a config from the starting tile screen
Issue 2. Loading a config from the json editor
|
1c74576
to
081c5ed
Compare
We needed a way to more easily configure and edit configs directly in COVE. I've added a upload config button to the first tab of the editor
![custom upload](https://private-user-images.githubusercontent.com/26423636/341816917-0a9d5592-5c5f-40a4-88e2-ec55f97b5859.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE5NTEyMjcsIm5iZiI6MTcyMTk1MDkyNywicGF0aCI6Ii8yNjQyMzYzNi8zNDE4MTY5MTctMGE5ZDU1OTItNWM1Zi00MGE0LTg4ZTItZWM1NWY5N2I1ODU5LlBORz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI1VDIzNDIwN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUzNTFjYjhmODBjZWMyYjExMDRiODFmMjhiOTk1NzdiNmI1MTY5NDkxZjJhZjgzNzdhYmI3ZDBmMTU0Y2M4ZmYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.tj6D0_LqIpAHxfySKLWysPKa3d2zk2s9urXuVK5WJaY)
I've also added a new component to the Advanced Editor https://carlosnz.github.io/json-edit-react/ which allows collapse and expand to more granularly edit configs.
![advanced-editor](https://private-user-images.githubusercontent.com/26423636/341816971-5cb6186f-ce7a-4d09-91a1-08764334a840.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE5NTEyMjcsIm5iZiI6MTcyMTk1MDkyNywicGF0aCI6Ii8yNjQyMzYzNi8zNDE4MTY5NzEtNWNiNjE4NmYtY2U3YS00ZDA5LTkxYTEtMDg3NjQzMzRhODQwLlBORz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI1VDIzNDIwN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM1ODgwNTEzNTlmYjBmNWEyZTBhNTE2YzBiMjJjZjQ3NDcyN2EyY2M0NDg5NjQ3ZmFiYTZkMDZhZjg4MDUxMTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.YJ7oGKmJDlFzu-O5_ChN62nkzrhE_1qS7POQAjmj5Lk)
I've also enhanced the editor to prefilter the config so you're only seeing what will eventually be saved. Before there were temporary data states present which made the config difficult to scroll through.