From 254d15bb1e73964088700070ea761560938c340b Mon Sep 17 00:00:00 2001 From: Urban Date: Wed, 10 Apr 2024 11:42:31 +0200 Subject: [PATCH 01/12] fix(dapp): padding and pino-pretty (#618) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Urban Vidovič --- packages/dapp/next.config.js | 1 + packages/dapp/src/components/ConnectedProvider/index.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/dapp/next.config.js b/packages/dapp/next.config.js index 5a015fabd..ec4c5e57e 100644 --- a/packages/dapp/next.config.js +++ b/packages/dapp/next.config.js @@ -112,6 +112,7 @@ const nextConfig = { }, webpack: (config) => { + config.externals.push('pino-pretty'); config.module.rules.push({ test: /\.svg$/, use: ['@svgr/webpack'], diff --git a/packages/dapp/src/components/ConnectedProvider/index.tsx b/packages/dapp/src/components/ConnectedProvider/index.tsx index 3c97a8787..669309189 100644 --- a/packages/dapp/src/components/ConnectedProvider/index.tsx +++ b/packages/dapp/src/components/ConnectedProvider/index.tsx @@ -22,7 +22,7 @@ const ConnectedProvider = ({ children }: ConnectedProviderProps) => { return isConnected ? ( <>{children} ) : ( -
+

From 3b56e6fab7679934234c435905d99a20e668aea9 Mon Sep 17 00:00:00 2001 From: Urban Date: Thu, 11 Apr 2024 09:26:08 +0200 Subject: [PATCH 02/12] fix(dapp): campaign verify failed popup (#619) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Urban Vidovič Co-authored-by: martines3000 --- .../components/CampaignsDisplay/RequirementDisplay.tsx | 8 +++++++- .../Controlbar/FilterPopover/CredentialTypes.tsx | 3 ++- .../src/components/Controlbar/FilterPopover/index.tsx | 3 ++- packages/dapp/src/components/DashboardDisplay/utils.tsx | 6 ++---- packages/dapp/src/messages/en.json | 5 +++-- 5 files changed, 16 insertions(+), 9 deletions(-) diff --git a/packages/dapp/src/components/CampaignsDisplay/RequirementDisplay.tsx b/packages/dapp/src/components/CampaignsDisplay/RequirementDisplay.tsx index ca68e307b..857e7484d 100644 --- a/packages/dapp/src/components/CampaignsDisplay/RequirementDisplay.tsx +++ b/packages/dapp/src/components/CampaignsDisplay/RequirementDisplay.tsx @@ -84,10 +84,16 @@ export const RequirementDisplay = ({ const queryCredentialsResult = await api.queryCredentials(); if (isError(queryCredentialsResult)) { + useToastStore.setState({ + open: true, + title: t('requirements-not-met'), + type: 'error', + loading: false, + link: null, + }); setStartedVerifying(false); return; } - // Create a presentation from all the user's credentials except the polygonid ones const createPresentationResult = await api.createPresentation({ vcs: queryCredentialsResult.data.reduce((acc, queryResult) => { diff --git a/packages/dapp/src/components/Controlbar/FilterPopover/CredentialTypes.tsx b/packages/dapp/src/components/Controlbar/FilterPopover/CredentialTypes.tsx index 92c446347..7ce35b34b 100644 --- a/packages/dapp/src/components/Controlbar/FilterPopover/CredentialTypes.tsx +++ b/packages/dapp/src/components/Controlbar/FilterPopover/CredentialTypes.tsx @@ -49,7 +49,8 @@ export const CredentialTypes = () => { ); }} > - clear ({credentialTypes.filter((type) => type.selected).length}) + {t('clear')} ( + {credentialTypes.filter((type) => type.selected).length}) ) : (