Skip to content

Commit

Permalink
Change Key to Entity Key
Browse files Browse the repository at this point in the history
  • Loading branch information
blrchen committed Aug 10, 2022
1 parent d4a9dfa commit a47ae57
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
1 change: 1 addition & 0 deletions ui/src/components/dataSourceList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ const DataSourceList: React.FC = () => {
value={project}
optionFilterProp="label"
notFoundContent={<div>No projects found from server</div>}
showSearch={true}
onChange={onProjectChange}
></Select>
</Form.Item>
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/featureList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const FeatureList: React.FC = () => {
},
},
{
title: <div>Key</div>,
title: <div>Entity Key</div>,
key: "aggregation",
width: 80,
render: (name: string, row: Feature) => {
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/graph/graphNodeDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const GraphNodeDetails: React.FC = () => {
)}
{feature?.attributes.key && feature.attributes.key.length > 0 && (
<Card>
<Title level={4}>Key</Title>
<Title level={4}>Entity Key</Title>
<p>Full name: {feature.attributes.key[0].fullName}</p>
<p>Description: {feature.attributes.key[0].description}</p>
<p>Key column: {feature.attributes.key[0].keyColumn}</p>
Expand Down
19 changes: 9 additions & 10 deletions ui/src/pages/feature/featureDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@ import { getElements } from "../../components/graph/utils";

const { Title } = Typography;

function FeatureKey(props: { feature: Feature }) {
const FeatureKey = (props: { feature: Feature }) => {
const keys = props.feature.attributes.key;
console.log(props.feature.attributes);
return (
<>
{keys && keys.length > 0 && (
<Col span={24}>
<Card className="card">
<Title level={4}>Key</Title>
<Title level={4}>Entity Key</Title>
<div className="feature-container">
<p>Full Name: {keys[0].fullName}</p>
<p>Key Column: {keys[0].keyColumn}</p>
Expand All @@ -35,9 +34,9 @@ function FeatureKey(props: { feature: Feature }) {
)}
</>
);
}
};

function FeatureType(props: { feature: Feature }) {
const FeatureType = (props: { feature: Feature }) => {
const type = props.feature.attributes.type;
return (
<>
Expand All @@ -56,9 +55,9 @@ function FeatureType(props: { feature: Feature }) {
)}
</>
);
}
};

function FeatureTransformation(props: { feature: Feature }) {
const FeatureTransformation = (props: { feature: Feature }) => {
const transformation = props.feature.attributes.transformation;
return (
<>
Expand Down Expand Up @@ -88,9 +87,9 @@ function FeatureTransformation(props: { feature: Feature }) {
)}
</>
);
}
};

function InputAnchorFeatures(props: { project: string; feature: Feature }) {
const InputAnchorFeatures = (props: { project: string; feature: Feature }) => {
const navigate = useNavigate();
const inputAnchorFeatures = props.feature.attributes.inputAnchorFeatures;
return (
Expand Down Expand Up @@ -124,7 +123,7 @@ function InputAnchorFeatures(props: { project: string; feature: Feature }) {
)}
</>
);
}
};

function InputDerivedFeatures(props: { project: string; feature: Feature }) {
const navigate = useNavigate();
Expand Down

0 comments on commit a47ae57

Please sign in to comment.