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: delete segment from CR #4469

Merged
merged 3 commits into from
Aug 10, 2023
Merged

feat: delete segment from CR #4469

merged 3 commits into from
Aug 10, 2023

Conversation

sjaanus
Copy link
Contributor

@sjaanus sjaanus commented Aug 10, 2023

No description provided.

@vercel
Copy link

vercel bot commented Aug 10, 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 Aug 10, 2023 0:50am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Aug 10, 2023 0:50am

@@ -55,7 +63,7 @@ export const ChangeRequest: VFC<IChangeRequestProps> = ({
{feature.changes.map((change, index) => (
<FeatureChange
key={index}
discard={
actions={
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Renaming old confusing prop name

@@ -60,7 +57,7 @@ const StyledPopover = styled(Popover)(({ theme }) => ({
export const ChangeActions: FC<{
changeRequest: IChangeRequest;
feature: string;
change: IFeatureChange;
change: IChange;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Now can take in all type of changes

actions={
<ChangeActions
changeRequest={changeRequest}
feature={segmentChange.name}
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm. segmentChange.name is not a feature name, but a current segment name of the segment you're changing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, currently ChangeActions has actions for delete and edit. Edit needs a name of something. Currently providing segment name, but when we implement edit of segment change, then we need to refactor this a little.

@kwasniew kwasniew self-requested a review August 10, 2023 12:39
@sjaanus sjaanus merged commit c1314a8 into main Aug 10, 2023
10 of 15 checks passed
@sjaanus sjaanus deleted the delete-segment-cr branch August 10, 2023 12:56
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