From 5dcc5c295624f310f4e863915ce50af9c63009be Mon Sep 17 00:00:00 2001 From: bhavanakarwade Date: Mon, 15 Apr 2024 15:05:36 +0530 Subject: [PATCH 01/19] refactor: parameter name Signed-off-by: bhavanakarwade --- src/components/organization/interfaces/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/organization/interfaces/index.ts b/src/components/organization/interfaces/index.ts index 566b67047..4c7530d89 100644 --- a/src/components/organization/interfaces/index.ts +++ b/src/components/organization/interfaces/index.ts @@ -89,7 +89,7 @@ name: string networkString: string networkType: string poolConfig: string -registerDIDEndpoint: string +nymTxnEndpoint: string } export interface OrgDashboard { usersCount: number From ac0a437cc06f7239adc9eb0419fc401b287b1b17 Mon Sep 17 00:00:00 2001 From: bhavanakarwade Date: Thu, 16 May 2024 18:57:16 +0530 Subject: [PATCH 02/19] refactor: added query parameter Signed-off-by: bhavanakarwade --- src/api/ecosystem.ts | 3 ++- src/components/Resources/Schema/Create.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/api/ecosystem.ts b/src/api/ecosystem.ts index 112476acc..7d3445153 100644 --- a/src/api/ecosystem.ts +++ b/src/api/ecosystem.ts @@ -110,10 +110,11 @@ export const getEndorsementList = async ( export const createSchemaRequest = async ( data: object, + schemaType: string, endorsementId: string, orgId: string, ) => { - const url = `${apiRoutes.Ecosystem.root}/${endorsementId}/${orgId}${apiRoutes.Ecosystem.endorsements.createSchemaRequest}`; + const url = `${apiRoutes.Ecosystem.root}/${endorsementId}/${orgId}${apiRoutes.Ecosystem.endorsements.createSchemaRequest}?schemaType=${schemaType}`; const payload = data; const axiosPayload = { url, diff --git a/src/components/Resources/Schema/Create.tsx b/src/components/Resources/Schema/Create.tsx index 23b7803f3..921f910e3 100644 --- a/src/components/Resources/Schema/Create.tsx +++ b/src/components/Resources/Schema/Create.tsx @@ -158,7 +158,7 @@ const CreateSchema = () => { const id = await getEcosystemId(); - const createSchema = await createSchemaRequest(schemaFieldName, id, orgId); + const createSchema = await createSchemaRequest(schemaFieldName, 'indy', id, orgId); const { data } = createSchema as AxiosResponse; if (data?.statusCode === apiStatusCodes.API_STATUS_CREATED) { setSuccess(data?.message); From cfabd6ae6871bb4a7462a623de6e10961e3d08b6 Mon Sep 17 00:00:00 2001 From: bhavanakarwade Date: Thu, 16 May 2024 19:09:14 +0530 Subject: [PATCH 03/19] fix: remove unnecessary code Signed-off-by: bhavanakarwade --- src/components/organization/interfaces/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/organization/interfaces/index.ts b/src/components/organization/interfaces/index.ts index e9482b636..99bc7d5ca 100644 --- a/src/components/organization/interfaces/index.ts +++ b/src/components/organization/interfaces/index.ts @@ -95,7 +95,7 @@ name: string networkString: string networkType: string poolConfig: string -nymTxnEndpoint: string +registerDIDEndpoint: string } export interface OrgDashboard { usersCount: number From caf8e60db8d9271bcfbae12c39007aa8bb6e14d8 Mon Sep 17 00:00:00 2001 From: bhavanakarwade Date: Fri, 17 May 2024 13:10:59 +0530 Subject: [PATCH 04/19] fix: query param issue Signed-off-by: bhavanakarwade --- src/common/enums.ts | 4 ++++ src/components/Resources/Schema/Create.tsx | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/common/enums.ts b/src/common/enums.ts index 7abdc1dff..dd66bea4f 100644 --- a/src/common/enums.ts +++ b/src/common/enums.ts @@ -31,6 +31,10 @@ export enum ProofRequestStateUserText { abandoned = 'Declined', } +export enum SchemaType { + INDY = 'indy', + W3C = 'w3c' +} export enum IssueCredentialUserText { offerSent = 'Offered', done = 'Accepted', diff --git a/src/components/Resources/Schema/Create.tsx b/src/components/Resources/Schema/Create.tsx index 921f910e3..8f85fa74b 100644 --- a/src/components/Resources/Schema/Create.tsx +++ b/src/components/Resources/Schema/Create.tsx @@ -20,6 +20,7 @@ import { ICheckEcosystem, checkEcosystem, getEcosystemId } from '../../../config import { createSchemaRequest } from '../../../api/ecosystem'; import EcosystemProfileCard from '../../../commonComponents/EcosystemProfileCard'; import ConfirmationModal from '../../../commonComponents/ConfirmationModal'; +import { SchemaType } from '../../../common/enums'; const options = [ { @@ -158,7 +159,7 @@ const CreateSchema = () => { const id = await getEcosystemId(); - const createSchema = await createSchemaRequest(schemaFieldName, 'indy', id, orgId); + const createSchema = await createSchemaRequest(schemaFieldName, SchemaType.INDY, id, orgId); const { data } = createSchema as AxiosResponse; if (data?.statusCode === apiStatusCodes.API_STATUS_CREATED) { setSuccess(data?.message); From f7103aade82b37c1ce81c0a1e8abea26f71727d1 Mon Sep 17 00:00:00 2001 From: bhavanakarwade Date: Tue, 18 Jun 2024 18:20:07 +0530 Subject: [PATCH 05/19] fix: css issues Signed-off-by: bhavanakarwade --- src/components/AddOrganizationInEcosystem.tsx | 1 + .../organization/walletCommonComponents/SharedAgent.tsx | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/AddOrganizationInEcosystem.tsx b/src/components/AddOrganizationInEcosystem.tsx index c4f5578f5..44cb30a11 100644 --- a/src/components/AddOrganizationInEcosystem.tsx +++ b/src/components/AddOrganizationInEcosystem.tsx @@ -409,6 +409,7 @@ const AddOrganizationInEcosystem = () => {