Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: parent and child info in feature overview header (#4901)
- Loading branch information
Showing
7 changed files
with
127 additions
and
25 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...tureOverview/FeatureOverviewSidePanel/FeatureOverviewSidePanelDetails/ChildrenTooltip.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { StyledLink } from './StyledRow'; | ||
import { TooltipLink } from 'component/common/TooltipLink/TooltipLink'; | ||
import { FC } from 'react'; | ||
|
||
export const ChildrenTooltip: FC<{ | ||
childFeatures: string[]; | ||
project: string; | ||
}> = ({ childFeatures, project }) => ( | ||
<TooltipLink | ||
tooltip={ | ||
<> | ||
{childFeatures.map(child => ( | ||
<StyledLink to={`/projects/${project}/features/${child}`}> | ||
<div>{child}</div> | ||
</StyledLink> | ||
))} | ||
</> | ||
} | ||
> | ||
{childFeatures.length === 1 | ||
? '1 feature' | ||
: `${childFeatures.length} features`} | ||
</TooltipLink> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters