From e706534671d28b74294d62dc7c6259c511836be2 Mon Sep 17 00:00:00 2001 From: mnida <33556500+mnida@users.noreply.github.com> Date: Wed, 21 Dec 2022 22:07:33 -0800 Subject: [PATCH] updated styling + snowflake (#401) --- .../src/components/Customers/CustomerInfo.tsx | 17 ++++++++--- .../Dashboard/CustomerByPlanPie.tsx | 1 + .../Experiments/BacktestSubsitution.tsx | 4 +++ .../Settings/settings/components/AppCard.tsx | 11 +++++-- .../Settings/settings/tabs/GeneralTab.tsx | 30 +++++++++++++------ .../settings/tabs/IntegrationsTab.tsx | 11 ++++++- frontend/src/types/customer-type.ts | 1 + frontend/src/types/payment-processor-type.ts | 5 ++++ 8 files changed, 63 insertions(+), 17 deletions(-) diff --git a/frontend/src/components/Customers/CustomerInfo.tsx b/frontend/src/components/Customers/CustomerInfo.tsx index 48679bb81..706309589 100644 --- a/frontend/src/components/Customers/CustomerInfo.tsx +++ b/frontend/src/components/Customers/CustomerInfo.tsx @@ -101,7 +101,7 @@ const CustomerInfoView: FC = ({ data, cost_data, onDateChange }) => { seriesField: "metric", groupField: "type", colorField: "type", // or seriesField in some cases - color: ["#C3986B", "#3F3F40"], + color: ["#C3986B", "#33658A", "#D9D9D9", "#171412", "#547AA5"], tooltip: { fields: ["type"], @@ -114,7 +114,7 @@ const CustomerInfoView: FC = ({ data, cost_data, onDateChange }) => {

Customer Details

{" "} - Date Range :{" "} + Date Range :{" "} +
diff --git a/frontend/src/components/Settings/settings/tabs/IntegrationsTab.tsx b/frontend/src/components/Settings/settings/tabs/IntegrationsTab.tsx index 54bc2f5b8..7dbb8f186 100644 --- a/frontend/src/components/Settings/settings/tabs/IntegrationsTab.tsx +++ b/frontend/src/components/Settings/settings/tabs/IntegrationsTab.tsx @@ -29,7 +29,7 @@ const IntegrationsTab: FC = () => { return (
Integrations - + {data && data !== undefined && data.map((item, index) => { @@ -50,6 +50,15 @@ const IntegrationsTab: FC = () => { ); })} + + navigate("/settings/integrations/snowflake")} + /> +
diff --git a/frontend/src/types/customer-type.ts b/frontend/src/types/customer-type.ts index cb7e3ba4d..618389e64 100644 --- a/frontend/src/types/customer-type.ts +++ b/frontend/src/types/customer-type.ts @@ -13,6 +13,7 @@ export interface CustomerType { subscriptions: SubscriptionType[]; integrations: object; default_currency: PricingUnit; + has_payment_method: boolean; } export interface LightweightCustomerType diff --git a/frontend/src/types/payment-processor-type.ts b/frontend/src/types/payment-processor-type.ts index 373353f29..0a6d6d7ff 100644 --- a/frontend/src/types/payment-processor-type.ts +++ b/frontend/src/types/payment-processor-type.ts @@ -26,4 +26,9 @@ export const integrationsMap = { description: "Charge and invoice your customers through your Stripe account", }, + snowflake: { + name: "Snowflake", + icon: "https://i.imgur.com/iNCQmMu.png", + description: "Sync data to your Snowflake warehouse", + }, };