-
Notifications
You must be signed in to change notification settings - Fork 12
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
[#198] the yaml editor allows to enter new Lines #273
Conversation
fe4e948
to
9a2ded9
Compare
This PR is currently blocked on https://issues.redhat.com/browse/OCPBUGS-38484 |
69ff645
to
b372fd4
Compare
Upgrading to patternfly5 fixed the issue for us. |
Hello @lavocatt , could you please rebase the branch with the main branch. |
e01fcd3
to
de73446
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #273 +/- ##
==========================================
- Coverage 46.68% 46.68% -0.01%
==========================================
Files 52 52
Lines 2296 2311 +15
Branches 645 652 +7
==========================================
+ Hits 1072 1079 +7
- Misses 1224 1232 +8 ☔ View full report in Codecov by Sentry. |
Previously the yaml editor wasn't allowing a user to add new lines. This was because at each keystroke the yaml file got formatted automatically, removing what formatting felt as unnecessary lines.. This meant that the user had to use tricks like copy&pasting to get to a state the wanted to have. To fix that, this commits reverts back to using the resource editor provided by the console. It has several advantages: * The use can edit the file as they want without bugs * There's documentation included from the CRDs when hovering properties The main drawback is that the user needs to click on save to save their changes to the model, then needs to click on apply to apply their config (either creating or updating) Other additions: ---------------- In order to make the logic of the buttons the same between the two views, they have been extracted up a notch in the component hierarchy. Warning modals have been added to help the user know if they are about to lose some changes. A reload button was added to the update broker page, so that the user can reload the content of the existing broker.
de73446
to
146eb2b
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.
All LGTM. Good work Thomas.
Previously the yaml editor wasn't allowing us to add new lines. This was because at each keystroke the yaml file was formated automatically, removing unecessary lines..
This meant that the user had to use tricks like copy&pasting to get to a state the wanted to have.
To fix that, this commits reverts back to using the resource editor provided by the console. It has several advantages:
The main drawback is that the user needs to click on save to save their changes to the model, then needs to click on apply to apply their config (either creating or updating)
fixes #198