-
-
Notifications
You must be signed in to change notification settings - Fork 658
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: display dependencies and parents in project details #4859
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
@@ -44,6 +44,7 @@ export class DependentFeaturesReadModel implements IDependentFeaturesReadModel { | |||
.where('features.project', result[0].project) | |||
.andWhere('features.name', '!=', child) | |||
.andWhere('dependent_features.child', null) | |||
.andWhere('features.archived_at', null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should not allow depending on archived features
@@ -50,6 +52,7 @@ export const AddDependencyDialogue = ({ | |||
} else { | |||
await addDependency(featureId, { feature: parent }); | |||
} | |||
await refetchFeature(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
refresh ui after adding/removing dependency
@@ -13,4 +13,6 @@ export const emptyFeature: IFeatureToggle = { | |||
description: '', | |||
favorite: false, | |||
impressionData: false, | |||
dependencies: [], | |||
children: [], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default feature should provide default values
import { FC, useState } from 'react'; | ||
import { FlexRow, StyledDetail, StyledLabel, StyledLink } from './StyledRow'; | ||
|
||
export const DependencyRow: FC<{ feature: IFeatureToggle }> = ({ feature }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved this code from a previous location so that everything related to dependencies can be managed in one file
frontend/src/component/feature/Dependencies/AddDependencyDialogue.tsx
Outdated
Show resolved
Hide resolved
import { Add } from '@mui/icons-material'; | ||
import { TooltipLink } from 'component/common/TooltipLink/TooltipLink'; | ||
import { AddDependencyDialogue } from 'component/feature/Dependencies/AddDependencyDialogue'; | ||
import { useUiFlag } from 'hooks/useUiFlag'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused?
import { useUiFlag } from 'hooks/useUiFlag'; |
…gue.tsx Co-authored-by: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com>
About the changes
I have a parent UI:
I have some children UI:
Important files
Discussion points