Skip to content

Commit

Permalink
feat(retrigger-processes): align endurl mapping keys with backend (#1268
Browse files Browse the repository at this point in the history
  • Loading branch information
manojava-gk authored Oct 24, 2024
1 parent 713f8a5 commit f91bf2e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

- **Onboarding Service Provider**
- removed deprecated page onboardingServiceProvider and every related link [#1261](https://github.com/eclipse-tractusx/portal-frontend/pull/1261)
- **Application Request**
- align endurl mapping keys with backend for retriggerable processes [#1268](https://github.com/eclipse-tractusx/portal-frontend/pull/1268)

### Bugfixes

Expand Down
12 changes: 4 additions & 8 deletions src/components/shared/basic/ProgressVerificationButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,14 +249,10 @@ export const ProgressVerificationButton = ({

const getButtonTitle = () => {
if (
(props.retriggerableProcessSteps &&
props.retriggerableProcessSteps.indexOf(
RetriggerableProcessSteps.TRIGGER_OVERRIDE_CLEARING_HOUSE
) > -1) ??
(props.retriggerableProcessSteps &&
props.retriggerableProcessSteps.indexOf(
RetriggerableProcessSteps.OVERRIDE_BUSINESS_PARTNER_NUMBER
) > -1)
props.retriggerableProcessSteps &&
props.retriggerableProcessSteps.indexOf(
RetriggerableProcessSteps.MANUAL_TRIGGER_OVERRIDE_CLEARING_HOUSE
) > -1
) {
return t('content.checklistOverlay.buttonOverwrite')
}
Expand Down
13 changes: 8 additions & 5 deletions src/features/admin/applicationRequestApiSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,25 +91,28 @@ export const EndUrlMap: Map = {
RETRIGGER_IDENTITY_WALLET: 'trigger-identity-wallet',
RETRIGGER_CREATE_DIM_WALLET: 'retrigger-create-dim-wallet',
RETRIGGER_CLEARING_HOUSE: 'retrigger-clearinghouse',
TRIGGER_OVERRIDE_CLEARING_HOUSE: 'override-clearinghouse',
MANUAL_TRIGGER_OVERRIDE_CLEARING_HOUSE: 'override-clearinghouse',
RETRIGGER_SELF_DESCRIPTION_LP: 'trigger-self-description',
RETRIGGER_BUSINESS_PARTNER_NUMBER_PUSH:
'trigger-bpn?processTypeId=RETRIGGER_BUSINESS_PARTNER_NUMBER_PUSH',
RETRIGGER_BUSINESS_PARTNER_NUMBER_PULL:
'trigger-bpn?processTypeId=RETRIGGER_BUSINESS_PARTNER_NUMBER_PULL',
OVERRIDE_BUSINESS_PARTNER_NUMBER:
'trigger-bpn?processTypeId=OVERRIDE_BUSINESS_PARTNER_NUMBER',
RETRIGGER_TRANSMIT_DID_BPN: 'retrigger-transmit-bpn-did',
RETRIGGER_REQUEST_BPN_CREDENTIAL: 'retrigger-bpn-credential',
RETRIGGER_REQUEST_MEMBERSHIP_CREDENTIAL: 'retrigger-membership-credential',
}

export enum RetriggerableProcessSteps {
RETRIGGER_IDENTITY_WALLET = 'RETRIGGER_IDENTITY_WALLET',
RETRIGGER_CREATE_DIM_WALLET = 'RETRIGGER_CREATE_DIM_WALLET',
RETRIGGER_CLEARING_HOUSE = 'RETRIGGER_CLEARING_HOUSE',
TRIGGER_OVERRIDE_CLEARING_HOUSE = 'TRIGGER_OVERRIDE_CLEARING_HOUSE',
MANUAL_TRIGGER_OVERRIDE_CLEARING_HOUSE = 'MANUAL_TRIGGER_OVERRIDE_CLEARING_HOUSE',
RETRIGGER_SELF_DESCRIPTION_LP = 'RETRIGGER_SELF_DESCRIPTION_LP',
RETRIGGER_BUSINESS_PARTNER_NUMBER_PUSH = 'RETRIGGER_BUSINESS_PARTNER_NUMBER_PUSH',
RETRIGGER_BUSINESS_PARTNER_NUMBER_PULL = 'RETRIGGER_BUSINESS_PARTNER_NUMBER_PULL',
OVERRIDE_BUSINESS_PARTNER_NUMBER = 'OVERRIDE_BUSINESS_PARTNER_NUMBER',
RETRIGGER_TRANSMIT_DID_BPN = 'RETRIGGER_TRANSMIT_DID_BPN',
RETRIGGER_REQUEST_BPN_CREDENTIAL = 'RETRIGGER_REQUEST_BPN_CREDENTIAL',
RETRIGGER_REQUEST_MEMBERSHIP_CREDENTIAL = 'RETRIGGER_REQUEST_MEMBERSHIP_CREDENTIAL',
}

export type ProgressButtonsType = {
Expand Down

0 comments on commit f91bf2e

Please sign in to comment.