mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-07 20:53:54 -05:00
* Removed async at downloadModal in auth.ts
* Removed debug.keystore file
* fix(INJI-187) : [Vijay|Alka] Fixed Purple Theme Related Bugs and Duplicate Permission popup issue.
* fix(INJI-187) : [Vijay] fix about inji documentation page redirection
* Fixes in ui-revamp-release
* fix:vcsharing and wallet binding
* Removed key names version, tuvali-version in locals of AboutInji obj.
* feat(INJI-172): display error popup to restrict vc share when audit entry is not possible
audit entry cannot be made when the device remaining storage has reached the minimumStorageRequiredForAuditEntryInMB
Issue Link https://mosip.atlassian.net/browse/INJI-172
* Reverted lst commit and removed version number in locals
* fix:vcsharing and wallet binding
* removing logger
* fix(INJI-187) : [Vijay] fix welcome screen auth issue, hide the inji tour guide option and fix the tuvali version in about inji
* fix(INJI-92): [Bhargavi] show proper error message in the UI for the deactivated UIN & VID
Issue Link https://mosip.atlassian.net/browse/INJI-92
* fix(INJI-187) : [Vijay] add missing literals in hindi
* feat[#190]:[Pooja] fix back button on incoming VC page to show QR when clicked
* refator(INJI-172): [Kiruthika] rename the config key for storage limit to minimumStorageRequiredInMB
Issue Link https://mosip.atlassian.net/browse/INJI-172
* refator(INJI-172): [Kiruthika] rename translation path of storage limit reached error shown while adding / receiving VC
Issue Link https://mosip.atlassian.net/browse/INJI-172
* refator(INJI-172): [Kiruthika] rename storage limit reached for making audit entry variable
Issue Link https://mosip.atlassian.net/browse/INJI-172
* refator(INJI-172): [Kiruthika] remove unused context storeError in vcItem machine
Issue Link https://mosip.atlassian.net/browse/INJI-172
* fix:logout crash
* feat(#162): [Tilak|Pooja] Create Short UUID using npm lib and display it in about page
* [Release 03-07-2023]fix:app crash on logout and remove checkbox and kebab on vc while sharing
* feat(#162): [Tilak|Pooja] Update app id ux and use alphanum_upper of length 12 for uuid
* feat(#162): [Tilak|Pooja] Add copy button for app id
* feat(#162): [Tilak|Pooja] Update app id when settings context is present in db but not app id
* feat[#162]:[Pooja] add translations for app ID
* feat[#162]:[Pooja] add translations for copy button
* [Release 03-07-2023]add:loader while saving credential registry
* [Release 03-07-2023]fix:saving credentialRegistry
* fix(INJI-206): [Vijay] fix mmkv storage issue, environment url change persistance and literal change
* fix(INJI-206): [Vijay] add comment on the getFileName method
* Adjusted splash-screen & updated locals
* Cleared existing develop changes in PR
* Cleared comments mentioned in locals
* refator(INJI-172): [Kiruthika] modify storage limit reached error message while adding or receiving card
Issue Link https://mosip.atlassian.net/browse/INJI-172
* refator(INJI-172): [Kiruthika] add storage limit reached error message in spanish locale
Issue Link https://mosip.atlassian.net/browse/INJI-172
* refator(INJI-172): [Kiruthika] move storage limit reached check function to storage class
Issue Link https://mosip.atlassian.net/browse/INJI-172
* refator(INJI-172): [Kiruthika] add missing storage limit reached error message in strings.json file
Issue Link https://mosip.atlassian.net/browse/INJI-172
* fix(INJI-206): [Vijay] remove vc from RNFS when vc metadata is removed from MMKV
* refator(INJI-172): [Kiruthika] extract service and action
Issue Link https://mosip.atlassian.net/browse/INJI-172
* refator(INJI-172): [Kiruthika] remove MB from min storage limit property name
Issue Link https://mosip.atlassian.net/browse/INJI-172
* refator(INJI-172): [Kiruthika] extract function for displayng storage limit reached error
Issue Link https://mosip.atlassian.net/browse/INJI-172
* fix(INJI-172): [Kiruthika] show storage limit popup on minimum storage limit reached criteria when bluetooth is off
Issue Link https://mosip.atlassian.net/browse/INJI-172
* Test check
* refator(INJI-172): [Kiruthika] rename the config key of storage limit
Issue Link https://mosip.atlassian.net/browse/INJI-172
* Calculate HMAC and store Encrypted HMAC in Database
* Revert Test Check
* fix(INJI-212): [Vijay] fix qrlogin success popup redirection to history issue and vc sharing in progress screen issue
* Change error pop up text in my vc's tab for tampered data
* Revert english json changes
* refator(INJI-172): [Kiruthika] extract service and action
Issue Link https://mosip.atlassian.net/browse/INJI-172
* refator(INJI-172): [Kiruthika] replace equality check of boolean with type conversion
Issue Link https://mosip.atlassian.net/browse/INJI-172
* Add encoding for decryption of HMAC
* [Release 03-07-2023]fix:sharing timeout message displaying always
* feat(#162): [Tilak|Pooja] remove unnecessary style from purple
* [Release 03-07-2023]fix:sharing timeout message displaying always
* [Release 03-07-2023]fix:navigation to history tab after successfully receiving VC
* [Release 03-07-2023]fix:navigation to history tab after successfully receiving VC
* [Release 03-07-2023]fix:navigation to history tab after successfully receiving VC
* refator(INJI-182): [Kiruthika] send app id as X-AppId in header in the API requests
Issue Link https://mosip.atlassian.net/browse/INJI-182
* fix(INJI-210): [Bhargavi] show the home screen after closing the success status overlay
Issue Link https://mosip.atlassian.net/browse/INJI-210
* feat(#162): [Tilak|Pooja] extract app id constants.
* refator(INJI-182): [Kiruthika] send app id in header only for the residentmobileapp API requests
Issue Link https://mosip.atlassian.net/browse/INJI-182
* feat(#INJI-178) [Adityan] calculate and store encrypted HMAC hash of vc's metadata in database
* feat(#INJI-178) [Adityan] calculate and store encrypted HMAC hash of vc's metadata in database and fix
* feat(#INJI-173) [Adityan] Added a beta release workflow when tagged
* Refactor the code and remove unused params
* Refactor the code and remove unused parameters
* feat(#162): [Tilak|Pooja] fix merge issue in hindi and format app id dictionary
* Refactor the code and remove debug logs
* feat(#162): [Tilak|Pooja] remove unused parameters in settings.ts
* feat(INJI-149): add a popup when keychain fails to get password
Reason: when keychain.getGenericPassword errors due to a false/falsy response,
the state machine goes ahead and clears the MMKV store and the VC
directory as without the key the encrypted data is not meaningful,
it may so happen that the keychain/keystore is not unlocked yet as
most modern mobile OSes can choose to lock access to it when the phone
is locked
Fix: earlier the state machine would go and clear the datastores without
user intervention, this fix will give the user a prompt if encrypted
VCs exist on app-data and allow user to try reading the keychain once
again before silently deleting everything
Co-authored-by: KiruthikaJeyashankar <81218987+KiruthikaJeyashankar@users.noreply.github.com>
Co-authored-by: Alka <prasadalka1998@gmail.com>
* feat(INJI-149): add DualMessageOverlay component
details about the component:
- has two buttons tryAgain & cancel each occupying half the space in the
row
- kludge: uses similar styling for both themes
- TODO: override the width styles in-place instead
- this component should not be used for production as this is strictly
temporary for narrowing down in on bugs
Other changes:
- removed additional button from original MessageOverlay component
* fix(INJI-149): remove unavailable action from store.ts
* chore: add missed out Podfile.lock changes
* feat(INJI-149): remove extra button component of half width
* feat(INJI-149): make DualMessageOverlay button gradient type
Co-authored-by: <vijay@Vijays-MacBook-Pro.local>
* chore: add check for Verifiable document store init
other changes:
- add Podfile.lock
- remove debug logs
* chore: bump up the tuvali version to v0.4.2 for release 18-07-2023
* fix: remove double quotes to the margin top property in send vc screen
* feat(#162): [Tilak] fix ios logout crash by navigating on timeout
* feat(#162): [Tilak] fix ios logout crash by navigating on timeout
* fix(INJI-178): check for tampered VC without considering pinned state
Issue Link https://mosip.atlassian.net/browse/INJI-178
* refactor: [Kiruthika | Dhivya] fix type warnings
* fix(INJI-223): show the camera in scan screen while sharing the VC and click on scan icon
Issue Link https://mosip.atlassian.net/browse/INJI-223
* fix version code error for internal build workflow (#761)
* chore: update pod deps' to match development team of 1st project
* feat(inji-214): [Dhivya|Tilak] integrate the secure store
* feat[#211]:[Pooja] fix turncated passcode and confirm password button
* feat[#211]:[Pooja] fix truncated histroy title text in iOS
* feat(inji-214): [Dhivya|Tilak] conditional check added for platform
* feat(inji-214): [Dhivya] modified state machine for generating keypair
* feat[#211]:[Pooja] fix multiple error being displayed when the vc binding fails
* fix(INJI-223): disconnect the device while sharing the VC and click on tab icons except scan icon
Issue Link https://mosip.atlassian.net/browse/INJI-223
* feat[#211]:[Pooja] fix download card button styles
* feat(inji-214): [Dhivya|Tilak] add logstate for vcitem state machine
(cherry picked from commit 7001679cdd6f46dfc5a60474f30284292e69b888)
* version code for beta build in pipeline
* feat(inji-214): [Dhivya|Tilak] use Secure key store to sign jwt for auth
* feat[#211]:[Pooja] add error message when VC activation fails in kebab pop up
* chore(INJI-216): bump up tuvali version to v0.4.3
* feat[#225]:[Pooja] fix about inji url in about page
* chore(INJI-216): bump up tuvali version to v0.4.3
* chore(INJI-216): update podlock file with the correct tuvali version
* feat(inji-214): [Dhivya|Tilak] use sdk hmac method to create hmac for vc key
* feat(inji-214): [Tilak|Dhivya] refactor hmac functionality
* feat(inji-214): [Dhivya|Tilak] modify generatehmac function definition
* refactor(INJI-223): get the scan string from route config to keep it consistent
Issue Link https://mosip.atlassian.net/browse/INJI-223
* feat[mosip#211]:[Pooja] refactor onCancel
Co-authored-by: Harsh Vardhan <harsh59v@gmail.com>
* feat(inji-175): show warning message to user on android hardware keystore
* feat(inji-175): refactor the files
* feat(inji-214): [Dhivya|Tilak] use sdk to create signature
* feat:(inji-175) show warning message when device keystore not supports
* fix(inji-175): resolve conflicts
* feat(inji-175): locales changes for hardware keystore not exists warning text
* feat(INJI-222): add popup for error in decryption
* feat(INJI-222): wrap app init component & popups
* feat(INJI-222): propagate event from _store to app state machine
Co-authored-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
* feat(inji-175): modify arabic title locale
* chore(INJI-222): move error msg text to errors obj
* feat(inji-175): update mosip package name
* Implemented Receive Card & Received Cards options in Settings
* Fixed all the locals
* fix(inji-175): modify variable name and refactor existing code
* [INJI-69]fix:The mobile camera is not opening on the scan page when the flight mode is turned
* [INJI-69]fix:The mobile camera is not opening on the scan page when the flight mode is turned
* [INJI-69]fix:The mobile camera is not opening on the scan page when the flight mode is turned
* [Inji-248]fix:The audit for deleting the VC is not logged in the history
* fix:naming conventions, removed log and values in locals
* Update .project
* Initial commit 07-08-2023
* [INJI-249]fix:Back button from the ellipsis page not working on the mobile
* Inplemented INJI Tour Guide in settings
* Set navigation from auth to home screen
* feat(inji-214): [Dhivya|Tilak] Update encryption and decryption to call SecureKeystore sdk with biometric auth enabled
* Resolved the comments
* Updated 'Get Started' button text in hindi locals
* feat(INJI-238): handling errors when invalidate keys of biometric
* feat(INJI-238): add reset keys action
* fix(INJI-149): skip showing read-error popup on launch
* feat(inji-238): fetch enabled device biometric from sdk
* chore: disallow expansion of received cards
* feat(inji-214): [Dhivya|Tilak] fix app events RESET_KEY_INVALIDATE_ERROR_DISMISS not accessible issue
* feat(inji-214): [Dhivya|Tilak] fix generate key pair failing due to wrong count of arguments
* fix(INJI-192): add error message translations for HMAC calculation
* feat(inji-214): [Dhivya|Tilak] Update biometric popup text
* feat(inji-238): translations added for biometric text
* feat(inji-214): [Dhivya|Tilak] fix language not getting updated for auth popup
* fix(INJI-286):Show VC detailed view in the Received Vc screen
* fix(INJI-286):Show VC detailed view in the Received Vc screen
* fix(INJI-285): Added the flip camera buton in the scan screen
* fix(INJI-262):pinned VC's audit logs are missing
* fix(INJI-262):pinned VC's audit logs are missing
* fix(INJI-214): secure-keystore version changes
* fix(INJI-214): fixed Podfile.lock merge issue
* refactor(INJI-214): refactor the code
* fix(INJI-262):pinned VC's audit logs are missing
* fix(INJI-211[1]): improve isPinned evaluation of (un)pinned VCs (#102)
* fix(INJI-211[1]): Pin/unpin card not working intermittently
* fix(INJI-263):camera is not opening when vc is pinned
* fix(INJI-262):pinned VC's audit logs are missing
* fix(INJI-262):pinned VC's audit logs are missing
* [INJI-69]fix:The mobile camera is not opening on the scan page when the flight mode is turned
* feat(inji-238): handle key not found error after key invalidation
* feat(inji-238): reinit app machine on dismiss of invalidation popup
* fix(INJI-262):pinned VC's audit logs are missing
* fix(INJI-263):camera is not opening when vc is pinned
* feat(INJI-255): hash the passcode and store in mmkv
* feat(inji-238): use a dummy key to request biometric auth everytime user opens the app
* feat(inji-238): revert tamperedErrorMessageString value
* feat(inji-293): use jetify to fix react-native/location bundle issue
* feat(inji-293): fix jetify running location
* Inji 282 disable camera error (#775)
* fix(INJI-282): Correct error message will be displayed when camera is disabled
* fix(INJI-260):app not aligned properly with the smaller display screen (#778)
* Fixed tab elements which are still in english (#779)
* feat(INJI-202): hash uin/vid to store in mmkv and file storage (#780)
* feat(INJI-202): hash uin/vid to store in mmkv and file storage
* feat(INJI-202): refactor to store salt in constants
* feat(INJI-202): refactor argon2i salt and add function to get MMKV data
* feat(INJI-202): refactor to get mkkv data method
---------
Co-authored-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>
* fix(inji-253): set thumbprint on wallet binding for e-signet login
* fix(INJI-296): label mismatch in language files (#772)
* fix(INJI-262):pinned VC's audit logs are missing
* fix(INJI-286): expand received card popup on click (#783)
Revert "chore: disallow expansion of received cards"
This reverts commit 038b6e4259.
* chore(INJI-304): bump up secure keystore version to v0.1.1
* chore(INJI-304): bump up tuvali version to v0.4.4
* Inji 304 update tuvali and secure keystore version (#784)
* chore(INJI-304): bump up secure keystore version to v0.1.1
* chore(INJI-304): bump up tuvali version to v0.4.4
---------
Co-authored-by: dhivya0413 <120356578+dhivya0413@users.noreply.github.com>
* fix(INJI-304): tuvali & secure-keystore version update in package-lock
Co-authored-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>
* fix(INJI-282) Cross button of pop-up will navigate to home (#786)
* fix(INJI-282) Cross button of pop-up will navigate to home
* Icon made as pressble part
* fix(INJI-253): set thumbprint for custom secure keystore for qr login (#787)
---------
Co-authored-by: anil_majji <majjianilkumar050@gmail.com>
Co-authored-by: Monobikash Das <43202165+MonobikashDas@users.noreply.github.com>
Co-authored-by: Vijay <vijay@Vijays-MacBook-Pro.local>
Co-authored-by: Alka Prasad <Alka1703@users.noreply.github.com>
Co-authored-by: Sri Kanth Kola <srikanthsri7447@gmail.com>
Co-authored-by: vijay151096 <94220135+vijay151096@users.noreply.github.com>
Co-authored-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
Co-authored-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>
Co-authored-by: Tilak Puli <tilakpuli15@gmail.com>
Co-authored-by: adityankannan-tw <adityan.kannan@thoughtworks.com>
Co-authored-by: adityankannan-tw <109274996+adityankannan-tw@users.noreply.github.com>
Co-authored-by: PoojaBabusing <115976560+PoojaBabusing@users.noreply.github.com>
Co-authored-by: Harsh Vardhan <harsh59v@gmail.com>
Co-authored-by: Alka <prasadalka1998@gmail.com>
Co-authored-by: Dhivya <dhivya.v@thoughtworks.com>
Co-authored-by: srikanth716 <97477121+srikanth716@users.noreply.github.com>
Co-authored-by: Anil kumar M <106086523+Anil-kumar-Majji@users.noreply.github.com>
Co-authored-by: Swati Goel <meet2swati@gmail.com>
Co-authored-by: dhivya0413 <120356578+dhivya0413@users.noreply.github.com>
20 lines
620 B
TypeScript
20 lines
620 B
TypeScript
import { useSelector } from '@xstate/react';
|
|
import { useContext } from 'react';
|
|
import {
|
|
selectAuthorized,
|
|
selectLanguagesetup,
|
|
selectUnauthorized,
|
|
} from '../machines/auth';
|
|
import { GlobalContext } from '../shared/GlobalContext';
|
|
|
|
export function useAppLayout() {
|
|
const { appService } = useContext(GlobalContext);
|
|
const authService = appService.children.get('auth');
|
|
const isLanguagesetup = useSelector(authService, selectLanguagesetup);
|
|
return {
|
|
isAuthorized: useSelector(authService, selectAuthorized),
|
|
isUnAuthorized: useSelector(authService, selectUnauthorized),
|
|
isLanguagesetup,
|
|
};
|
|
}
|