PIN-8688 move 'how to get a voucher' section in developer tools#1584
Open
PIN-8688 move 'how to get a voucher' section in developer tools#1584
Conversation
Collaborator
antofo
commented
Dec 10, 2025
- Create new page for voucher simulation
- Move voucher instructions related components
- Implement client selection in step 1 of voucher instructions
added 6 commits
December 10, 2025 12:16
Carminepo2
requested changes
Dec 12, 2025
src/pages/ConsumerSimulateGetVoucherPage/components/VoucherInstructions/VoucherInstructions.tsx
Outdated
Show resolved
Hide resolved
src/pages/ConsumerSimulateGetVoucherPage/components/VoucherInstructions/VoucherInstructions.tsx
Outdated
Show resolved
Hide resolved
...ConsumerSimulateGetVoucherPage/components/VoucherInstructions/VoucherInstructionsContext.tsx
Outdated
Show resolved
Hide resolved
...herPage/components/VoucherInstructions/VoucherInstructionsStep1/VoucherInstructionsStep1.tsx
Outdated
Show resolved
Hide resolved
borgesis95
requested changes
Dec 16, 2025
src/pages/ConsumerClientManagePage/ConsumerClientManage.page.tsx
Outdated
Show resolved
Hide resolved
| action: () => | ||
| navigate( | ||
| clientKind === 'API' ? 'SIMULATE_GET_VOUCHER_API' : 'SIMULATE_GET_VOUCHER_CONSUMER' | ||
| ), |
Contributor
There was a problem hiding this comment.
can i suggest to move singleAction like this ?
const voucherSimulationAction: ActionItemButton = {
action: () =>
navigate(clientKind === 'API' ? 'SIMULATE_GET_VOUCHER_API' : 'SIMULATE_GET_VOUCHER_CONSUMER'),
label: actionT('simulateVoucher'),
variant: 'contained',
}
...herPage/components/VoucherInstructions/VoucherInstructionsStep1/VoucherInstructionsStep1.tsx
Outdated
Show resolved
Hide resolved
| ]) | ||
|
|
||
| return ( | ||
| <FormProvider {...methods}> |
Contributor
There was a problem hiding this comment.
formMethods
Suggested change
| <FormProvider {...methods}> | |
| <FormProvider {...formMethods}> |
| loading={isFetchingClients} | ||
| /> | ||
| </FormControl> | ||
| {clientKind === 'CONSUMER' ? ( |
Contributor
There was a problem hiding this comment.
[general]: Do you think it makes sense to abstract this component? I see a lot of "if" related to clientKind. Maybe an idea could be have two component within this.
...s/ConsumerSimulateGetVoucherPage/components/VoucherInstructions/VoucherInstructionsStep2.tsx
Outdated
Show resolved
Hide resolved
| @@ -44,9 +48,9 @@ export const VoucherInstructionsStep3: React.FC = () => { | |||
| <Stack spacing={2}> | |||
| <InformationContainer | |||
| label={t('step3.requestBody.clientIdField.label')} | |||
| content={clientId} | |||
Contributor
There was a problem hiding this comment.
Contributor
|
A couple of considerations:
|
|
borgesis95
approved these changes
Feb 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

