Skip to content

Commit a4604c1

Browse files
update the connector details header styling (#244)
1 parent 0241ea0 commit a4604c1

File tree

7 files changed

+69
-25
lines changed

7 files changed

+69
-25
lines changed

components/ConnectorDetailsHeader/ConnectorDetailsHeader.module.css

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
margin: 32px 0px;
33
display:flex;
44
flex-direction: column;
5-
gap: 12px
5+
gap: 6px
66
}
77

88
.Heading{
@@ -39,7 +39,18 @@
3939
border-radius: 28px;
4040
}
4141

42+
.FeaturesHeading{
43+
font-size: 14px;
44+
color: var(--gray-text-color);
45+
}
46+
4247
.SubHeading{
48+
display: flex;
49+
flex-direction: column;
50+
gap: 8px;
51+
}
52+
53+
.FeaturesList{
4354
display: flex;
4455
flex-wrap: wrap;
4556
gap: 12px;
@@ -50,6 +61,9 @@
5061
font-size: 12px;
5162
border-radius: 14px;
5263
width: fit-content;
64+
display: flex;
65+
align-items: center;
66+
gap: 4px
5367
}
5468

5569
.AvailableFeature{

components/ConnectorDetailsHeader/ConnectorDetailsHeader.tsx

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import classNames from "classnames";
2+
import { ReactComponent as CheckIcon } from "../../images/icons/check.svg";
3+
import { ReactComponent as CrossIcon } from "../../images/icons/cross.svg";
24
import {
35
getConnectorImage,
46
getConnectorPlatformIcon,
@@ -30,22 +32,30 @@ function ConnectorDetailsHeader({
3032
</div>
3133
</div>
3234
<div className={styles.SubHeading}>
33-
{availableFeatures.map((feature) => (
34-
<div
35-
className={classNames(styles.FeatureTag, styles.AvailableFeature)}
36-
key={feature}
37-
>
38-
{feature}
39-
</div>
40-
))}
41-
{unavailableFeatures.map((feature) => (
42-
<div
43-
className={classNames(styles.FeatureTag, styles.UnavailableFeature)}
44-
key={feature}
45-
>
46-
{feature}
47-
</div>
48-
))}
35+
<div className={styles.FeaturesHeading}>Feature List</div>
36+
<div className={styles.FeaturesList}>
37+
{availableFeatures.map((feature) => (
38+
<div
39+
className={classNames(styles.FeatureTag, styles.AvailableFeature)}
40+
key={feature}
41+
>
42+
{feature}
43+
<CheckIcon height={12} />
44+
</div>
45+
))}
46+
{unavailableFeatures.map((feature) => (
47+
<div
48+
className={classNames(
49+
styles.FeatureTag,
50+
styles.UnavailableFeature
51+
)}
52+
key={feature}
53+
>
54+
{feature}
55+
<CrossIcon height={14} />
56+
</div>
57+
))}
58+
</div>
4959
</div>
5060
</div>
5161
);

components/ConnectorsInfo/ConnectorsInfo.constants.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ export const CONNECTORS: Array<ConnectorCategory> = [
2424
icon: "./images/connectors/bigquery.png",
2525
name: "BigQuery",
2626
},
27+
{
28+
url: "/connectors/database/bigtable",
29+
icon: "./images/connectors/big-table.png",
30+
name: "BigTable",
31+
supportedVersion: "v1.3.x",
32+
},
2733
{
2834
url: "/connectors/database/clickhouse",
2935
icon: "./images/connectors/clickhouse.png",

components/common/Icon/Icon.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
1-
import React from "react";
21
import { ReactComponent as CheckIcon } from "../../../images/icons/check.svg";
32
import { ReactComponent as CrossIcon } from "../../../images/icons/cross.svg";
43

54
function Icon({ iconName }: { iconName: string }) {
65
let IconComponent: SvgComponent;
6+
let iconColor = "currentColor";
77

88
switch (iconName) {
99
case "check":
1010
IconComponent = CheckIcon;
1111
break;
1212
case "cross":
1313
IconComponent = CrossIcon;
14+
iconColor = "#CB2431";
1415
break;
1516
default:
1617
return <></>;
1718
}
1819

19-
return <IconComponent />;
20+
return <IconComponent height={16} color={iconColor} />;
2021
}
2122

2223
export default Icon;

images/icons/check.svg

Lines changed: 1 addition & 1 deletion
Loading

images/icons/cross.svg

Lines changed: 9 additions & 2 deletions
Loading

utils/ConnectorsUtils.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,26 +73,31 @@ export const getConnectorImage = (connector: string) => {
7373
break;
7474

7575
case "S3":
76-
case "Data lake":
76+
case "Datalake":
7777
iconSource = "amazon-s3";
7878
break;
7979

80-
case "Azure SQL":
80+
case "AzureSQL":
8181
iconSource = "azuresql";
8282
break;
8383

8484
case "BigQuery":
8585
iconSource = "bigquery";
8686
break;
8787

88-
case "ClickHouse":
88+
case "BigTable":
89+
iconSource = "big-table";
90+
break;
91+
92+
case "Clickhouse":
8993
iconSource = "clickhouse";
9094
break;
9195

9296
case "Couchbase":
9397
iconSource = "couchbase";
9498
break;
9599

100+
case "Databricks":
96101
case "Databricks SQL":
97102
case "Unity Catalog":
98103
case "Databricks Pipeline":
@@ -107,6 +112,7 @@ export const getConnectorImage = (connector: string) => {
107112
iconSource = "delta-lake";
108113
break;
109114

115+
case "Domo":
110116
case "Domo Database":
111117
case "Domo Dashboard":
112118
case "Domo Pipeline":

0 commit comments

Comments
 (0)