Skip to content

Instantly share code, notes, and snippets.

commit 73eaa015e2841a90537295ac8cc1799306440ce1
Author: shilal <salem@getoctane.io>
Date: Wed Mar 15 16:47:58 2023 -0400
refactor: Remove flags related to ECP
We're takin it live for everyone
diff --git a/src/components/customer/CustomerDetailsContactCard.tsx b/src/components/customer/CustomerDetailsContactCard.tsx
index c59ab5ee..0e7412a7 100644
diff --git a/src/components/core/modal/OctaneModal.tsx b/src/components/core/modal/OctaneModal.tsx
index 1c9b5ca9..cecbd51a 100644
--- a/src/components/core/modal/OctaneModal.tsx
+++ b/src/components/core/modal/OctaneModal.tsx
@@ -62,7 +62,7 @@ export const OctaneModal = (props: Props) => {
return (
<Modal motionPreset="slideInBottom" scrollBehavior="inside" {...modalProps}>
- <ModalOverlay bg={theme.colors.bgModalOverlay} />
+ <ModalOverlay />
diff --git a/src/components/hosted_page/cards/UsageCard.tsx b/src/components/hosted_page/cards/UsageCard.tsx
index ed8881c2..d35aa662 100644
--- a/src/components/hosted_page/cards/UsageCard.tsx
+++ b/src/components/hosted_page/cards/UsageCard.tsx
@@ -175,11 +175,7 @@ export const UsageCard = ({ usageData }: Props) => {
data={rows}
columns={[{ accessor: 'value' }]}
formatTooltipValue={(value) =>
- `${value}${
- meterData?.unitName
diff --git a/src/components/hosted_page/UsageFetcher.tsx b/src/components/hosted_page/UsageFetcher.tsx
index f12faed6..9a9f242a 100644
--- a/src/components/hosted_page/UsageFetcher.tsx
+++ b/src/components/hosted_page/UsageFetcher.tsx
@@ -33,10 +33,7 @@ export const UsageFetcher = () => {
itIsDefinitelyThereAndIfItIsntSalemWillWakeMeUpAtThreeInTheMorning(
item.meter_type,
),
- unitName:
- itIsDefinitelyThereAndIfItIsntSalemWillWakeMeUpAtThreeInTheMorning(
diff --git a/src/components/customer/CustomerPageContainer.tsx b/src/components/customer/CustomerPageContainer.tsx
index b23eb1e5..422774ce 100644
--- a/src/components/customer/CustomerPageContainer.tsx
+++ b/src/components/customer/CustomerPageContainer.tsx
@@ -67,24 +67,28 @@ const CustomerPageContainer = () => {
<GridItem
colSpan={{ sm: 12, md: 6, lg: 4 }}
rowSpan={{ md: 'auto', lg: 6 }}
+ maxW="full"
>
diff --git a/src/components/price_plan/card/components/FeatureComponent.tsx b/src/components/price_plan/card/components/FeatureComponent.tsx
index a88d6db3..0d341e98 100644
--- a/src/components/price_plan/card/components/FeatureComponent.tsx
+++ b/src/components/price_plan/card/components/FeatureComponent.tsx
@@ -47,7 +47,9 @@ export const FeatureComponent = ({
</React.Fragment>,
);
} else {
- metadata.push(<>priceText</>);
+ metadata.push(
diff --git a/src/theme/octane-components.ts b/src/theme/octane-components.ts
index 5bef6c56..929a8a6e 100644
--- a/src/theme/octane-components.ts
+++ b/src/theme/octane-components.ts
@@ -32,7 +32,7 @@ export const components: ThemeComponents = {
parts: ['menu', 'list', 'item'],
baseStyle: {
item: {
- color: colors.fontSecondary,
+ background: colors.bgSecondary,
diff --git a/hasura/metadata/actions.graphql b/hasura/metadata/actions.graphql
index 5266f097..472a1c79 100644
--- a/hasura/metadata/actions.graphql
+++ b/hasura/metadata/actions.graphql
@@ -1,9 +1,13 @@
type Mutation {
- addCoupon(args: AddCouponInput!): AddCouponOutput
+ addCoupon(
+ args: AddCouponInput!
+ ): AddCouponOutput
diff --git a/ledgerservice/server/schemas/price_plan.py b/ledgerservice/server/schemas/price_plan.py
index e8983bfe..6573c3d7 100644
--- a/ledgerservice/server/schemas/price_plan.py
+++ b/ledgerservice/server/schemas/price_plan.py
@@ -45,7 +45,7 @@ class PricePlanSchema(BaseSchema):
metered_components = mas.RelatedList(mas.Nested("MeteredComponentSchema"))
- minimum_charge = auto_field(example="300", description="Minimum amount to charge every 'period'")
+ minimum_charge = auto_field(example=300, description="Minimum amount to charge every 'period'")
diff --git a/src/interfaces/metered-component-types.ts b/src/interfaces/metered-component-types.ts
index 370a143d..b345240f 100644
--- a/src/interfaces/metered-component-types.ts
+++ b/src/interfaces/metered-component-types.ts
@@ -1,8 +1,4 @@
-import type {
- LabelLimitInput,
- MeteredComponentLabelLimit,
- PriceInput,
-} from 'graphql/types.generated';