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: selector dropdown for milestone new strategy #8841

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

daveleek
Copy link
Contributor

Adds a dropdown for selecting which strategy type to add to the milestone

image

Copy link

vercel bot commented Nov 22, 2024

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 Nov 22, 2024 2:10pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Nov 22, 2024 2:10pm

Copy link
Contributor

github-actions bot commented Nov 22, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

}}
>
<MilestoneStrategyMenuCards
milestoneId={milestone.id ?? index.toString()}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Temporary, also going to use uuidv4() to generate an id for milestones


interface IMilestoneStrategyMenuCardProps {
strategy: IStrategy;
strategyClicked: (strategy: IReleasePlanMilestoneStrategy) => void;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
strategyClicked: (strategy: IReleasePlanMilestoneStrategy) => void;
onClick: (strategy: IReleasePlanMilestoneStrategy) => void;

@@ -9,7 +12,10 @@ interface IMilestoneListProps {
setMilestones: React.Dispatch<
React.SetStateAction<IReleasePlanMilestonePayload[]>
>;
setAddStrategyOpen: (open: boolean) => void;
openAddStrategyForm: (
index: number,
Copy link
Member

@nunogois nunogois Nov 22, 2024

Choose a reason for hiding this comment

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

I think this is going to be increasingly more difficult to maintain. Maybe we should call it something else. I think this is the milestoneIndex, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Approved PRs
Development

Successfully merging this pull request may close these issues.

2 participants