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: show available parent dependency options #4837

Merged
merged 2 commits into from
Sep 27, 2023
Merged

Conversation

kwasniew
Copy link
Contributor

@kwasniew kwasniew commented Sep 26, 2023

About the changes

Show available parent features and option to remove dependency for a feature:

Screenshot 2023-09-26 at 14 26 50

Full UI test for this component in the next PR

Important files

Discussion points

@vercel
Copy link

vercel bot commented Sep 26, 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 Sep 26, 2023 2:13pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Sep 26, 2023 2:13pm

@kwasniew kwasniew changed the title feat: show available options feat: show available parent dependency options Sep 26, 2023
@@ -15,21 +16,33 @@ const StyledSelect = styled(GeneralSelect)(({ theme }) => ({
marginBottom: theme.spacing(1.5),
}));

const REMOVE_DEPENDENCY_OPTION = {
Copy link
Member

Choose a reason for hiding this comment

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

"remove" option could be more visually distinct
https://mui.com/material-ui/react-select/#labels-and-helper-text

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will address in the next PR

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I checked this and we use GeneralSelect that unfortunately uses configuration over composition approach. It prevents styling of children. Since this component is temporary and we'll have separate remove dependency widget in future I'll leave it for now.

@kwasniew kwasniew merged commit 889377a into main Sep 27, 2023
14 checks passed
@kwasniew kwasniew deleted the show-available-parents branch September 27, 2023 06:10
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