-
Notifications
You must be signed in to change notification settings - Fork 143
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
feat(ui): promotion directives wizard on stage creation step #2623
Conversation
Signed-off-by: Remington Breeze <[email protected]>
> readonly view in promotions modal > create stage with promotion directive steps Signed-off-by: Mayursinh Sarvaiya <[email protected]>
Signed-off-by: Mayursinh Sarvaiya <[email protected]>
Signed-off-by: Kent Rancourt <[email protected]>
Signed-off-by: Kent Rancourt <[email protected]>
Signed-off-by: Mayursinh Sarvaiya <[email protected]>
Signed-off-by: Mayursinh Sarvaiya <[email protected]>
Signed-off-by: Mayursinh Sarvaiya <[email protected]>
…romotion-step-wizard
Signed-off-by: Mayursinh Sarvaiya <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2623 +/- ##
=======================================
Coverage 49.09% 49.09%
=======================================
Files 270 270
Lines 19342 19342
=======================================
Hits 9495 9495
Misses 9226 9226
Partials 621 621 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Mayursinh Sarvaiya <[email protected]>
There may still be time to get this into v0.9.0 if the merge conflicts are resolved. |
Signed-off-by: Mayursinh Sarvaiya <[email protected]>
Signed-off-by: Mayursinh Sarvaiya <[email protected]>
Signed-off-by: Mayursinh Sarvaiya <[email protected]>
Signed-off-by: Mayursinh Sarvaiya <[email protected]>
✅ Deploy Preview for docs-kargo-io ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for docs-kargo-akuity-io ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Signed-off-by: Mayursinh Sarvaiya <[email protected]>
Signed-off-by: Mayursinh Sarvaiya <[email protected]>
Signed-off-by: Mayursinh Sarvaiya <[email protected]>
Signed-off-by: Mayursinh Sarvaiya <[email protected]>
@krancour this one is ready. Should move the milestone to |
@Marvin9 I think we can try and get this in v1.0.0. |
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.
A few minor comments, but apart from that LGTM!
ui/src/features/stage/promotion-steps-wizard/runner-form.module.less
Outdated
Show resolved
Hide resolved
ui/src/features/stage/promotion-steps-wizard/promotion-steps-wizard.tsx
Outdated
Show resolved
Hide resolved
stringify(stageSpec?.spec?.promotionTemplate?.spec?.steps) | ||
); | ||
} catch (e) { | ||
// explicitly ignore |
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.
Don't we want to inform the user that yaml is broken?
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 is tricky. If we block user navigating if YAML is invalid, this becomes too aggressive. If we unblock user navigating and show error if YAML is invalid, we already lost broken YAML when we navigate. If we want to keep the broken YAML, this becomes complicated of syncing 2 source of truths (local state and YAML state).
So to simplify at this point, I think the use-case will either be complete raw YAML or complete wizard or correct YAML to wizard transformation. Broken YAML is rare case I think
Signed-off-by: Mayursinh Sarvaiya <[email protected]>
…e.less Co-authored-by: Rafal <[email protected]> Signed-off-by: Mayursinh Sarvaiya <[email protected]>
Signed-off-by: Mayursinh Sarvaiya <[email protected]>
91a005a
to
5a7f0d4
Compare
@krancour not sure what to do with codecov CI failing |
Signed-off-by: Mayursinh Sarvaiya <[email protected]>
Sorry for the late reply. It's informational and not required to pass. |
Signed-off-by: Remington Breeze <[email protected]> Signed-off-by: Mayursinh Sarvaiya <[email protected]> Signed-off-by: Kent Rancourt <[email protected]> Co-authored-by: Remington Breeze <[email protected]> Co-authored-by: Kent Rancourt <[email protected]> Co-authored-by: Rafal <[email protected]>
Screen.Recording.2024-10-04.at.6.44.10.PM.mov
rjsf
is used to generate dynamic forms from JSON schemas - https://github.com/rjsf-team/react-jsonschema-form/tree/main/packages/antd