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: strategy variant UI spike #4246

Merged
merged 4 commits into from
Jul 14, 2023
Merged

feat: strategy variant UI spike #4246

merged 4 commits into from
Jul 14, 2023

Conversation

kwasniew
Copy link
Contributor

@kwasniew kwasniew commented Jul 14, 2023

About the changes

Spike for the strategy variants
Screenshot 2023-07-12 at 16 15 18

The main file will be reworked from scratch and tests with unit tests. I'm adding it for demoing purposes behind a flag.

Important files

Discussion points

@sonatype-lift
Copy link

sonatype-lift bot commented Jul 14, 2023

Sonatype Lift is retiring

Sonatype Lift will be retiring on Sep 12, 2023, with its analysis stopping on Aug 12, 2023. We understand that this news may come as a disappointment, and Sonatype is committed to helping you transition off it seamlessly. If you’d like to retain your data, please export your issues from the web console.
We are extremely grateful and thank you for your support over the years.

📖 Read about the impacts and timeline

@vercel
Copy link

vercel bot commented Jul 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 14, 2023 0:21am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Jul 14, 2023 0:21am

@@ -246,6 +247,16 @@ export const FeatureStrategyForm = ({
hasAccess={access}
/>
<StyledHr />
<ConditionallyRender
Copy link
Contributor Author

Choose a reason for hiding this comment

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

every old strategy will get a variant support

@@ -126,34 +123,6 @@ const FlexibleStrategy = ({
onChange={e => onUpdate('groupId')(e.target.value)}
data-testid={FLEXIBLE_STRATEGY_GROUP_ID}
/>
<ConditionallyRender
Copy link
Contributor Author

Choose a reason for hiding this comment

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

previously on gradual rollout had basic variant support

@@ -0,0 +1,129 @@
import {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This entire file is taken from POC and will be rewritten from scratch so no need to review as it's hidden behind a flag. This is to allow testing in sandbox.

@@ -150,7 +150,6 @@ interface IVariantFormProps {
variants: IFeatureVariantEdit[];
updateVariant: (updatedVariant: IFeatureVariantEdit) => void;
removeVariant: (variantId: string) => void;
projectId: string;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

prop unused inside the component

Copy link
Contributor

@andreas-unleash andreas-unleash left a comment

Choose a reason for hiding this comment

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

Non-blocking approve

@kwasniew kwasniew merged commit 99d63cf into main Jul 14, 2023
10 of 15 checks passed
@kwasniew kwasniew deleted the strategy-variant-UI-spike branch July 14, 2023 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants