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 tag description in Field in the Feast UI #3258

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions ui/src/pages/features/FeatureOverviewTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@ import {
EuiHorizontalRule,
EuiLoadingSpinner,
EuiTitle,
EuiSpacer,
EuiPanel,
EuiFlexItem,
EuiText,
EuiDescriptionList,
EuiDescriptionListTitle,
EuiDescriptionListDescription,
} from "@elastic/eui";
import EuiCustomLink from "../../components/EuiCustomLink";
import TagsDisplay from "../../components/TagsDisplay";
import React from "react";
import { useParams } from "react-router-dom";
import useLoadFeature from "./useLoadFeature";
Expand Down Expand Up @@ -53,14 +56,28 @@ const FeatureOverviewTab = () => {

<EuiDescriptionListTitle>FeatureView</EuiDescriptionListTitle>
<EuiDescriptionListDescription>
<EuiCustomLink
<EuiCustomLink
href={`/p/${projectName}/feature-view/${FeatureViewName}`}
to={`/p/${projectName}/feature-view/${FeatureViewName}`}>
{FeatureViewName}
{FeatureViewName}
</EuiCustomLink>
</EuiDescriptionListDescription>
</EuiDescriptionList>
</EuiPanel>
<EuiSpacer size="m" />
<EuiPanel hasBorder={true} grow={false}>
<EuiTitle size="xs">
<h3>Tags</h3>
</EuiTitle>
<EuiHorizontalRule margin="xs" />
{featureData?.tags ? (
<TagsDisplay
tags={featureData.tags}
/>
) : (
<EuiText>No Tags specified on this field.</EuiText>
)}
</EuiPanel>
</EuiFlexItem>
</EuiFlexGroup>
</React.Fragment>
Expand Down