Skip to content

Commit

Permalink
merge: dev-to-qa-16-08-2024 (#730)
Browse files Browse the repository at this point in the history
* [Deno Deploy] Update .github/workflows/deploy.yml

* feat: support no ledger (#689)

* wip: implemented ui for method selection

Signed-off-by: bhavanakarwade <[email protected]>

* wip: modified no ledger screen

Signed-off-by: bhavanakarwade <[email protected]>

* feat: modified ui for create did popup

Signed-off-by: bhavanakarwade <[email protected]>

* refactor: worked on error handling

Signed-off-by: bhavanakarwade <[email protected]>

* fix: validations on create did popup

Signed-off-by: bhavanakarwade <[email protected]>

* refactor: mapping function

Signed-off-by: bhavanakarwade <[email protected]>

* fix: resolved sonarlint issues

Signed-off-by: bhavanakarwade <[email protected]>

* fix: input box issues

Signed-off-by: bhavanakarwade <[email protected]>

* refactor: handled role wise conditions

Signed-off-by: bhavanakarwade <[email protected]>

* fix: resolved code duplication errors

Signed-off-by: bhavanakarwade <[email protected]>

* fix: enum values

Signed-off-by: bhavanakarwade <[email protected]>

---------

Signed-off-by: bhavanakarwade <[email protected]>

* fixed CSS and avatar issues (#696)

* fix:css issues

Signed-off-by: pranalidhanavade <[email protected]>

* fix:sonarcloud issues

Signed-off-by: pranalidhanavade <[email protected]>

---------

Signed-off-by: pranalidhanavade <[email protected]>

* feat: support no ledger (#697)

* wip: implemented ui for method selection

Signed-off-by: bhavanakarwade <[email protected]>

* wip: modified no ledger screen

Signed-off-by: bhavanakarwade <[email protected]>

* feat: modified ui for create did popup

Signed-off-by: bhavanakarwade <[email protected]>

* refactor: worked on error handling

Signed-off-by: bhavanakarwade <[email protected]>

* fix: validations on create did popup

Signed-off-by: bhavanakarwade <[email protected]>

* refactor: mapping function

Signed-off-by: bhavanakarwade <[email protected]>

* fix: resolved sonarlint issues

Signed-off-by: bhavanakarwade <[email protected]>

* fix: input box issues

Signed-off-by: bhavanakarwade <[email protected]>

* refactor: handled role wise conditions

Signed-off-by: bhavanakarwade <[email protected]>

* fix: resolved code duplication errors

Signed-off-by: bhavanakarwade <[email protected]>

* fix: enum values

Signed-off-by: bhavanakarwade <[email protected]>

* fix: added loading chnages

Signed-off-by: bhavanakarwade <[email protected]>

* fix: ledgerconfig object changes

Signed-off-by: bhavanakarwade <[email protected]>

* fix: resolved type errors

Signed-off-by: bhavanakarwade <[email protected]>

---------

Signed-off-by: bhavanakarwade <[email protected]>

* refactor: responsiveness of the component (#699)

* wip: implemented ui for method selection

Signed-off-by: bhavanakarwade <[email protected]>

* wip: modified no ledger screen

Signed-off-by: bhavanakarwade <[email protected]>

* feat: modified ui for create did popup

Signed-off-by: bhavanakarwade <[email protected]>

* refactor: worked on error handling

Signed-off-by: bhavanakarwade <[email protected]>

* fix: validations on create did popup

Signed-off-by: bhavanakarwade <[email protected]>

* refactor: mapping function

Signed-off-by: bhavanakarwade <[email protected]>

* fix: resolved sonarlint issues

Signed-off-by: bhavanakarwade <[email protected]>

* fix: input box issues

Signed-off-by: bhavanakarwade <[email protected]>

* refactor: handled role wise conditions

Signed-off-by: bhavanakarwade <[email protected]>

* fix: resolved code duplication errors

Signed-off-by: bhavanakarwade <[email protected]>

* fix: enum values

Signed-off-by: bhavanakarwade <[email protected]>

* fix: added loading chnages

Signed-off-by: bhavanakarwade <[email protected]>

* fix: ledgerconfig object changes

Signed-off-by: bhavanakarwade <[email protected]>

* fix: resolved type errors

Signed-off-by: bhavanakarwade <[email protected]>

* refactor: modified responsiveness of the component

Signed-off-by: bhavanakarwade <[email protected]>

---------

Signed-off-by: bhavanakarwade <[email protected]>

* feat: manage keycloak client

Signed-off-by: bhavanakarwade <[email protected]>

* refactor: updated env sample file

Signed-off-by: bhavanakarwade <[email protected]>

* fix: error messages issue from create organization and create ecosystem modals. (#698)

* fix:css issues

Signed-off-by: pranalidhanavade <[email protected]>

* fix:sonarcloud issues

Signed-off-by: pranalidhanavade <[email protected]>

* fix:clear error on pop-up close

Signed-off-by: pranalidhanavade <[email protected]>

---------

Signed-off-by: pranalidhanavade <[email protected]>

* fix: css issues (#704)

* refactor: parameter name

Signed-off-by: bhavanakarwade <[email protected]>

* refactor: added query parameter

Signed-off-by: bhavanakarwade <[email protected]>

* fix: remove unnecessary code

Signed-off-by: bhavanakarwade <[email protected]>

* fix: query param issue

Signed-off-by: bhavanakarwade <[email protected]>

* fix: css issues

Signed-off-by: bhavanakarwade <[email protected]>

---------

Signed-off-by: bhavanakarwade <[email protected]>

* feat: add passkey warning message for unsupported devices (#706)

* feat: add passkey warning message for unsupported devices

Signed-off-by: pranalidhanavade <[email protected]>

* feat: add passkey warning message for unsupported devices

Signed-off-by: pranalidhanavade <[email protected]>

* feat: add passkey warning message for unsupported devices

Signed-off-by: pranalidhanavade <[email protected]>

* fix: removed commnets

Signed-off-by: pranalidhanavade <[email protected]>

* feat: add passkey warning message for unsupported devices

Signed-off-by: pranalidhanavade <[email protected]>

* feat: add passkey warning message for unsupported devices

Signed-off-by: pranalidhanavade <[email protected]>

---------

Signed-off-by: pranalidhanavade <[email protected]>

* Feat/passkey warning messages (#707)

* feat: add passkey warning message for unsupported devices

Signed-off-by: pranalidhanavade <[email protected]>

* feat: add passkey warning message for unsupported devices

Signed-off-by: pranalidhanavade <[email protected]>

* feat: add passkey warning message for unsupported devices

Signed-off-by: pranalidhanavade <[email protected]>

* fix: removed commnets

Signed-off-by: pranalidhanavade <[email protected]>

* feat: add passkey warning message for unsupported devices

Signed-off-by: pranalidhanavade <[email protected]>

* feat: add passkey warning message for unsupported devices

Signed-off-by: pranalidhanavade <[email protected]>

* feat: add passkey warning message for unsupported devices

Signed-off-by: pranalidhanavade <[email protected]>

---------

Signed-off-by: pranalidhanavade <[email protected]>

* feat: dedicated agent workflow (#693)

* feat:Working on dedicated agent workflow

Signed-off-by: rohit.shitre <[email protected]>

* feat/dedicated agent ui form

Signed-off-by: pranalidhanavade <[email protected]>

* feat/ conditional rendering of forms

Signed-off-by: pranalidhanavade <[email protected]>

* feat:add support for  dedicated agent

Signed-off-by: pranalidhanavade <[email protected]>

* feat:dedicated agent workflow integration

Signed-off-by: pranalidhanavade <[email protected]>

* feat:dedicated agent workflow integration

Signed-off-by: pranalidhanavade <[email protected]>

* feat:dedicated agent workflow integration

Signed-off-by: pranalidhanavade <[email protected]>

* feat:dedicated agent workflow integration

Signed-off-by: pranalidhanavade <[email protected]>

* feat:dedicated agent workflow integration

Signed-off-by: pranalidhanavade <[email protected]>

* fix: sonarcloud issues

Signed-off-by: pranalidhanavade <[email protected]>

* fix: sonarcloud issues

Signed-off-by: pranalidhanavade <[email protected]>

* fix: sonarcloud issues

Signed-off-by: pranalidhanavade <[email protected]>

* fix: sonarcloud issues

Signed-off-by: pranalidhanavade <[email protected]>

* feat:dedicated agent workflow ui

Signed-off-by: pranalidhanavade <[email protected]>

* feat:dedicated agent workflow

Signed-off-by: pranalidhanavade <[email protected]>

* fix:sonarcloud issues

Signed-off-by: pranalidhanavade <[email protected]>

* fix: duplication issue of sonarcloud

Signed-off-by: pranalidhanavade <[email protected]>

* fix: duplication code issue of sonarcloud

Signed-off-by: pranalidhanavade <[email protected]>

* fix: duplication code issue of sonarcloud

Signed-off-by: pranalidhanavade <[email protected]>

* fix: sonarlint issues

Signed-off-by: pranalidhanavade <[email protected]>

* fix: sonarlint duplication issue

Signed-off-by: pranalidhanavade <[email protected]>

* feat:dedicated agent workflow

Signed-off-by: pranalidhanavade <[email protected]>

* fixed:sonarcloud issues

Signed-off-by: pranalidhanavade <[email protected]>

* fixed:sonarcloud issues

Signed-off-by: pranalidhanavade <[email protected]>

* fix: removed consoles

Signed-off-by: pranalidhanavade <[email protected]>

* feat: support for dedicated agent

Signed-off-by: pranalidhanavade <[email protected]>

* fix: removed consoles

Signed-off-by: pranalidhanavade <[email protected]>

* fix: removed consoles

Signed-off-by: pranalidhanavade <[email protected]>

* fix: removed consoles

Signed-off-by: pranalidhanavade <[email protected]>

* fix: formik validations

Signed-off-by: pranalidhanavade <[email protected]>

* fix:dedicated agent formik validations

Signed-off-by: pranalidhanavade <[email protected]>

* fix: yup formik validations

Signed-off-by: pranalidhanavade <[email protected]>

* fix: static values from enum

Signed-off-by: pranalidhanavade <[email protected]>

---------

Signed-off-by: rohit.shitre <[email protected]>
Signed-off-by: pranalidhanavade <[email protected]>
Co-authored-by: rohit.shitre <[email protected]>

* fix: formik validations for dedicated agent workflow (#708)

* feat:Working on dedicated agent workflow

Signed-off-by: rohit.shitre <[email protected]>

* feat/dedicated agent ui form

Signed-off-by: pranalidhanavade <[email protected]>

* feat/ conditional rendering of forms

Signed-off-by: pranalidhanavade <[email protected]>

* feat:add support for  dedicated agent

Signed-off-by: pranalidhanavade <[email protected]>

* feat:dedicated agent workflow integration

Signed-off-by: pranalidhanavade <[email protected]>

* feat:dedicated agent workflow integration

Signed-off-by: pranalidhanavade <[email protected]>

* feat:dedicated agent workflow integration

Signed-off-by: pranalidhanavade <[email protected]>

* feat:dedicated agent workflow integration

Signed-off-by: pranalidhanavade <[email protected]>

* feat:dedicated agent workflow integration

Signed-off-by: pranalidhanavade <[email protected]>

* fix: sonarcloud issues

Signed-off-by: pranalidhanavade <[email protected]>

* fix: sonarcloud issues

Signed-off-by: pranalidhanavade <[email protected]>

* fix: sonarcloud issues

Signed-off-by: pranalidhanavade <[email protected]>

* fix: sonarcloud issues

Signed-off-by: pranalidhanavade <[email protected]>

* feat:dedicated agent workflow ui

Signed-off-by: pranalidhanavade <[email protected]>

* feat:dedicated agent workflow

Signed-off-by: pranalidhanavade <[email protected]>

* fix:sonarcloud issues

Signed-off-by: pranalidhanavade <[email protected]>

* fix: duplication issue of sonarcloud

Signed-off-by: pranalidhanavade <[email protected]>

* fix: duplication code issue of sonarcloud

Signed-off-by: pranalidhanavade <[email protected]>

* fix: duplication code issue of sonarcloud

Signed-off-by: pranalidhanavade <[email protected]>

* fix: sonarlint issues

Signed-off-by: pranalidhanavade <[email protected]>

* fix: sonarlint duplication issue

Signed-off-by: pranalidhanavade <[email protected]>

* feat:dedicated agent workflow

Signed-off-by: pranalidhanavade <[email protected]>

* fixed:sonarcloud issues

Signed-off-by: pranalidhanavade <[email protected]>

* fixed:sonarcloud issues

Signed-off-by: pranalidhanavade <[email protected]>

* fix: removed consoles

Signed-off-by: pranalidhanavade <[email protected]>

* feat: support for dedicated agent

Signed-off-by: pranalidhanavade <[email protected]>

* fix: removed consoles

Signed-off-by: pranalidhanavade <[email protected]>

* fix: removed consoles

Signed-off-by: pranalidhanavade <[email protected]>

* fix: removed consoles

Signed-off-by: pranalidhanavade <[email protected]>

* fix: formik validations

Signed-off-by: pranalidhanavade <[email protected]>

* fix:dedicated agent formik validations

Signed-off-by: pranalidhanavade <[email protected]>

* fix: yup formik validations

Signed-off-by: pranalidhanavade <[email protected]>

* fix: static values from enum

Signed-off-by: pranalidhanavade <[email protected]>

* fix: polygon formik validation error

Signed-off-by: pranalidhanavade <[email protected]>

* fix: sonarcloud issues

Signed-off-by: pranalidhanavade <[email protected]>

* fix: sonarcloud issues

Signed-off-by: pranalidhanavade <[email protected]>

---------

Signed-off-by: rohit.shitre <[email protected]>
Signed-off-by: pranalidhanavade <[email protected]>
Co-authored-by: rohit.shitre <[email protected]>

* fix: create did button restrictions (#710)

* refactor: parameter name

Signed-off-by: bhavanakarwade <[email protected]>

* refactor: added query parameter

Signed-off-by: bhavanakarwade <[email protected]>

* fix: remove unnecessary code

Signed-off-by: bhavanakarwade <[email protected]>

* fix: query param issue

Signed-off-by: bhavanakarwade <[email protected]>

* fix: css issues

Signed-off-by: bhavanakarwade <[email protected]>

* fix: create did button restrictions

Signed-off-by: bhavanakarwade <[email protected]>

---------

Signed-off-by: bhavanakarwade <[email protected]>

* feat: changed schema payload (#711)

Signed-off-by: tipusinghaw <[email protected]>

* feat/delete wallet and organization (#712)

* feat: delete organization and wallet

Signed-off-by: pranalidhanavade <[email protected]>

* feat: delete org and wallet

Signed-off-by: pranalidhanavade <[email protected]>

* feat: added custom card component for delet card

Signed-off-by: pranalidhanavade <[email protected]>

* fix: removed consoles

Signed-off-by: pranalidhanavade <[email protected]>

* fix: removed unused code

Signed-off-by: pranalidhanavade <[email protected]>

* changes in delete organization svg image

Signed-off-by: pranalidhanavade <[email protected]>

* changes in delete organization svg image

Signed-off-by: pranalidhanavade <[email protected]>

* fix: resolved comments on pull request

Signed-off-by: pranalidhanavade <[email protected]>

* feat: added custom message for ecosystem lead role

Signed-off-by: pranalidhanavade <[email protected]>

* feat: added interfaces into interface file

Signed-off-by: pranalidhanavade <[email protected]>

* fix: resolved comments on pull request

Signed-off-by: pranalidhanavade <[email protected]>

---------

Signed-off-by: pranalidhanavade <[email protected]>

* fix: custom-avatar-css-issues (#714)

Signed-off-by: pranalidhanavade <[email protected]>

* feat: delete wallet and organization (#715)

* feat: delete organization and wallet

Signed-off-by: pranalidhanavade <[email protected]>

* feat: delete org and wallet

Signed-off-by: pranalidhanavade <[email protected]>

* feat: added custom card component for delet card

Signed-off-by: pranalidhanavade <[email protected]>

* fix: removed consoles

Signed-off-by: pranalidhanavade <[email protected]>

* fix: removed unused code

Signed-off-by: pranalidhanavade <[email protected]>

* changes in delete organization svg image

Signed-off-by: pranalidhanavade <[email protected]>

* changes in delete organization svg image

Signed-off-by: pranalidhanavade <[email protected]>

* fix: resolved comments on pull request

Signed-off-by: pranalidhanavade <[email protected]>

* feat: added custom message for ecosystem lead role

Signed-off-by: pranalidhanavade <[email protected]>

* feat: added interfaces into interface file

Signed-off-by: pranalidhanavade <[email protected]>

* fix: resolved comments on pull request

Signed-off-by: pranalidhanavade <[email protected]>

* fix: dark mode css issues

Signed-off-by: pranalidhanavade <[email protected]>

---------

Signed-off-by: pranalidhanavade <[email protected]>

* refactor: added query parameter in get all schemas API (#713)

* refactor: modified bulk issuance payload

Signed-off-by: bhavanakarwade <[email protected]>

* refactor: added query parameter in get all schemas API

Signed-off-by: bhavanakarwade <[email protected]>

---------

Signed-off-by: bhavanakarwade <[email protected]>

* refactor: request schema payload (#717)

Signed-off-by: bhavanakarwade <[email protected]>

* fix:client id and secret encryption (#724)

Signed-off-by: pranalidhanavade <[email protected]>

* Client id client secret encryption (#726)

* fix:client id and secret encryption

Signed-off-by: pranalidhanavade <[email protected]>

* fix: text changes

Signed-off-by: pranalidhanavade <[email protected]>

* fix: env variable changes

Signed-off-by: pranalidhanavade <[email protected]>

---------

Signed-off-by: pranalidhanavade <[email protected]>

* feat: create schema flow for w3c (#718)

* feat: create schema flow for w3c

Signed-off-by: pranalidhanavade <[email protected]>

* feat: w3c create schema flow

Signed-off-by: pranalidhanavade <[email protected]>

* fix: removed consoles

Signed-off-by: pranalidhanavade <[email protected]>

---------

Signed-off-by: pranalidhanavade <[email protected]>

* wip: verification with email (#722)

* wip: email verification

Signed-off-by: bhavanakarwade <[email protected]>

* wip: verification using email

Signed-off-by: bhavanakarwade <[email protected]>

* wip: verification with email

Signed-off-by: bhavanakarwade <[email protected]>

* wip: routes changes for verification dashboard

Signed-off-by: bhavanakarwade <[email protected]>

* wip: routes changes

Signed-off-by: bhavanakarwade <[email protected]>

* wip: Implemented custom dashboard component for veriifcation and issuance dashboard

Signed-off-by: bhavanakarwade <[email protected]>

---------

Signed-off-by: bhavanakarwade <[email protected]>

* feat: Implement w3c issuance with connection,email and bulk. (#721)

* feat: create schema flow for w3c

Signed-off-by: pranalidhanavade <[email protected]>

* feat: w3c create schema flow

Signed-off-by: pranalidhanavade <[email protected]>

* feat: w3c issuance with connections, email and bulk

Signed-off-by: pranalidhanavade <[email protected]>

* fix: removed console statements

Signed-off-by: pranalidhanavade <[email protected]>

* fix: removed console statements in schema summarycard

Signed-off-by: pranalidhanavade <[email protected]>

* fix: fixed changes in issuance payload for w3c

Signed-off-by: pranalidhanavade <[email protected]>

* feat: w3c issuance astro route changes

Signed-off-by: pranalidhanavade <[email protected]>

* fix: added static values from common enum

Signed-off-by: pranalidhanavade <[email protected]>

* fix: w3c button on card

Signed-off-by: pranalidhanavade <[email protected]>

* fix: comments on pull request

Signed-off-by: pranalidhanavade <[email protected]>

* fix: delete organization pop up description messages

Signed-off-by: pranalidhanavade <[email protected]>

---------

Signed-off-by: pranalidhanavade <[email protected]>

* feat: W3C verifcation with connections. (#729)

* feat: w3c verification flow

Signed-off-by: pranalidhanavade <[email protected]>

* fix: changes in create schema to remove version for w3c

Signed-off-by: pranalidhanavade <[email protected]>

* fix: removed commnet

Signed-off-by: pranalidhanavade <[email protected]>

* fix: removed comment

Signed-off-by: pranalidhanavade <[email protected]>

* fix: changes in enum file

Signed-off-by: pranalidhanavade <[email protected]>

* fix: removed consoles

Signed-off-by: pranalidhanavade <[email protected]>

* fix: schema creddef popup on verification list

Signed-off-by: pranalidhanavade <[email protected]>

* fix: schema creddef popup on verification list

Signed-off-by: pranalidhanavade <[email protected]>

* fix: sonarlint issues

Signed-off-by: pranalidhanavade <[email protected]>

* fix: sonarlint issues

Signed-off-by: pranalidhanavade <[email protected]>

* fix: sonarlint issues by optimizing code

Signed-off-by: pranalidhanavade <[email protected]>

---------

Signed-off-by: pranalidhanavade <[email protected]>

* fiz: removed unwanted code from astro components

Signed-off-by: pranalidhanavade <[email protected]>

---------

Signed-off-by: bhavanakarwade <[email protected]>
Signed-off-by: pranalidhanavade <[email protected]>
Signed-off-by: rohit.shitre <[email protected]>
Signed-off-by: tipusinghaw <[email protected]>
Co-authored-by: deno-deploy[bot] <75045203+deno-deploy[bot]@users.noreply.github.com>
Co-authored-by: bhavanakarwade <[email protected]>
Co-authored-by: bhavanakarwade <[email protected]>
Co-authored-by: shitrerohit <[email protected]>
Co-authored-by: rohit.shitre <[email protected]>
Co-authored-by: tipusinghaw <[email protected]>
  • Loading branch information
7 people authored Aug 16, 2024
1 parent dd980ba commit 0ed8158
Show file tree
Hide file tree
Showing 40 changed files with 1,687 additions and 642 deletions.
7 changes: 4 additions & 3 deletions src/api/BulkIssuance.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { SchemaTypes } from '../common/enums';
import { apiRoutes } from '../config/apiRoutes';
import { storageKeys } from '../config/CommonConstant';
import {
Expand All @@ -8,7 +9,7 @@ import { axiosGet, axiosPost } from '../services/apiRequests';
import { getFromLocalStorage } from './Auth';
import type { IConnectionListAPIParameter } from './connection';

export const getSchemaCredDef = async (schemaType: string) => {
export const getSchemaCredDef = async (schemaType: SchemaTypes) => {
const orgId = await getFromLocalStorage(storageKeys.ORG_ID);
const url = `${apiRoutes.organizations.root}/${orgId}${apiRoutes.Issuance.bulk.credefList}?schemaType=${schemaType}`;
const axiosPayload = {
Expand All @@ -24,7 +25,7 @@ export const getSchemaCredDef = async (schemaType: string) => {
}
};

export const DownloadCsvTemplate = async (templateId: string, schemaType: string) => {
export const DownloadCsvTemplate = async (templateId: string, schemaType: SchemaTypes) => {
const orgId = await getFromLocalStorage(storageKeys.ORG_ID);
const url = `${apiRoutes.organizations.root}/${orgId}${apiRoutes.Issuance.download}`;

Expand All @@ -48,7 +49,7 @@ export const DownloadCsvTemplate = async (templateId: string, schemaType: string
export const uploadCsvFile = async (
payload: { file: Uint8Array | Blob; fileName: string },
templateId: string,
schemaType: string
schemaType: SchemaTypes
) => {
const orgId = await getFromLocalStorage(storageKeys.ORG_ID);
const url = `${apiRoutes.organizations.root}/${orgId}${apiRoutes.Issuance.bulk.uploadCsv}?templateId=${templateId}&schemaType=${schemaType}`;
Expand Down
1 change: 0 additions & 1 deletion src/api/Schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { getHeaderConfigs } from "../config/GetHeaderConfigs";
export const getAllSchemas = async ({itemPerPage, page, allSearch }: GetAllSchemaListParameter, schemaType?: string) => {
const token = await getFromLocalStorage(storageKeys.TOKEN)
const ledgerId = await getFromLocalStorage(storageKeys.LEDGER_ID)

const details = {
url: `${apiRoutes.Platform.getAllSchemaFromPlatform}?pageSize=${itemPerPage}&searchByText=${allSearch}&pageNumber=${page}&ledgerId=${ledgerId}&schemaType=${schemaType}`,
config: {
Expand Down
9 changes: 5 additions & 4 deletions src/api/issuance.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { CredentialType, SchemaType } from '../common/enums';
import { apiRoutes } from '../config/apiRoutes';
import { storageKeys } from '../config/CommonConstant';
import {
Expand Down Expand Up @@ -45,9 +46,9 @@ export const getCredentialDefinitions = async (schemaId: string) => {
}
};

export const issueCredential = async (data: object) => {
export const issueCredential = async (data: object, credentialType:SchemaType) => {
const orgId = await getFromLocalStorage(storageKeys.ORG_ID);
const url = `${apiRoutes.organizations.root}/${orgId}${apiRoutes.Issuance.issueCredential}`;
const url = `${apiRoutes.organizations.root}/${orgId}${apiRoutes.Issuance.issueCredential}?credentialType=${credentialType}`;
const payload = data;

const axiosPayload = {
Expand All @@ -64,9 +65,9 @@ export const issueCredential = async (data: object) => {
}
};

export const issueOobEmailCredential = async (data: object) => {
export const issueOobEmailCredential = async (data: object, credentialType:CredentialType) => {
const orgId = await getFromLocalStorage(storageKeys.ORG_ID);
const url = `${apiRoutes.organizations.root}/${orgId}${apiRoutes.Issuance.issueOobEmailCredential}`;
const url = `${apiRoutes.organizations.root}/${orgId}${apiRoutes.Issuance.issueOobEmailCredential}?credentialType=${credentialType}`;
const payload = data;

const axiosPayload = {
Expand Down
6 changes: 3 additions & 3 deletions src/api/verification.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type { IssueCredential } from '../common/enums';
import type { IssueCredential, RequestType } from '../common/enums';
import { apiRoutes } from '../config/apiRoutes';
import { storageKeys } from '../config/CommonConstant';
import { getHeaderConfigs } from '../config/GetHeaderConfigs';
import { axiosDelete, axiosGet, axiosPost } from '../services/apiRequests';
import { getFromLocalStorage } from './Auth';
import type { IConnectionListAPIParameter } from './connection';

export const verifyCredential = async (payload: any) => {
export const verifyCredential = async (payload: object, requestType:RequestType) => {
const orgId = await getFromLocalStorage(storageKeys.ORG_ID);
const url = `${apiRoutes.organizations.root}/${orgId}${apiRoutes.Verification.verifyCredential}`;
const url = `${apiRoutes.organizations.root}/${orgId}${apiRoutes.Verification.verifyCredential}?requestType=${requestType}`;
const axiosPayload = {
url,
payload,
Expand Down
28 changes: 27 additions & 1 deletion src/common/enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export enum ProofRequestStateUserText {

export enum SchemaType {
INDY = 'indy',
W3C = 'w3c'
W3C = 'json'
}
export enum IssueCredentialUserText {
offerSent = 'Offered',
Expand Down Expand Up @@ -124,4 +124,30 @@ export enum Ledgers {
INDY = 'indy',
POLYGON = 'polygon',
NO_LEDGER = 'noLedger'
}

export enum SchemaTypeValue {
INDY = 'indy',
POLYGON = 'polygon',
NO_LEDGER = 'no_ledger'
}

export enum SchemaTypes {
schema_INDY = 'indy',
schema_W3C = 'w3c'
}

export enum CredentialType {
INDY = 'indy',
JSONLD = 'jsonld'
}

export enum RequestType {
INDY = 'indy',
PRESENTATION_EXCHANGE = 'presentationExchange'
}

export enum ProofType {
polygon = 'EcdsaSecp256k1Signature2019',
no_ledger = 'Ed25519Signature2018'
}
2 changes: 1 addition & 1 deletion src/commonComponents/ConfirmationModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface IProps {
openModal: boolean;
closeModal: (flag: boolean) => void;
onSuccess: (flag: boolean) => void;
message: string | ReactElement;
message: string | ReactElement |React.ReactNode;
isProcessing: boolean;
success: string | null;
failure: string | null;
Expand Down
74 changes: 74 additions & 0 deletions src/commonComponents/Dashboard.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
import React from 'react';
import { Card } from 'flowbite-react';
import BackButton from '../commonComponents/backbutton';
import BreadCrumbs from '../components/BreadCrumbs'

const Dashboard = ({ title, options, backButtonPath }) => {
return (
<div className="px-4 pt-2 h-full h-[700px]">
<div className="mt-1">
<BreadCrumbs />
</div>
<div className="mb-2 flex justify-between items-center relative">
<h1 className="text-xl font-semibold text-gray-900 sm:text-2xl dark:text-white">
{title}
</h1>
<BackButton path={backButtonPath} />
</div>
<div className="px-6 pt-6 bg-white border border-gray-200 rounded-lg shadow-sm 2xl:col-span-2 dark:border-gray-700 dark:bg-gray-800">
<p className="text-gray-900 text-xl text-start font-medium dark:text-white">
Select the appropriate action
</p>
<div className="grid grid-cols-1 lg:grid-cols-3 gap-8 pb-16 pt-12">
{options.map((option) => (
<Card
key={option.heading}
className={`${
option.path
? 'custom-card group transform transition duration-500 ease-in-out overflow-hidden overflow-ellipsis border border-gray-200 shadow-md hover:scale-105 cursor-pointer dark:hover:bg-primary-700 hover:bg-primary-700'
: 'cursor-not-allowed bg-gray-300 text-gray-500 dark:border-gray-600 dark:bg-gray-700'
}`}
style={{
maxHeight: '100%',
overflow: 'auto',
height: '168px',
color: 'inherit',
}}
onClick={() => option.path && (window.location.href = option.path)}
>
<div
className={`flex items-center min-[401px]:flex-nowrap flex-wrap ${
option.path ? 'group-hover:text-white' : ''
}`}
style={{ color: 'inherit' }}
>
<div className="ml-4">
<h5
className={`text-2xl font-semibold ${
option.path
? 'text-primary-700 dark:text-white group-hover:text-white'
: 'text-gray-500'
} pb-2`}
>
{option.heading}
</h5>
<p
className={`text-sm ${
option.path
? 'text-gray-700 dark:text-white group-hover:text-white'
: 'text-gray-500'
}`}
>
{option.description}
</p>
</div>
</div>
</Card>
))}
</div>
</div>
</div>
);
};

export default Dashboard;
Loading

0 comments on commit 0ed8158

Please sign in to comment.