Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/mint-components/.changeset/quiet-banners-explain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@saasquatch/mint-components": patch
---

Tax-and-cash forms now show the "existing impact.com account" message as a transparent info message with friendlier default copy that includes the participant's email via `{emailAddress}`. The general form submission error now tells participants the problem is usually temporary and to try again in a few minutes.
64 changes: 32 additions & 32 deletions packages/mint-components/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,14 +292,14 @@ export namespace Components {
*/
"individualSelectItemLabel": string;
/**
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
* @uiName Participant is a partner alert description
* Part of the info message displayed at the top of the form if the participant already has an impact.com account.
* @uiName Existing account alert description
* @uiWidget textArea
*/
"isPartnerAlertDescription": string;
/**
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
* @uiName Participant is a partner alert title
* Title of the info message displayed at the top of the form if the participant already has an impact.com account. Use {emailAddress} to show the participant's email.
* @uiName Existing account alert title
* @uiWidget textArea
*/
"isPartnerAlertHeader": string;
Expand Down Expand Up @@ -1639,14 +1639,14 @@ export namespace Components {
*/
"indirectTaxNumberError": string;
/**
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
* @uiName Participant is a partner alert description
* Part of the info message displayed at the top of the form if the participant already has an impact.com account.
* @uiName Existing account alert description
* @uiWidget textArea
*/
"isPartnerAlertDescription": string;
/**
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
* @uiName Participant is a partner alert title
* Title of the info message displayed at the top of the form if the participant already has an impact.com account. Use {emailAddress} to show the participant's email.
* @uiName Existing account alert title
* @uiWidget textArea
*/
"isPartnerAlertHeader": string;
Expand Down Expand Up @@ -7017,15 +7017,15 @@ export namespace Components {
*/
"invalidCharacterError": string;
/**
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
* @uiName Participant is a partner alert description
* Part of the info message displayed at the top of the form if the participant already has an impact.com account.
* @uiName Existing account alert description
* @uiGroup General Form Properties
* @uiWidget textArea
*/
"isPartnerAlertDescription": string;
/**
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
* @uiName Participant is a partner alert title
* Title of the info message displayed at the top of the form if the participant already has an impact.com account. Use {emailAddress} to show the participant's email.
* @uiName Existing account alert title
* @uiGroup General Form Properties
* @uiWidget textArea
*/
Expand Down Expand Up @@ -8293,14 +8293,14 @@ export namespace Components {
*/
"invalidCharacterError": string;
/**
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
* @uiName Participant is a partner alert description
* Part of the info message displayed at the top of the form if the participant already has an impact.com account.
* @uiName Existing account alert description
* @uiWidget textArea
*/
"isPartnerAlertDescription": string;
/**
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
* @uiName Participant is a partner alert title
* Title of the info message displayed at the top of the form if the participant already has an impact.com account. Use {emailAddress} to show the participant's email.
* @uiName Existing account alert title
* @uiWidget textArea
*/
"isPartnerAlertHeader": string;
Expand Down Expand Up @@ -10675,14 +10675,14 @@ declare namespace LocalJSX {
*/
"individualSelectItemLabel"?: string;
/**
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
* @uiName Participant is a partner alert description
* Part of the info message displayed at the top of the form if the participant already has an impact.com account.
* @uiName Existing account alert description
* @uiWidget textArea
*/
"isPartnerAlertDescription"?: string;
/**
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
* @uiName Participant is a partner alert title
* Title of the info message displayed at the top of the form if the participant already has an impact.com account. Use {emailAddress} to show the participant's email.
* @uiName Existing account alert title
* @uiWidget textArea
*/
"isPartnerAlertHeader"?: string;
Expand Down Expand Up @@ -12023,14 +12023,14 @@ declare namespace LocalJSX {
*/
"indirectTaxNumberError"?: string;
/**
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
* @uiName Participant is a partner alert description
* Part of the info message displayed at the top of the form if the participant already has an impact.com account.
* @uiName Existing account alert description
* @uiWidget textArea
*/
"isPartnerAlertDescription"?: string;
/**
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
* @uiName Participant is a partner alert title
* Title of the info message displayed at the top of the form if the participant already has an impact.com account. Use {emailAddress} to show the participant's email.
* @uiName Existing account alert title
* @uiWidget textArea
*/
"isPartnerAlertHeader"?: string;
Expand Down Expand Up @@ -17371,15 +17371,15 @@ declare namespace LocalJSX {
*/
"invalidCharacterError"?: string;
/**
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
* @uiName Participant is a partner alert description
* Part of the info message displayed at the top of the form if the participant already has an impact.com account.
* @uiName Existing account alert description
* @uiGroup General Form Properties
* @uiWidget textArea
*/
"isPartnerAlertDescription"?: string;
/**
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
* @uiName Participant is a partner alert title
* Title of the info message displayed at the top of the form if the participant already has an impact.com account. Use {emailAddress} to show the participant's email.
* @uiName Existing account alert title
* @uiGroup General Form Properties
* @uiWidget textArea
*/
Expand Down Expand Up @@ -18646,14 +18646,14 @@ declare namespace LocalJSX {
*/
"invalidCharacterError"?: string;
/**
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
* @uiName Participant is a partner alert description
* Part of the info message displayed at the top of the form if the participant already has an impact.com account.
* @uiName Existing account alert description
* @uiWidget textArea
*/
"isPartnerAlertDescription"?: string;
/**
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
* @uiName Participant is a partner alert title
* Title of the info message displayed at the top of the form if the participant already has an impact.com account. Use {emailAddress} to show the participant's email.
* @uiName Existing account alert title
* @uiWidget textArea
*/
"isPartnerAlertHeader"?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ const stepTwoProps: StoryDemoData<UseIndirectTaxFormResult> = {
loading: false,
isPartner: false,
isPartnerLegacy: false,
email: "test@example.com",
loadingError: false,
formState: {
checked: undefined,
Expand Down Expand Up @@ -355,7 +356,7 @@ export const StepOneIsUser = () => {
return (
<sqm-user-info-form
demoData={{
states: { ...stepOneProps.states, isUser: true },
states: { ...stepOneProps.states, isUser: true, isUserLegacy: true },
}}
></sqm-user-info-form>
);
Expand All @@ -365,7 +366,12 @@ export const StepOneIsPartner = () => {
return (
<sqm-user-info-form
demoData={{
states: { ...stepOneProps.states, disabled: true, isPartner: true },
states: {
...stepOneProps.states,
disabled: true,
isPartner: true,
isPartnerLegacy: true,
},
}}
></sqm-user-info-form>
);
Expand Down Expand Up @@ -413,6 +419,27 @@ export const StepOneWithGeneralError = () => {
);
};

export const StepOneIsPartnerWithGeneralError = () => {
return (
<sqm-user-info-form
demoData={{
states: {
...stepOneProps.states,
disabled: true,
isPartner: true,
isPartnerLegacy: true,
formState: {
...stepOneProps.states.formState,
errors: {
general: true,
},
},
},
}}
></sqm-user-info-form>
);
};

export const StepOneWithLoadingError = () => {
return (
<sqm-user-info-form
Expand Down Expand Up @@ -478,6 +505,7 @@ export const StepTwoIsPartner = () => {
states: {
...stepTwoProps.states,
isPartner: true,
isPartnerLegacy: true,
},
}}
></sqm-indirect-tax-form>
Expand All @@ -502,6 +530,26 @@ export const StepTwoWithGeneralError = () => {
);
};

export const StepTwoIsPartnerWithGeneralError = () => {
return (
<sqm-indirect-tax-form
demoData={{
states: {
...stepTwoProps.states,
isPartner: true,
isPartnerLegacy: true,
formState: {
...stepTwoProps.states.formState,
errors: {
general: true,
},
},
},
}}
></sqm-indirect-tax-form>
);
};

export const StepTwoOtherRegionChecked = () => {
return (
<sqm-indirect-tax-form
Expand Down Expand Up @@ -972,6 +1020,26 @@ export const StepFourIsPartner = () => {
);
};

export const StepFourIsPartnerWithGeneralError = () => {
return (
<sqm-banking-info-form
demoData={{
...stepFourProps,
states: {
...stepFourProps.states,
isPartner: true,
formState: {
...stepFourProps.states.formState,
errors: {
general: true,
},
},
},
}}
></sqm-banking-info-form>
);
};

export const StepFourDirectToBankChecked = () => {
return (
<sqm-banking-info-form
Expand Down
Loading