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

[Inji 434 & INJI 441]: Add events in receiver VC sharing flow and cancel button handle #990

Conversation

Alka1703
Copy link
Contributor

@Alka1703 Alka1703 commented Nov 6, 2023

https://mosip.atlassian.net/browse/INJI-441
https://mosip.atlassian.net/browse/INJI-434
Handle cancel button on vc share flow on verifier side
Extract out Telemetry constants to a separate file

… end

Signed-off-by: Alka <prasadalka1998@gmail.com>
Signed-off-by: Alka <prasadalka1998@gmail.com>
Signed-off-by: Alka <prasadalka1998@gmail.com>
Signed-off-by: Alka <prasadalka1998@gmail.com>
@Alka1703 Alka1703 changed the title [Inji 434]: Add events in receiver VC sharing flow [Inji 434 & INJI 441]: Add events in receiver VC sharing flow and cancel button handle Nov 6, 2023
…g-flow

Signed-off-by: Alka Prasad <Alka1703@users.noreply.github.com>
@@ -5,7 +5,8 @@ import {OtpVerificationModal} from './OtpVerificationModal';
import {IdInputModal} from './IdInputModal';
import {useTranslation} from 'react-i18next';
import {GET_INDIVIDUAL_ID} from '../../../shared/constants';
import {TelemetryConstants} from '../../../shared/telemetry/TelemetryUtils';
import {TelemetryConstants} from '../../../shared/telemetry/TelemetryConstants';
import {Button, Column} from '../../../components/ui';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only import, no usage?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing it. Added by mistake

on: {
CANCEL: {
target: '#request.cancelling',
actions: ['sendVCSharingTerminatedEvent'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should rename this to sendVCReceiveTerminatedEvent.

},
},
},
},
on: {
DISCONNECT: {
target: 'disconnected',
actions: ['sendVCSharingDisconnectedEvent'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should rename this to sendVCReceiveDisconnectedEvent.

actions: 'setReceiveLogTypeUnverified',
actions: [
'setReceiveLogTypeUnverified',
'sendVcShareFailedEvent',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should rename this to sendVcReceiveFailedEvent.

@@ -394,6 +420,7 @@ export const requestMachine =
'sendVcReceived',
'setReceiveLogTypeRegular',
'logReceived',
'sendVcShareSuccessEvent',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should rename this to sendVcReceiveSuccessEvent.

entry: [
'setReceiveLogTypeDiscarded',
'logReceived',
'sendVcRejectedEvent',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should rename this to sendVcReceiveRejectedEvent.

entry: [
'setReceiveLogTypeDiscarded',
'logReceived',
'sendVcRejectedEvent',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should rename this to sendVcReceiveRejectedEvent.

Signed-off-by: Alka <prasadalka1998@gmail.com>
Signed-off-by: Alka <prasadalka1998@gmail.com>
@Alka1703 Alka1703 force-pushed the inji-434-add-events-in-receiver-vc-sharing-flow branch from fb24fa7 to e57972e Compare November 6, 2023 19:53
Signed-off-by: Alka <prasadalka1998@gmail.com>
@Alka1703 Alka1703 force-pushed the inji-434-add-events-in-receiver-vc-sharing-flow branch from e57972e to 1f1b417 Compare November 6, 2023 19:55
@swatigoel swatigoel merged commit 9b07e63 into mosip:develop Nov 7, 2023
srikanth716 pushed a commit to tw-mosip/inji-wallet that referenced this pull request Nov 23, 2023
…cel button handle (mosip#990)

* refactor(INJI-434): rename some variables and functions to meaning names

Signed-off-by: Alka <prasadalka1998@gmail.com>

* feat(INJI-434): add telemetry events in the VC share flow on verifier end

Signed-off-by: Alka <prasadalka1998@gmail.com>

* fix(INJI-434): handle cancel button press during vc share

Signed-off-by: Alka <prasadalka1998@gmail.com>

* fix(INJI-441): handle cancel button press during vc share

Signed-off-by: Alka <prasadalka1998@gmail.com>

* refactor(INJI-434): extracts telemetry constants to a seperate file

Signed-off-by: Alka <prasadalka1998@gmail.com>

* refactor(INJI-434): remove unused imports

Signed-off-by: Alka <prasadalka1998@gmail.com>

* fix(INJI-441): update the CANCEL event on press of cancel button

Signed-off-by: Alka <prasadalka1998@gmail.com>

* refactor(INJI-434): update the method name

Signed-off-by: Alka <prasadalka1998@gmail.com>

---------

Signed-off-by: Alka <prasadalka1998@gmail.com>
Signed-off-by: Alka Prasad <Alka1703@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants