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

feat(ui): promotion directives wizard on stage creation step #2623

Merged
merged 28 commits into from
Oct 11, 2024

Conversation

Marvin9
Copy link
Contributor

@Marvin9 Marvin9 commented Oct 1, 2024

Screen.Recording.2024-10-04.at.6.44.10.PM.mov

rbreeze and others added 11 commits September 19, 2024 10:05
> 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: 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]>
Copy link

codecov bot commented Oct 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.09%. Comparing base (8b2b7a4) to head (ca9e289).
Report is 1 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

Signed-off-by: Mayursinh Sarvaiya <[email protected]>
Base automatically changed from rbreeze/promo-directives-details to main October 2, 2024 16:16
@krancour krancour added this to the v0.9.0 milestone Oct 3, 2024
@krancour
Copy link
Member

krancour commented Oct 3, 2024

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]>
Copy link

netlify bot commented Oct 4, 2024

Deploy Preview for docs-kargo-io ready!

Name Link
🔨 Latest commit ca9e289
🔍 Latest deploy log https://app.netlify.com/sites/docs-kargo-io/deploys/670892e3362aa400080ee26a
😎 Deploy Preview https://deploy-preview-2623--docs-kargo-io.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Oct 4, 2024

Deploy Preview for docs-kargo-akuity-io ready!

Name Link
🔨 Latest commit ca9e289
🔍 Latest deploy log https://app.netlify.com/sites/docs-kargo-akuity-io/deploys/670892e32409f80008eb27e1
😎 Deploy Preview https://deploy-preview-2623.kargo.akuity.io
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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]>
@Marvin9
Copy link
Contributor Author

Marvin9 commented Oct 7, 2024

@krancour this one is ready. Should move the milestone to 1.0 Post GA?

@Marvin9 Marvin9 modified the milestones: v0.9.0, Post-GA Oct 7, 2024
@krancour
Copy link
Member

krancour commented Oct 8, 2024

@Marvin9 I think we can try and get this in v1.0.0.

@krancour krancour modified the milestones: Post-GA, v1.0.0 Oct 8, 2024
@Marvin9
Copy link
Contributor Author

Marvin9 commented Oct 9, 2024

@krancour if you could take a UI look and @rpelczar can look at the code, we are good to merge this

Copy link
Contributor

@rpelczar rpelczar left a 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!

stringify(stageSpec?.spec?.promotionTemplate?.spec?.steps)
);
} catch (e) {
// explicitly ignore
Copy link
Contributor

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?

Copy link
Contributor Author

@Marvin9 Marvin9 Oct 10, 2024

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

ui/src/features/stage/create-stage.tsx Outdated Show resolved Hide resolved
ui/src/features/stage/create-stage.tsx Outdated Show resolved Hide resolved
ui/src/features/common/layout/error-boundary.tsx Outdated Show resolved Hide resolved
Marvin9 and others added 3 commits October 10, 2024 12:24
Signed-off-by: Mayursinh Sarvaiya <[email protected]>
Signed-off-by: Mayursinh Sarvaiya <[email protected]>
@Marvin9 Marvin9 force-pushed the Marvin9/extend-promotion-step-wizard branch from 91a005a to 5a7f0d4 Compare October 10, 2024 15:47
@Marvin9
Copy link
Contributor Author

Marvin9 commented Oct 10, 2024

@krancour not sure what to do with codecov CI failing

@Marvin9 Marvin9 added this pull request to the merge queue Oct 11, 2024
Merged via the queue into main with commit 07849be Oct 11, 2024
21 checks passed
@Marvin9 Marvin9 deleted the Marvin9/extend-promotion-step-wizard branch October 11, 2024 03:19
@krancour
Copy link
Member

not sure what to do with codecov CI failing

Sorry for the late reply. It's informational and not required to pass.

Marvin9 added a commit that referenced this pull request Oct 11, 2024
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants