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: Add duplicate name logic to Rename flow onClick #3457

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

RODO94
Copy link
Contributor

@RODO94 RODO94 commented Jul 25, 2024

What does this PR do?

This PR builds on previous work completed in #3445 to add duplicate name validation when you add a new flow.

What that previous PR didn't pick up was adding the validation to the renaming process.

In order to allow a comparison between the new name and the current list of names, I had to alter the props being passed to the <FlowItem> component which contains the <StyledSimpleMenu>.

The alteration was just to add flows into the component.

@RODO94 RODO94 requested a review from a team July 25, 2024 14:32
@@ -128,13 +128,15 @@ export function AddButton({

interface FlowItemProps {
flow: any;
flows: any;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Use of the any type followed current practices in the Team component, may be worth a refactor in future to follow TS best practices

Copy link

github-actions bot commented Jul 25, 2024

Removed vultr server and associated DNS entries

Copy link
Member

@jessicamcinchak jessicamcinchak left a comment

Choose a reason for hiding this comment

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

Works as expected for me ! Appreciate you double-checking post-merge and finding this edge case 🙌

@RODO94 RODO94 merged commit fbfcf9f into main Jul 25, 2024
12 checks passed
@RODO94 RODO94 deleted the rory/rename-flow-duplicate-validation branch July 25, 2024 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants