Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #186

Merged
merged 55 commits into from
Apr 16, 2024
Merged

Dev #186

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
3ec2944
resolved onboarding page mismatch content
sairanjit Jul 3, 2023
f6f9df9
Design home screen
sairanjit Jul 3, 2023
cebfab6
updated design home screen changes
sairanjit Jul 4, 2023
0dc8d68
removed notification icon from home page
sairanjit Jul 5, 2023
8d4132d
added connection,requestcount
sairanjit Jul 5, 2023
0ef5aa8
localization,home,onboarding image change
sairanjit Jul 7, 2023
f03759e
resolved-home-page-credential-text-issue
sairanjit Jul 7, 2023
bf01aff
resolved onboarding responsive UI issue
sairanjit Jul 10, 2023
169948c
fix:badge text
sairanjit Jul 10, 2023
8076b58
fix:onboarding UI title text color
sairanjit Jul 10, 2023
3bd328c
feat:updation Adeya 0.3.0 to 0.4.0
sairanjit Jul 10, 2023
3c907c0
fix:label text of in agent config
sairanjit Jul 11, 2023
8e2ebc6
change comment text
sairanjit Jul 11, 2023
c6cd9b9
fix:onboarding bodytext style and Terms-conditions text
sairanjit Jul 12, 2023
7b484ad
feat: new app setup (#44)
sairanjit Aug 8, 2023
b38f1ee
fix:#97issue-text-missing (#49)
poonam-ghewande Aug 18, 2023
019a75e
docs: create pull request template
amitpadmani-awts Aug 31, 2023
1b0b4ac
docs: Create LICENSE.md
ajile-in Sep 8, 2023
742224d
merge to main (#86)
sairanjit Sep 25, 2023
6921fde
merge develop to main (#136)
sairanjit Nov 10, 2023
850451c
Bump axios from 1.4.0 to 1.6.0 (#137)
dependabot[bot] Nov 10, 2023
63016a4
Bump react-devtools-core from 4.28.0 to 4.28.5 (#130)
dependabot[bot] Nov 10, 2023
957b803
Bump browserify-sign from 4.2.1 to 4.2.2 (#129)
dependabot[bot] Nov 10, 2023
d47096a
Bump activesupport from 6.1.7.4 to 7.1.1 (#127)
dependabot[bot] Nov 10, 2023
b7861ea
Bump @babel/traverse from 7.22.8 to 7.23.2 (#128)
dependabot[bot] Nov 10, 2023
10d0ff9
Develop to main (#140)
sairanjit Nov 10, 2023
3a056b5
fix: close contact modal after deletion (#141)
poonam-ghewande Nov 19, 2023
1dcb170
fix: import wallet failure scenario (#142)
sairanjit Nov 20, 2023
8db0053
fix: scanning qrcode multiple times (#143)
sairanjit Nov 21, 2023
54de488
feat/social-share certificate (#144)
poonam-ghewande Nov 21, 2023
67fd290
feat: deeplink with universal link (#145)
sairanjit Nov 22, 2023
d090679
fix deep link issue (#147)
sairanjit Nov 23, 2023
b134b39
feat: add remote verification templates (#148)
sairanjit Nov 24, 2023
2419f97
fix: close contact modal after deletion (#141)
poonam-ghewande Nov 19, 2023
ff1a060
feat/social-share certificate (#144)
poonam-ghewande Nov 21, 2023
dda74e4
refactor: update exporeIcon on bottom tab-bar (#149)
poonam-ghewande Nov 27, 2023
bf5c852
fix: credential detail modal button container (#155)
sairanjit Nov 29, 2023
fb184f2
Fix/remove contact (#160)
poonam-ghewande Dec 1, 2023
ddda2c7
Style/UI update (#163)
poonam-ghewande Dec 5, 2023
3211293
Fix/bug biometric enable pin enter (#164)
poonam-ghewande Dec 11, 2023
0014337
refactor: enhance bottom bar design (#165)
poonam-ghewande Dec 15, 2023
c2c934d
feat: add dev deep link configuration (#168)
sairanjit Feb 7, 2024
29ca462
Revert "Enhancement/bottom bar design" (#171)
sairanjit Feb 27, 2024
7abbb09
refactor: added new parameter in push notification (#172)
sairanjit Feb 27, 2024
2ce25a6
feat: add url shortening (#173)
sairanjit Mar 8, 2024
4130e23
feat: add polygon module (#179)
sairanjit Apr 3, 2024
bd20544
fix: proof predicate issue (#181)
amitpadmani-awts Apr 12, 2024
e6e5ff9
fix: credential detail screen (#182)
amitpadmani-awts Apr 12, 2024
a4d5b49
fix: credential UI issue once app update (#183)
amitpadmani-awts Apr 15, 2024
59c5d0d
chore: bump iOS version (#185)
sairanjit Apr 16, 2024
7e5c039
Update issue templates
ajile-in Mar 19, 2024
62dbfe0
Create DMP_2024.yml (#176)
amitpadmani-awts Mar 25, 2024
420fe02
Update README.md
ajile-in Apr 9, 2024
e9a0bea
Merge branch 'main' of https://github.com/credebl/adeya-wallet into dev
amitpadmani-awts Apr 16, 2024
bb51cab
refactor: delete unused file
amitpadmani-awts Apr 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ MEDIATOR_URL=
MEDIATOR_USE_PUSH_NOTIFICATIONS=true
MEDIATOR_LABEL=Mediator

# Client code to use push notifications
CLIENT_CODE=CLIENT_CODE

# OCA
OCA_URL=https://raw.githubusercontent.com/credebl/credebl-aries-oca-bundles/release

Expand Down
3 changes: 3 additions & 0 deletions App.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/* eslint-disable @typescript-eslint/no-var-requires */
global.Buffer = require('buffer').Buffer

import { AdeyaAgentProvider } from '@adeya/ssi'
import * as React from 'react'
import { useEffect, useMemo } from 'react'
Expand Down
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ android {
applicationId "id.credebl.adeya"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 8
versionName "1.0.5"
versionCode 11
versionName "1.0.8"

missingDimensionStrategy 'react-native-camera', 'general'
}
Expand Down
2 changes: 2 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
<data android:scheme="https" />

<data android:host="agent.credebl.id" />
<data android:host="dev-agent.credebl.id" />
<data android:host="s3.ap-south-1.amazonaws.com" />
</intent-filter>

</activity>
Expand Down
7 changes: 7 additions & 0 deletions app/assets/img/active-explore-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/assets/img/adeya-logo-secondary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/components/misc/CredentialCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const CredentialCard: React.FC<CredentialCardProps> = ({
hasAltCredentials={hasAltCredentials}
proof
elevated
onPress={onPress}
/>
)
}
Expand Down
6 changes: 2 additions & 4 deletions app/components/misc/SharedProofData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,8 @@ const SharedDataCard: React.FC<{ sharedData: GroupedSharedProofDataItem }> = ({
return (
<View key={item.name} style={[styles.attributeContainer]}>
<Text style={styles.attributeName}>{item.label || item.name}</Text>
{!parsedPredicate && <AttributeValue style={styles.attributeValue} field={item as Attribute} shown={true} />}
{item instanceof Predicate && (
<Text style={styles.attributeValue}>{`${parsedPredicate?.pType} ${parsedPredicate?.pValue}`}</Text>
)}
{!item?.pType && <AttributeValue style={styles.attributeValue} field={item as Attribute} shown={true} />}
{item?.pType && <Text style={styles.attributeValue}>{`${item?.pType} ${item?.pValue}`}</Text>}
</View>
)
}
Expand Down
48 changes: 46 additions & 2 deletions app/components/modals/CommonRemoveModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,18 @@ const CommonRemoveModal: React.FC<CommonRemoveModalProps> = ({ usage, visible, d
...TextTheme.modalNormal,
marginTop: 25,
},
buttonsContainer: {
paddingTop: 10,
paddingBottom: 25,
},
})

const titleForConfirmButton = (): string => {
switch (usage) {
case ModalUsage.ContactRemoveWithCredentialsOffer:
return t('ContactDetails.GoToCredentialsOffer')
case ModalUsage.ContactRemoveWithProofRequest:
return t('ContactDetails.GoToProofRequest')
case ModalUsage.ContactRemove:
return t('ContactDetails.RemoveContact')
case ModalUsage.ContactRemoveWithCredentials:
Expand All @@ -142,6 +150,10 @@ const CommonRemoveModal: React.FC<CommonRemoveModalProps> = ({ usage, visible, d

const labelForConfirmButton = (): string => {
switch (usage) {
case ModalUsage.ContactRemoveWithCredentialsOffer:
return t('ContactDetails.GoToCredentialsOffer')
case ModalUsage.ContactRemoveWithProofRequest:
return t('ContactDetails.GoToProofRequest')
case ModalUsage.ContactRemove:
return t('ContactDetails.RemoveContact')
case ModalUsage.ContactRemoveWithCredentials:
Expand All @@ -156,6 +168,8 @@ const CommonRemoveModal: React.FC<CommonRemoveModalProps> = ({ usage, visible, d
const testIdForConfirmButton = (): string => {
switch (usage) {
case ModalUsage.ContactRemove:
case ModalUsage.ContactRemoveWithCredentialsOffer:
case ModalUsage.ContactRemoveWithProofRequest:
case ModalUsage.CredentialRemove:
return testIdWithKey('ConfirmRemoveButton')
case ModalUsage.ContactRemoveWithCredentials:
Expand All @@ -171,6 +185,8 @@ const CommonRemoveModal: React.FC<CommonRemoveModalProps> = ({ usage, visible, d
const testIdForCancelButton = (): string => {
switch (usage) {
case ModalUsage.ContactRemove:
case ModalUsage.ContactRemoveWithCredentialsOffer:
case ModalUsage.ContactRemoveWithProofRequest:
case ModalUsage.CredentialRemove:
return testIdWithKey('CancelRemoveButton')
case ModalUsage.ContactRemoveWithCredentials:
Expand Down Expand Up @@ -250,6 +266,28 @@ const CommonRemoveModal: React.FC<CommonRemoveModalProps> = ({ usage, visible, d
</View>
</View>
)
case ModalUsage.ContactRemoveWithCredentialsOffer:
return (
<View style={[{ marginBottom: 25 }]}>
<View style={[{ marginBottom: 25 }]}>
<Text style={[TextTheme.modalTitle]}>{t('ContactDetails.UnableToRemoveTitle')}</Text>
</View>
<View>
<Text style={[styles.bodyText]}>{t('ContactDetails.UnableToRemoveCaptionLabel')}</Text>
</View>
</View>
)
case ModalUsage.ContactRemoveWithProofRequest:
return (
<View style={[{ marginBottom: 25 }]}>
<View style={[{ marginBottom: 25 }]}>
<Text style={[TextTheme.modalTitle]}>{t('ContactDetails.UnableToRemoveTitle')}</Text>
</View>
<View>
<Text style={[styles.bodyText]}>{t('ContactDetails.UnableToRemoveCaptionRequestLabel')}</Text>
</View>
</View>
)
case ModalUsage.CredentialOfferDecline:
return (
<View style={[{ marginBottom: 25 }]}>
Expand Down Expand Up @@ -317,11 +355,17 @@ const CommonRemoveModal: React.FC<CommonRemoveModalProps> = ({ usage, visible, d
onPress={onSubmit}
disabled={disabled}
buttonType={
usage === ModalUsage.ContactRemoveWithCredentials ? ButtonType.ModalPrimary : ButtonType.ModalCritical
usage === ModalUsage.ContactRemoveWithCredentials
? ButtonType.ModalPrimary
: ButtonType.ModalCritical && usage === ModalUsage.ContactRemoveWithCredentialsOffer
? ButtonType.ModalPrimary
: ButtonType.ModalCritical && usage === ModalUsage.ContactRemoveWithProofRequest
? ButtonType.ModalPrimary
: ButtonType.ModalCritical
}
/>
</View>
<View style={[{ paddingTop: 10 }]}>
<View style={styles.buttonsContainer}>
<Button
title={t('Global.Cancel')}
accessibilityLabel={t('Global.Cancel')}
Expand Down
16 changes: 16 additions & 0 deletions app/components/record/RecordField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,22 @@ const RecordField: React.FC<RecordFieldProps> = ({
},
})

const isJSON = (text: string) => {
if (typeof text !== 'string') {
return false
}
try {
JSON.parse(text)
return true
} catch (error) {
return false
}
}

if (isJSON(field?.value)) {
return
}

return (
<View style={styles.container}>
<View style={styles.valueContainer}>
Expand Down
4 changes: 4 additions & 0 deletions app/localization/en/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,11 @@ const translation = {
"RemoveCaption": "To add credentials, the issuing organization needs to be a Contact.",
"UnableToRemoveTitle": "Unable to remove Contact",
"UnableToRemoveCaption": "Unable to remove because there are credentials issued by this Contact in your wallet. Remove the credentials first then remove this Contact.",
"UnableToRemoveCaptionLabel": "Unable to remove because there are credential offer issued by this Contact in your wallet. Remove the credentials offer first then remove this Contact.",
"UnableToRemoveCaptionRequestLabel": "Unable to remove because there are proof request issued by this Contact in your wallet. Remove the Proof request first then remove this Contact.",
"GoToCredentials": "Go to Credentials",
"GoToCredentialsOffer": "Go to CredentialsOffer",
"GoToProofRequest": "Go to ProofRequest",
"RemoveContact": "Remove Contact",
"ContactRemoved": "Contact removed",
"RemoveContactMessageTop": "By removing this Contact you'll no longer be able to:",
Expand Down
2 changes: 1 addition & 1 deletion app/navigators/TabStack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const TabStack: React.FC = () => {
tabBarIconStyle: styles.tabBarIcon,
tabBarIcon: ({ focused }) => (
<View style={{ ...TabTheme.tabBarContainerStyle, justifyContent: showLabels ? 'flex-end' : 'center' }}>
<Assets.svg.ExploreIcon />
{focused ? <Assets.svg.ExploreIconActive /> : <Assets.svg.ExploreIcon />}
{showLabels && (
<Text
style={{
Expand Down
73 changes: 73 additions & 0 deletions app/onboardingStyles.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
import { StyleSheet } from 'react-native'
import { widthPercentageToDP as wp, heightPercentageToDP as hp } from 'react-native-responsive-screen'

export const styles = StyleSheet.create({
container: {
height: hp('100%'),
width: wp('100%'),
paddingTop: hp('3%'),
padding: hp('1%'),
},
headerText: {
alignSelf: 'center',
marginBottom: hp('2.5%'),
justifyContent: 'center',
color: '#1F4EAD',
paddingBottom: hp('2%'),
fontSize: 28,
},
backgroundImage: {
height: 245,
width: 343,
alignSelf: 'center',
},

Image: {
width: 78,
height: 78,
flexShrink: 0,
position: 'absolute',
right: 100,
top: 70,
left: 132,
bottom: 0,
},
qrImage: {
width: wp('21%'),
height: wp('21%'),
flexShrink: 0,
position: 'absolute',
right: wp('20%'),
top: hp('12.5%'),
left: wp('37.5%'),
},
bodyText: {
marginTop: hp('2.5%'),
display: 'flex',
width: wp('80%'),
flexDirection: 'column',
flexShrink: 0,
fontSize: hp('2.5%'),
textAlign: 'center',
color: '#2289F7',
},
descriptionText: {
alignSelf: 'center',
marginHorizontal: wp('1%'),
},
startedButtonContainer: {
marginTop: 'auto',
margin: wp('5%'),
},
guideImages: {
alignItems: 'center',
},
ScrollView: {
flex: 1,
padding: hp('0.5%'),
},
endPageContainer: {
height: '100%',
justifyContent: 'center',
},
})
Loading
Loading