[INJI-609]: Dynamic VC Render (#1140)

* [INJI-609]: render vc claims dynamically using feature toggle

Signed-off-by: Vijay <94220135+vijay151096@users.noreply.github.com>

* [INJI-609]: remove unwanted snippet

Signed-off-by: Vijay <94220135+vijay151096@users.noreply.github.com>

* [INJI-609]: add tooltip and ellipsis for longer text

Signed-off-by: Vijay <94220135+vijay151096@users.noreply.github.com>

* [INJI-609]: add tooltip and ellipsis for longer text

Signed-off-by: Vijay <94220135+vijay151096@users.noreply.github.com>

---------

Signed-off-by: Vijay <94220135+vijay151096@users.noreply.github.com>
This commit is contained in:
vijay151096
2024-01-08 10:54:46 +05:30
committed by GitHub
parent 074ae549bc
commit a2adcabc88
24 changed files with 1069 additions and 157 deletions

View File

@@ -1,5 +1,5 @@
import {Platform} from 'react-native';
import {MIMOTO_HOST, ESIGNET_HOST, DEBUG_MODE} from 'react-native-dotenv';
import {DEBUG_MODE, ESIGNET_HOST, MIMOTO_HOST} from 'react-native-dotenv';
import {Argon2iConfig} from './commonUtil';
import {VcIdType} from '../types/VC/ExistingMosipVC/vc';
@@ -31,9 +31,9 @@ export const APP_ID_LENGTH = 12;
// Numbers and Upper case Alphabets without confusing characters like 0, 1, 2, I, O, Z
// prettier-ignore
export const APP_ID_DICTIONARY = [
'3', '4', '5', '6', '7', '8', '9',
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'J', 'K', 'L',
'M', 'N', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y',
'3', '4', '5', '6', '7', '8', '9',
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'J', 'K', 'L',
'M', 'N', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y',
];
export function isIOS(): boolean {
@@ -74,3 +74,23 @@ export type IndividualId = {
export const NETWORK_REQUEST_FAILED = 'Network request failed';
export const REQUEST_TIMEOUT = 'request timedout';
export const BIOMETRIC_CANCELLED = 'User has cancelled biometric';
export const CARD_VIEW_DEFAULT_FIELDS = ['fullName'];
export const DETAIL_VIEW_DEFAULT_FIELDS = [
'fullName',
'gender',
'phone',
'dateOfBirth',
'email',
'address',
];
//todo UIN & VID to be removed once we get the fields in the wellknown endpoint
export const CARD_VIEW_ADD_ON_FIELDS = ['idType', 'UIN', 'VID'];
export const DETAIL_VIEW_ADD_ON_FIELDS = [
'UIN',
'VID',
'status',
'credentialRegistry',
];