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

Integrate Monaco Editor in ZEN #42

Closed
wants to merge 23 commits into from
Closed

Conversation

sakshibobade21
Copy link
Contributor

@sakshibobade21 sakshibobade21 commented Sep 12, 2023

  1. Incorporate Monaco Editor to ZEN with the Schema and Yaml Validations for the entire zowe.yaml, not just the subschema
  2. Integrating the editor’s with the configuration service
  3. Automatically update the JSON forms with the corresponding editor’s content if it adheres to schema and yaml validation
  4. Enable bidirectional synchronization: changes made in the form must reflect in the editor
  5. Centralized the shared code for the editor

@sakshibobade21 sakshibobade21 changed the title Add editor [WIP] Add editor Sep 12, 2023
@sakshibobade21 sakshibobade21 changed the title [WIP] Add editor Integrate Monaco Editor in ZEN Sep 27, 2023
@sakshibobade21 sakshibobade21 changed the base branch from v2.x/main to v2.x/staging September 29, 2023 16:20
@@ -1,13 +1,32 @@
import { flatten, unflatten } from 'flat';
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is there two configservice.ts? One is ConfigService.ts the other is configService.ts

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like this file should just be deleted

Copy link
Contributor

Choose a reason for hiding this comment

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

This double file messed up my git shell so bad lol i cant switch branches now

@timgerstel
Copy link
Contributor

Tested the schema validation and it works as expected, rejects things that do not adhere:

image

On this UI my one note is that the editor should be autofocused when this popup appears, so if you press Ctrl+A on your keyboard all the text highlights without having to click the editor first.

@timgerstel
Copy link
Contributor

Overall i think this is a great addition, just a few minor things before I approve

@timgerstel
Copy link
Contributor

The installation stage doesnt autofill details from the example-zowe.yaml on the first run anymore btw, this may be a regression

Deleting the duplicate file

Signed-off-by: Sakshi Bobade <[email protected]>
@timgerstel
Copy link
Contributor

There is another bug with this PR. I wanted to retest the autofill for the first run, so I deleted all of my cached data in the userData folder for Zen (%appdata/zowe-enterprise-necessity on Windows I think) and now I get this error:
image

This does not happen on v2.x/staging. It looks like your code might not be handling the case where a yaml doesnt exist at all

@sakshibobade21
Copy link
Contributor Author

Created a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants