Skip to content

Commit

Permalink
split feature details into three columns (#491)
Browse files Browse the repository at this point in the history
Split the feature details into three columns to prevent more scrolling
  • Loading branch information
t-curiekim authored Jul 20, 2022
1 parent d463eae commit cb345be
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 16 deletions.
38 changes: 22 additions & 16 deletions ui/src/pages/feature/featureDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ function FeatureKey(props: { feature: Feature }) {
<Col span={ 24 }>
<Card className="card">
<Title level={ 4 }>Key</Title>
<p>Full Name: { keys[0].fullName }</p>
<p>Key Column: { keys[0].keyColumn }</p>
<p>Description: { keys[0].description }</p>
<p>Key Column Alias: { keys[0].keyColumnAlias }</p>
<p>Key Column Type: { keys[0].keyColumnType }</p>
<div className="feature-container">
<p>Full Name: { keys[0].fullName }</p>
<p>Key Column: { keys[0].keyColumn }</p>
<p>Description: { keys[0].description }</p>
<p>Key Column Alias: { keys[0].keyColumnAlias }</p>
<p>Key Column Type: { keys[0].keyColumnType }</p>
</div>
</Card>
</Col>
}
Expand All @@ -41,10 +43,12 @@ function FeatureType(props: { feature: Feature }) {
<Col span={ 24 }>
<Card className="card">
<Title level={ 4 }>Type</Title>
<p>Dimension Type: { type.dimensionType }</p>
<p>Tensor Category: { type.tensorCategory }</p>
<p>Type: { type.type }</p>
<p>Value Type: { type.valType }</p>
<div className="feature-container">
<p>Dimension Type: { type.dimensionType }</p>
<p>Tensor Category: { type.tensorCategory }</p>
<p>Type: { type.type }</p>
<p>Value Type: { type.valType }</p>
</div>
</Card>
</Col>
}
Expand All @@ -58,13 +62,15 @@ function FeatureTransformation(props: { feature: Feature }) {
<Col span={ 24 }>
<Card className="card">
<Title level={ 4 }>Transformation</Title>
{ transformation.transformExpr && <p>Expression: { transformation.transformExpr }</p> }
{ transformation.filter && <p>Filter: { transformation.filter }</p> }
{ transformation.aggFunc && <p>Aggregation: { transformation.aggFunc }</p> }
{ transformation.limit && <p>Limit: { transformation.limit }</p> }
{ transformation.groupBy && <p>Group By: { transformation.groupBy }</p> }
{ transformation.window && <p>Window: { transformation.window }</p> }
{ transformation.defExpr && <p>Expression: { transformation.defExpr }</p> }
<div className="feature-container">
{ transformation.transformExpr && <p>Expression: { transformation.transformExpr }</p> }
{ transformation.filter && <p>Filter: { transformation.filter }</p> }
{ transformation.aggFunc && <p>Aggregation: { transformation.aggFunc }</p> }
{ transformation.limit && <p>Limit: { transformation.limit }</p> }
{ transformation.groupBy && <p>Group By: { transformation.groupBy }</p> }
{ transformation.window && <p>Window: { transformation.window }</p> }
{ transformation.defExpr && <p>Expression: { transformation.defExpr }</p> }
</div>
</Card>
</Col>
}
Expand Down
7 changes: 7 additions & 0 deletions ui/src/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,10 @@
padding: 4px 12px 7px;
}

.feature-container {
column-count: 3;
}

.feature-container p {
break-inside: avoid-column;
}

0 comments on commit cb345be

Please sign in to comment.