From 5ab098eed1cc98b807b2be475e9821bf071f8cfd Mon Sep 17 00:00:00 2001 From: Harsha Somisetty Date: Fri, 4 Aug 2023 19:27:55 -0400 Subject: [PATCH] Final deployment changes --- apps/backend-serverless/serverless.purple.yml | 2 ++ .../handlers/clients/payment-ui/customer-data.ts | 3 +++ .../utilities/clients/create-customer-response.ts | 4 ++-- .../src/components/ProductsCard/TreeSetup.tsx | 3 --- apps/merchant-ui/src/components/TiersCard.tsx | 11 ++++++----- .../mock-shopify-serverless/src/handlers/payment.ts | 4 ++-- .../src/components/CheckoutSection/PaymentView.tsx | 2 +- apps/payment-ui/src/components/PayToLabel/index.tsx | 13 +++++++++---- .../builders/payment-transaction-ix.builder.ts | 8 ++++++++ 9 files changed, 33 insertions(+), 17 deletions(-) diff --git a/apps/backend-serverless/serverless.purple.yml b/apps/backend-serverless/serverless.purple.yml index 86b83bd8..4639f487 100644 --- a/apps/backend-serverless/serverless.purple.yml +++ b/apps/backend-serverless/serverless.purple.yml @@ -63,6 +63,7 @@ package: - 'node_modules/.prisma/client/libquery_engine-linux-arm64-*' - '!node_modules/prisma/libquery_engine-*' - '!node_modules/@prisma/engines/**' + - 'node_modules/@project-serum/**' functions: install: handler: src/handlers/shopify-handlers/install.install @@ -306,6 +307,7 @@ functions: Resource: ${self:resources.Outputs.ShopifyQueueArn.Value} process-message: handler: src/handlers/webhooks/sqs/process-transaction-message.processTransactionMessage + timeout: 30 events: - sqs: arn: ${self:resources.Outputs.ProcessQueueArn.Value} diff --git a/apps/backend-serverless/src/handlers/clients/payment-ui/customer-data.ts b/apps/backend-serverless/src/handlers/clients/payment-ui/customer-data.ts index 0fc6975a..8c26cfce 100644 --- a/apps/backend-serverless/src/handlers/clients/payment-ui/customer-data.ts +++ b/apps/backend-serverless/src/handlers/clients/payment-ui/customer-data.ts @@ -20,6 +20,9 @@ export const customerData = Sentry.AWSLambda.wrapHandler( Sentry.captureEvent({ message: 'in customerData', level: 'info', + extra: { + event, + }, }); const paymentRecordService = new PaymentRecordService(prisma); diff --git a/apps/backend-serverless/src/utilities/clients/create-customer-response.ts b/apps/backend-serverless/src/utilities/clients/create-customer-response.ts index dbc85e7b..f6ed42bd 100644 --- a/apps/backend-serverless/src/utilities/clients/create-customer-response.ts +++ b/apps/backend-serverless/src/utilities/clients/create-customer-response.ts @@ -125,10 +125,10 @@ export const createCustomerResponse = async ( let customerOwns = currentTier && currentTier.mint ? await customerOwnsTier(customerWallet, currentTier.mint) : false; - console.log('tier status', currentTier, nextPossibleTier, isFirstTier, customerOwns); + // console.log('tier status', currentTier, nextPossibleTier, isFirstTier, customerOwns); let customerNfts = (await createProductsNftResponse(merchant)).customerView[customerWallet]; - console.log('customer nfts', customerNfts); + // console.log('customer nfts', customerNfts); return { amountSpent: customer.amountSpent, tier: currentTier, diff --git a/apps/merchant-ui/src/components/ProductsCard/TreeSetup.tsx b/apps/merchant-ui/src/components/ProductsCard/TreeSetup.tsx index 5aeacef8..e82033c6 100644 --- a/apps/merchant-ui/src/components/ProductsCard/TreeSetup.tsx +++ b/apps/merchant-ui/src/components/ProductsCard/TreeSetup.tsx @@ -110,9 +110,6 @@ export default function TreeSetup(props: Props) { - ); diff --git a/apps/merchant-ui/src/components/TiersCard.tsx b/apps/merchant-ui/src/components/TiersCard.tsx index 232872a0..a66e11e2 100644 --- a/apps/merchant-ui/src/components/TiersCard.tsx +++ b/apps/merchant-ui/src/components/TiersCard.tsx @@ -129,6 +129,7 @@ export function TiersCard(props: Props) { tiers: { ...newTier, ...(data.mintAddress && { mint: data.mintAddress }), + active: true, }, }); @@ -244,7 +245,7 @@ export function TiersCard(props: Props) { $ Threshold % Back Active - {/* Frozen */} + Frozen @@ -309,9 +310,9 @@ export function TiersCard(props: Props) { handleToggle(tier.id)} /> - {/* - - */} + + + {editing === tier.id ? (