Skip to content

feat: new props generator#1000

Merged
johnkuney merged 3 commits intomasterfrom
feat/update-paybutton-generator
Apr 28, 2025
Merged

feat: new props generator#1000
johnkuney merged 3 commits intomasterfrom
feat/update-paybutton-generator

Conversation

@lissavxo
Copy link
Copy Markdown
Collaborator

Related to #

Added contributtionOffset and disableAltpayment props to paybutton generator.

Description

Test plan

@johnkuney
Copy link
Copy Markdown
Collaborator

Looks good! Could probably take the opportunity to also add the other missing new props?

Looks like we don't have

ws-base-url
api-base-url
on-close
on-open
auto-close

Also unrelated, but contribution-offset doesn't look be working in the preview for me is it for you? Its meant to show in the goal progress bar right?

@lissavxo
Copy link
Copy Markdown
Collaborator Author

Looks good! Could probably take the opportunity to also add the other missing new props?

Looks like we don't have

ws-base-url api-base-url on-close on-open auto-close

Also unrelated, but contribution-offset doesn't look be working in the preview for me is it for you? Its meant to show in the goal progress bar right?

Good call, will add the missing fields.
About contribution-offset, I am not sure but I think It isn't working because we don't have the latest master deployed.

@johnkuney
Copy link
Copy Markdown
Collaborator

Cool thanks
Okay yeah probably that then

@lissavxo lissavxo requested a review from johnkuney April 25, 2025 18:24
Copy link
Copy Markdown
Collaborator

@johnkuney johnkuney left a comment

Choose a reason for hiding this comment

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

Looks good just a few comments

key: 'autoClose',
className: 'col_sm_center',
type: 'boolean',
default: false,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

default should be true for autoclose

opReturn: ''
opReturn: '',
contributionOffset: 0,
disableAltpayment: false
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Make sure to include all the new props here as well with default values, otherwise they wont reset with the reset button. All the strings should just be '' and auto-close should be true

hideToasts={button.hideToasts}
disableEnforceFocus={button.disableEnforceFocus}
contributionOffset={button.contributionOffset}
disableAltpayment={button.disableAltpayment}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

same here. lets make sure we're adding all the new props here so the preview button has the intended functionality. Its unlikely anyone would actually test a different Api base url here, or the auto close, but should add it anyway

@lissavxo lissavxo requested a review from johnkuney April 28, 2025 18:40
Copy link
Copy Markdown
Collaborator

@johnkuney johnkuney left a comment

Choose a reason for hiding this comment

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

looks good

@johnkuney johnkuney merged commit 8a2e6f8 into master Apr 28, 2025
2 checks passed
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