Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
7e41a5c
feat(PartnerInfoModal): displaying firstName and lastName inputs when…
ashley-osuna Aug 14, 2026
2f8db38
updating specs, stories and pre-release version
ashley-osuna Aug 14, 2026
bae2e05
changeset
ashley-osuna Aug 14, 2026
ddc197e
publish: @saasquatch/mint-components v2.3.1-3
github-actions[bot] Aug 14, 2026
be826e3
fix: adding a shouldDisplayNameFields prop to prevent fields disappea…
ashley-osuna Aug 14, 2026
66354b6
publish: @saasquatch/mint-components v2.3.1-4
github-actions[bot] Aug 14, 2026
8aa4727
disabling submit button when firstName/lastName are missing
ashley-osuna Aug 14, 2026
c3c3bc2
publish: @saasquatch/mint-components v2.3.1-5
github-actions[bot] Aug 14, 2026
6743e27
fix: onSubmit button guard, setting firstName, lastName when user is …
ashley-osuna Aug 14, 2026
4a86fe8
publish: @saasquatch/mint-components v2.3.1-6
github-actions[bot] Aug 14, 2026
5d4fcae
Add loading spinner
AndiLuo Aug 14, 2026
5a0f5fd
publish: @saasquatch/mint-components v2.3.1-7
github-actions[bot] Aug 14, 2026
d6c2190
cleanup
ashley-osuna Aug 14, 2026
86c7d94
Fix spinner placement
AndiLuo Aug 14, 2026
b686824
Merge branch 'add-name-inputs-in-partnerinfomodal' of https://github.…
AndiLuo Aug 14, 2026
4be38b0
publish: @saasquatch/mint-components v2.3.1-8
github-actions[bot] Aug 14, 2026
4cafc88
Remove loading state, add check to showModal instead
AndiLuo Aug 14, 2026
b966dec
Merge branch 'add-name-inputs-in-partnerinfomodal' of https://github.…
AndiLuo Aug 14, 2026
aea810c
publish: @saasquatch/mint-components v2.3.1-9
github-actions[bot] Aug 14, 2026
66d26a4
fix: address review comments
ashley-osuna Aug 14, 2026
a85c777
Potential fix for pull request finding
ashley-osuna Aug 14, 2026
0f524df
reverting package-lock
ashley-osuna Aug 14, 2026
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/puny-brooms-call.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@saasquatch/mint-components": minor
---

Partner info modal now shows firstName and lastName inputs when either is missing from the user
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ const demoCurrencies = [
];

const noopCallbacks = {
onFirstNameChange: (e: any) => console.log("First name changed:", e),
onLastNameChange: (e: any) => console.log("Last name changed:", e),
onCountryChange: (e: any) => console.log("Country changed:", e),
onCurrencyChange: (e: any) => console.log("Currency changed:", e),
onCheckboxChange: (e: any) => console.log("Checkbox changed:", e),
Expand Down Expand Up @@ -66,6 +68,9 @@ const defaultProps: PartnerInfoModalViewProps = {
loading: false,
submitting: false,
isExistingPartner: false,
shouldDisplayNameFields: false,
firstName: "",
lastName: "",
countryCode: "",
currency: "",
error: "",
Expand Down Expand Up @@ -208,3 +213,39 @@ export const SQMComponentNewPartner = () => {
></sqm-partner-info-modal>
);
};

export const PartnerHasFirstAndLastName = () => {
const props: PartnerInfoModalViewProps = {
...defaultProps,
states: {
...defaultProps.states,
firstName: "John",
lastName: "Doe",
},
};
return <PartnerInfoModalView {...props} />;
};

export const PartnerHasFirstNameOnly = () => {
const props: PartnerInfoModalViewProps = {
...defaultProps,
states: {
...defaultProps.states,
firstName: "John",
lastName: "",
shouldDisplayNameFields: true,
},
};
return <PartnerInfoModalView {...props} />;
};

export const Loading = () => {
const props: PartnerInfoModalViewProps = {
...defaultProps,
states: {
...defaultProps.states,
loading: true,
},
};
return <PartnerInfoModalView {...props} />;
};
Loading
Loading