@saasquatch/mint-components 1.14.1 → 1.14.3-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{mockRewardData-272e22d6.js → mockRewardData-7815f10f.js} +1 -1
- package/dist/cjs/sqm-banking-info-form_17.cjs.entry.js +1 -1
- package/dist/cjs/sqm-big-stat_41.cjs.entry.js +1 -1
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +3 -3
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +2 -2
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +3 -3
- package/dist/cjs/{usePayoutStatus-639cc554.js → usePayoutStatus-feeac99b.js} +3 -3
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +1 -1
- package/dist/collection/components/sqm-referral-table/mockReferralData.js +1 -1
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +2 -2
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +1 -1
- package/dist/collection/components/sqm-rewards-table/mockRewardData.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +3 -3
- package/dist/esm/{mockRewardData-8bd1b356.js → mockRewardData-a3cdb832.js} +1 -1
- package/dist/esm/sqm-banking-info-form_17.entry.js +1 -1
- package/dist/esm/sqm-big-stat_41.entry.js +1 -1
- package/dist/esm/sqm-referral-table_11.entry.js +3 -3
- package/dist/esm/sqm-rewards-table_9.entry.js +2 -2
- package/dist/esm/sqm-stencilbook.entry.js +3 -3
- package/dist/esm/{usePayoutStatus-68c2fe88.js → usePayoutStatus-fed17fc9.js} +3 -3
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_41.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/{usePayoutStatus-68c2fe88.js → usePayoutStatus-fed17fc9.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-693942df.entry.js → p-08090b99.entry.js} +2 -2
- package/dist/mint-components/{p-e3e4a466.entry.js → p-0d68b3b1.entry.js} +1 -1
- package/dist/mint-components/{p-ba749252.js → p-11dff275.js} +1 -1
- package/dist/mint-components/{p-1f089c3f.system.entry.js → p-207da855.system.entry.js} +1 -1
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/{p-f2f8d39a.system.entry.js → p-6604658c.system.entry.js} +1 -1
- package/dist/mint-components/{p-4886f44d.entry.js → p-73891ac0.entry.js} +1 -1
- package/dist/mint-components/{p-fe2e2f4a.entry.js → p-89104bc4.entry.js} +1 -1
- package/dist/mint-components/{p-9b85baf6.system.js → p-9721a29a.system.js} +1 -1
- package/dist/mint-components/{p-9fb65fb5.system.entry.js → p-a6178052.system.entry.js} +1 -1
- package/dist/mint-components/{p-ef6381d4.entry.js → p-b06add5c.entry.js} +1 -1
- package/dist/mint-components/{p-de8e9981.system.entry.js → p-cc833efb.system.entry.js} +1 -1
- package/dist/mint-components/{p-5d7e308c.system.entry.js → p-fc7a2647.system.entry.js} +1 -1
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/shoelace/assets/icons/twitter-x.svg +4 -0
- /package/dist/esm-es5/{mockRewardData-8bd1b356.js → mockRewardData-a3cdb832.js} +0 -0
- /package/dist/mint-components/{p-726a9924.js → p-938f64d9.js} +0 -0
- /package/dist/mint-components/{p-8413ade9.system.js → p-ae1ea5ac.system.js} +0 -0
|
@@ -82,7 +82,7 @@ const getMockData = (status) => {
|
|
|
82
82
|
dateExpires = today.minus({ days: 1 }).toMillis();
|
|
83
83
|
}
|
|
84
84
|
else if (randomStatus === "PENDING") {
|
|
85
|
-
// pendingReason = ["
|
|
85
|
+
// pendingReason = ["MISSING_PAYOUT_CONFIGURATION"];
|
|
86
86
|
const reason = pendingReasons[Math.floor(Math.random() * 3)];
|
|
87
87
|
pendingReason = [reason];
|
|
88
88
|
if (reason === "SCHEDULED") {
|
|
@@ -21,7 +21,7 @@ const ErrorView = require('./ErrorView-b2fcf954.js');
|
|
|
21
21
|
const sqmInvoiceTableView = require('./sqm-invoice-table-view-16ac73d0.js');
|
|
22
22
|
const extractProps = require('./extractProps-fd93ba62.js');
|
|
23
23
|
const keys = require('./keys-cff24974.js');
|
|
24
|
-
const usePayoutStatus = require('./usePayoutStatus-
|
|
24
|
+
const usePayoutStatus = require('./usePayoutStatus-feeac99b.js');
|
|
25
25
|
const useVerificationEmail = require('./useVerificationEmail-95a82767.js');
|
|
26
26
|
|
|
27
27
|
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
@@ -25,7 +25,7 @@ const AsYouType = require('./AsYouType-6788393a.js');
|
|
|
25
25
|
const utilities = require('./utilities-78f5e169.js');
|
|
26
26
|
const ShadowViewAddon = require('./ShadowViewAddon-787391f7.js');
|
|
27
27
|
require('./sqm-portal-container-view-4f15143a.js');
|
|
28
|
-
const usePayoutStatus = require('./usePayoutStatus-
|
|
28
|
+
const usePayoutStatus = require('./usePayoutStatus-feeac99b.js');
|
|
29
29
|
|
|
30
30
|
const BigStat = class {
|
|
31
31
|
constructor(hostRef) {
|
|
@@ -14,7 +14,7 @@ const GenericTableView = require('./GenericTableView-a9f4ba75.js');
|
|
|
14
14
|
const reRender = require('./re-render-b324deab.js');
|
|
15
15
|
const useChildElements = require('./useChildElements-1b35d945.js');
|
|
16
16
|
const luxon = require('./luxon-2926d85f.js');
|
|
17
|
-
const mockRewardData = require('./mockRewardData-
|
|
17
|
+
const mockRewardData = require('./mockRewardData-7815f10f.js');
|
|
18
18
|
const useReferralTable = require('./useReferralTable-7c3f9600.js');
|
|
19
19
|
const sqmTextSpanView = require('./sqm-text-span-view-0aa82125.js');
|
|
20
20
|
|
|
@@ -114,7 +114,7 @@ const getMockData = () => {
|
|
|
114
114
|
prettyValue: "1 Point",
|
|
115
115
|
statuses: statuses[Math.floor(Math.random() * statuses.length)],
|
|
116
116
|
// statuses: ["PENDING"],
|
|
117
|
-
// pendingReasons: ["US_TAX", "
|
|
117
|
+
// pendingReasons: ["US_TAX", "MISSING_PAYOUT_CONFIGURATION"],
|
|
118
118
|
globalRewardKey: null,
|
|
119
119
|
programRewardKey: "partnerReward",
|
|
120
120
|
meta: {
|
|
@@ -544,7 +544,7 @@ const ReferralTableRewardsCell = class {
|
|
|
544
544
|
if (!((_l = taxConnection === null || taxConnection === void 0 ? void 0 : taxConnection.publisher) === null || _l === void 0 ? void 0 : _l.withdrawalSettings))
|
|
545
545
|
return "PENDING_PARTNER_CREATION";
|
|
546
546
|
}
|
|
547
|
-
if ((_m = reward === null || reward === void 0 ? void 0 : reward.pendingReasons) === null || _m === void 0 ? void 0 : _m.includes("
|
|
547
|
+
if ((_m = reward === null || reward === void 0 ? void 0 : reward.pendingReasons) === null || _m === void 0 ? void 0 : _m.includes("MISSING_PAYOUT_CONFIGURATION")) {
|
|
548
548
|
return "PENDING_PARTNER_CREATION";
|
|
549
549
|
}
|
|
550
550
|
if (reward.statuses.length === 1)
|
|
@@ -14,7 +14,7 @@ const GenericTableView = require('./GenericTableView-a9f4ba75.js');
|
|
|
14
14
|
const reRender = require('./re-render-b324deab.js');
|
|
15
15
|
const useChildElements = require('./useChildElements-1b35d945.js');
|
|
16
16
|
const luxon = require('./luxon-2926d85f.js');
|
|
17
|
-
const mockRewardData = require('./mockRewardData-
|
|
17
|
+
const mockRewardData = require('./mockRewardData-7815f10f.js');
|
|
18
18
|
const useReferralTable = require('./useReferralTable-7c3f9600.js');
|
|
19
19
|
|
|
20
20
|
const debug = stencilHooks_module.browser("sq:useRewardsTable");
|
|
@@ -886,7 +886,7 @@ const RewardTableStatusCell = class {
|
|
|
886
886
|
if (!((_d = taxConnection === null || taxConnection === void 0 ? void 0 : taxConnection.publisher) === null || _d === void 0 ? void 0 : _d.withdrawalSettings))
|
|
887
887
|
return this.pendingPartnerCreation;
|
|
888
888
|
}
|
|
889
|
-
if ((_e = reward === null || reward === void 0 ? void 0 : reward.pendingReasons) === null || _e === void 0 ? void 0 : _e.includes("
|
|
889
|
+
if ((_e = reward === null || reward === void 0 ? void 0 : reward.pendingReasons) === null || _e === void 0 ? void 0 : _e.includes("MISSING_PAYOUT_CONFIGURATION")) {
|
|
890
890
|
return this.pendingPartnerCreation;
|
|
891
891
|
}
|
|
892
892
|
return "";
|
|
@@ -12028,7 +12028,7 @@ const scenario1 = "@author:derek\n@owner:derek\nFeature: Reward Table Date Colum
|
|
|
12028
12028
|
|
|
12029
12029
|
const scenario2 = "@author:derek\n@owner:derek\nFeature: Reward Table reward Column\n\n Shows the exact reward\n\n Background:\n Given the reward column is included in the reward table\n And rewards with translations exist\n\n @motivating\n @ui\n Scenario Outline: The title of the reward column is configurable\n Given the \"column-title\" prop is set to <value>\n Then the reward column is shown with <columnTitle>\n Examples:\n | value | columnTitle |\n | Reward | |\n | My column title | My column title |\n\n @motivating\n Scenario: The reward column displays the prettyValue of the reward given\n Given a user with a reward\n When they view the rewards table\n Then they see the name of their reward in the reward column\n And the name is the prettyValue translated for the users locale\n\n @motivating\n @ui\n Scenario: The reward column displays an availability bar if the reward is redeemable\n Given a user with a <status> credit reward of <value>\n But the user has <redeemedAmount>\n When they view the rewards table\n Then the reward column displays <value>\n And under it displays an availability bar with <percentage> filled\n And under it displays <availabilityText>\n Examples:\n | status | value | percentage | availableAmount | availabilityText |\n | AVAILABLE | 10 Points | 100% | 10 Points | 10 Points remaining |\n | AVAILABLE | 10 Points | 90% | 9 Points | 9 Points remaining |\n | AVAILABLE | 10 Points | 10% | 1 Point | 1 Point remaining |\n | PENDING | 10 Points | 100% | 10 Points | 10 Points remaining |\n | PENDING | 10 Points | 90% | 9 Points | 9 Points remaining |\n | PENDING | 10 Points | 10% | 1 Point | 1 Point remaining |\n\n @motivating\n @ui\n Scenario Outline: The reward column displays an availability bar if the reward was redeemable but had been cancelled or expired\n Given a user with a credit reward of <value>\n And the reward has <status>\n But the user has <redeemedAmount>\n When they view the rewards table\n When they view the rewards table\n Then the reward column displays <value>\n And under it displays an availability bar with <percentage> filled\n And under it displays <redeemedText>\n Examples:\n | status | value | percentage | redeemedAmount | redeemedText |\n | EXPIRED | 10 Points | 100% | 0 Point | 0 Point redeemed |\n | EXPIRED | 10 Points | 80% | 2 Point | 2 Point redeemed |\n | CANCELLED | 10 Points | 100% | 0 Point | 0 Point redeemed |\n | CANCELLED | 10 Points | 20% | 8 Point | 8 Point redeemed |\n\n @motivating\n @ui\n Scenario: The reward column doesn't display the availability bar if the reward is not redeemable\n Given a user with a non credit reward\n When they view the rewards table\n Then they see the name of the reward\n But they do not see the availablity bar\n\n @motivating\n @ui\n Scenario Outline: The reward column doesn't display the availability bar if the reward is only 1 reward unit\n Given a user with a credit reward for 1 of a reward unit\n And it has <status>\n When they view the rewards table\n Then they see the name of the reward\n But they do not see the availablity bar\n Examples:\n | status |\n | AVAILABLE |\n | PENDING |\n | EXPIRED |\n | CANCELLED |\n\n @motivating\n @ui\n Scenario: The reward column doesn't display the availability bar for redeemed credit rewards\n Given a user with a \"REDEEMED\" credit reward\n When they view the rewards table\n Then they see the name of the reward\n But they do not see the availablity bar\n\n @motivating\n @ui\n Scenario: Users can copy their fuel tank codes\n Given a user with a fuel tank reward\n When they view the rewards table\n Then they see their fuel tank reward\n And they see their fuel tank code bolded in blue\n When they click on their code\n Then a tool tip appears saying it has been copied to their clipboard\n And their code is copied to their clipboard";
|
|
12030
12030
|
|
|
12031
|
-
const scenario3 = "@author:derek @owner:derek\nFeature: Reward Table Status Column\n Shows the status of each reward\n\n Background
|
|
12031
|
+
const scenario3 = "@author:derek @owner:derek\nFeature: Reward Table Status Column\n Shows the status of each reward\n\n Background:\n Given the status column is included in the reward table\n\n @motivating @ui\n Scenario Outline: The title of the status column is configurable\n Given the \"column-title\" prop is set to <value>\n Then the status column is shown with <columnTitle>\n\n Examples:\n | value | columnTitle |\n | Status | |\n | My column title | My column title |\n\n @motivating @ui\n Scenario Outline: The status column displays the status of each reward\n Given a user\n And they have a <status> reward\n When they view the reward table\n Then the status of their reward is displayed in <pillColour> pill with <text>\n\n Examples:\n | status | text | pillColour |\n | AVAILABLE | Available | Green |\n | CANCELLED | Cancelled | Red |\n | PENDING | Pending | Orange |\n | EXPIRED | Expired | Red |\n | REDEEMED | Redeemed | Blue |\n | PENDING_REVIEW | Pending | Orange |\n | PAYOUT_TRANSFERRED | Payout Approved | blue |\n | PAYOUT_NOT_YET_DUE | Payout Approved | blue |\n | PAYOUT_OVERDUE | Payout Failed | Red |\n | PAYOUT_REVERSED | Payout Cancelled | Red |\n | PENDING_TAX_REVIEW | Pending | Orange |\n | PENDING_NEW_TAX_FORM | Pending | Orange |\n | PENDING_TAX_SUBMISSION | Pending | Orange |\n | PENDING_PARTNER_CREATION | Pending | Orange |\n | DENIED | Denied | Red |\n\n @motivating\n Scenario Outline: Reward status related information is displayed under status pills\n Given a user\n And they have a <reward>\n And their program is\n When they view the reward table\n Then they see their reward\n And under the pill is <text>\n And the date is localized to the users locale\n\n Examples:\n | reward | text |\n | available reward with an expiry date | localized expiry date in format \"Month-Day-Year\" |\n | redeemed reward | localized redemption date in format \"Month-Day-Year\" |\n | expired reward | localized expired date in format \"Month-Day-Year\" |\n | cancelled reward | localized cancelled date in format \"Month-Day-Year\" |\n | pending reward with a end date | localized pending for date in format \"Month-Day-Year\" |\n | pending reward due to W9 | W-9 required |\n | pending reward due to fufillment error | Fulfillment error |\n | reward pending review of referral | Pending review |\n | pending reward due to no connected Impact partner | Complete your tax and cash payout setup to receive your rewards. |\n | pending reward due to an invalid tax document | Invalid tax form. Submit a new form to receive your rewards. |\n | pending reward due to user required to submit a tax document | Submit your tax documents to receive your rewards. |\n | pending reward due to tax document being in review | Awaiting tax form review. |\n | reward whose payout failed | Payout failed due to a fulfillment issue and is currently being retried. |\n | reward whose payout was approved | Reward approved for payout and was scheduled for payment based on your settings. |\n | reward whose payout was cancelled | If you think this is a mistake, contact our Support team. |\n | cancelled reward from denied referral | Flagged as fraud |\n\n @minutia\n Scenario Outline: Tax-related reward statuses are based on the user's Impact tax connection\n Given a user\n And they are in a program that has Impact tax handling enabled\n And they have at least one pending reward\n And the reward's pending reasons include \"MISSING_PAYOUT_CONFIGURATION\"\n Then the status description will be\n \"\"\"\n Complete your tax and cash payout setup to receive your rewards.\n \"\"\"\n\n @motivating\n Scenario Outline: Statuses can be customized\n Given the \"status-text\" prop is \"{status, select, AVAILABLE {Redeem me!} CANCELLED {Unavailable} PENDING {Coming soon!} EXPIRED {Past due} REDEEMED {Spent} PENDING_REVIEW {Pending Review!} PAYOUT_SENT {Payout Sent!} PAYOUT_FAILED {Payout Failed!} PENDING_TAX_REVIEW {Pending Tax Review!} PENDING_NEW_TAX_FORM {Pending new tax form!} PENDING_TAX_SUBMISSION {Pending tax submission!} PENDING_PARTNER_CREATION {Pending partner creation!} DENIED {Unlucky!}}\"\n And a user\n And they have a <status> reward\n When they view the reward table\n Then the status of their reward is displayed in <pillColour> pill with <text>\n\n Examples:\n | status | text | pillColour |\n | AVAILABLE | Redeem me! | Green |\n | CANCELLED | Unavailable | Red |\n | PENDING | Coming soon! | Orange |\n | EXPIRED | Past due | Red |\n | REDEEMED | Spent | Blue |\n | PENDING_REVIEW | Pending Review! | Orange |\n | PAYOUT_TRANSFERRED | Payout Approved! | Blue |\n | PAYOUT_NOT_YET_DUE | Payout Approved! | Blue |\n | PAYOUT_OVERDUE | Payout Failed! | Red |\n | PAYOUT_REVERSED | Payout Cancelled! | Red |\n | DENIED | Unlucky! | Red |\n\n @minutia @ui\n Scenario: Expiry status date text can be configured\n Given the \"expiry-text\" prop has <value>\n And a user with an available reward with an expiry date\n When they view the reward table\n Then they see <text> under the Available Status pill\n\n Examples:\n | value | text |\n | | Expires on <EXPIRY DATE> |\n | Redeem before | Redeem before <EXPIRY DATE> |\n";
|
|
12032
12032
|
|
|
12033
12033
|
const scenario4 = "@author:derek @owner:derek\nFeature: Reward Table Source Column\n Shows the source of each reward\n\n @motivating @ui\n Scenario Outline: The title of the source column is configurable\n Given the \"column-title\" prop is set to <value>\n Then the source column is shown with <columnTitle>\n\n Examples:\n | value | columnTitle |\n | Source | |\n | My column title | My column title |\n\n @motivating @ui\n Scenario: The source column displays manual if the reward is caused by a manual action\n Given a user with a \"MANUAL\" reward\n When they view the rewards table\n Then the source of their reward is displayed as \"Manual\"\n\n @motivating @ui\n Scenario: The source column displays the program name if the reward is caused automatically by a program\n Given a user with a \"AUTOMATED\" program reward\n And the program has name \"Loyalty Program\"\n When they view the rewards table\n Then the source of their reward is displayed as \"Loyalty Program\"\n\n @motivating @ui\n Scenario Outline: The source column displays customizable reward exchange text with amount if the reward is caused by reward exchange\n Given the \"reward-exchange-text\" prop is <propValue>\n And a user with a \"MANUAL\" reward\n But it was created by a reward exchange\n Then they view the rewards table\n Then the source displays <exchangeText>\n And under it displays the following\n | prettyRedeemedCredit → prettyValue |\n\n Examples:\n | propValue | exchangeText |\n | | Reward Exchange |\n | Exchanged | Exchanged |\n\n @motivating @ui\n Scenario Outline: The source column displays customizable referral information if the reward is from a referral\n Given the \"reward-source-text\" prop is <propValue>\n And a user with a referral reward\n And that reward has <rewardSource>\n When they view the rewards table\n Then then source displays <referralText>\n And under it displays the full name of the <referralUser>\n\n Examples:\n | propValue | rewardSource | referralText | referralUser |\n | | REFERRED | Referred by | referrer user |\n | | FRIEND_SIGNUP | Referral to | referred user |\n | {rewardSource, select, FRIEND_SIGNUP {You Referred} REFERRED {Referred you} other {}} | REFERRED | Referred you | referrer user |\n | {rewardSource, select, FRIEND_SIGNUP {You Referred} REFERRED {Referred you} other {}} | FRIEND_SIGNUP | You Referred | referred user |\n\n @motivating @ui\n Scenario Outline: The source column displays the existing name for a referral if either the first name or last name does not exist\n Given a user with a referral reward\n And referral user exists\n And referral user has <name>\n But referral user has no <otherName>\n When they view the rewards table\n Then referral user's name is displayed as <name>\n\n Examples:\n | name | otherName |\n | first.name | last.name |\n | last.name | first.name |\n\n @motivating @ui\n Scenario Outline: The source column displays referral as \"Anonymous User\" if the referral user has no names\n Given a user with a referral reward\n And that reward has <rewardSource>\n And the <referralUser> has no first name\n And the <referralUser> has no last name\n When they view the rewards table\n Then then source displays <sourceText>\n And under it displays \"Anonymous User\"\n\n Examples:\n | rewardSource | referralUser | sourceText |\n | FRIEND_SIGNUP | referrer | Referral to |\n | REFERRED | referred user | Referred by |\n\n @motivating @ui\n Scenario Outline: The source column displays referral as \"Deleted User\" if the referral user is deleted in the system\n Given a user with a referral reward\n And that reward has <rewardSource>\n But <referral> user was deleted\n When they view the rewards table\n Then the source displays <sourceText>\n And under it displays \"Deleted User\"\n\n Examples:\n | rewardSource | referral | sourceText |\n | \"FRIEND_SIGNUP\" | referrer | Referral to |\n | \"REFERRED\" | referred | Referred by |\n\n @motivating @ui\n Scenario Outline: The source column displays referral as \"Deleted referral\" if the referral user is deleted in the system\n Given a user with a referral reward\n And that reward has <rewardSource>\n But <referral> user was deleted\n When they view the rewards table\n Then the source displays <sourceText>\n And under it displays \"Deleted referral\"\n\n Examples:\n | rewardSource | referral | sourceText |\n | \"FRIEND_SIGNUP\" | referrer | Referral to |\n | \"REFERRED\" | referred | Referred by |\n\n @minutia @ui\n Scenario Outline: Name fallbacks for referral users without names are customizable\n Given <prop> with <value>\n And a user with a referral reward\n But the referral user <hadAction>\n When they view the rewards table\n Then the source displays <value> as the referral user\n\n Examples:\n | prop | value | hadAction |\n | deleted-user | Former Customer | was deleted |\n | anonymous-user | Nameless User | had first and last name deleted |\n\n @motivating\n Scenario Outline: Source text can be customized\n Given the \"reward-source-text\" prop is \"{rewardSource, select, MANUAL {Support} AUTOMATED {Loyalty Program} other {}}\"\n And a user with a <rewardSource> reward\n When they view the rewards table\n Then the source is <sourceText>\n\n Examples:\n | rewardSource | sourceText |\n | MANUAL | Support |\n | AUTOMATED | Loyalty Program |\n";
|
|
12034
12034
|
|
|
@@ -12059,7 +12059,7 @@ const rewardsData$1 = {
|
|
|
12059
12059
|
prettyAvailableNumber: "19",
|
|
12060
12060
|
prettyRedeemedNumber: "0",
|
|
12061
12061
|
statuses: ["AVAILABLE", "PENDING"],
|
|
12062
|
-
pendingReasons: ["US_TAX", "
|
|
12062
|
+
pendingReasons: ["US_TAX", "MISSING_PAYOUT_CONFIGURATION"],
|
|
12063
12063
|
globalRewardKey: null,
|
|
12064
12064
|
rewardSource: "MANUAL",
|
|
12065
12065
|
prettyRedeemedCredit: "0 Points",
|
|
@@ -12352,7 +12352,7 @@ const StatusCellPendingTaxSubmission = () => {
|
|
|
12352
12352
|
const StatusCellPendingPartnerCreation = () => {
|
|
12353
12353
|
return (index.h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: {
|
|
12354
12354
|
...rewardsData$1,
|
|
12355
|
-
pendingReasons: ["
|
|
12355
|
+
pendingReasons: ["MISSING_PAYOUT_CONFIGURATION"],
|
|
12356
12356
|
} }));
|
|
12357
12357
|
};
|
|
12358
12358
|
const StatusCellPayoutSent = () => {
|
|
@@ -988,11 +988,11 @@ const GET_USER_STATUS = index_module.dist.gql `
|
|
|
988
988
|
function getStatus(data) {
|
|
989
989
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
990
990
|
const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
|
|
991
|
-
if (((_c =
|
|
991
|
+
if (!((_d = (_c = data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.connected) || !account)
|
|
992
|
+
return "INFORMATION_REQUIRED";
|
|
993
|
+
if (((_e = account.holdReasons) === null || _e === void 0 ? void 0 : _e.length) === 1 && ((_f = account.holdReasons) === null || _f === void 0 ? void 0 : _f.includes("NEW_PAYEE_REVIEW"))) {
|
|
992
994
|
return "DONE";
|
|
993
995
|
}
|
|
994
|
-
if (!((_f = (_e = data.user) === null || _e === void 0 ? void 0 : _e.impactConnection) === null || _f === void 0 ? void 0 : _f.connected) || !account)
|
|
995
|
-
return "INFORMATION_REQUIRED";
|
|
996
996
|
if ((_g = account.holdReasons) === null || _g === void 0 ? void 0 : _g.includes("IDV_CHECK_REQUIRED"))
|
|
997
997
|
return "VERIFICATION:REQUIRED";
|
|
998
998
|
if ((_h = account.holdReasons) === null || _h === void 0 ? void 0 : _h.includes("IDV_CHECK_REQUIRED_INTERNAL"))
|
package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js
CHANGED
|
@@ -123,7 +123,7 @@ export class ReferralTableRewardsCell {
|
|
|
123
123
|
if (!((_l = taxConnection === null || taxConnection === void 0 ? void 0 : taxConnection.publisher) === null || _l === void 0 ? void 0 : _l.withdrawalSettings))
|
|
124
124
|
return "PENDING_PARTNER_CREATION";
|
|
125
125
|
}
|
|
126
|
-
if ((_m = reward === null || reward === void 0 ? void 0 : reward.pendingReasons) === null || _m === void 0 ? void 0 : _m.includes("
|
|
126
|
+
if ((_m = reward === null || reward === void 0 ? void 0 : reward.pendingReasons) === null || _m === void 0 ? void 0 : _m.includes("MISSING_PAYOUT_CONFIGURATION")) {
|
|
127
127
|
return "PENDING_PARTNER_CREATION";
|
|
128
128
|
}
|
|
129
129
|
if (reward.statuses.length === 1)
|
|
@@ -96,7 +96,7 @@ const getMockData = () => {
|
|
|
96
96
|
prettyValue: "1 Point",
|
|
97
97
|
statuses: statuses[Math.floor(Math.random() * statuses.length)],
|
|
98
98
|
// statuses: ["PENDING"],
|
|
99
|
-
// pendingReasons: ["US_TAX", "
|
|
99
|
+
// pendingReasons: ["US_TAX", "MISSING_PAYOUT_CONFIGURATION"],
|
|
100
100
|
globalRewardKey: null,
|
|
101
101
|
programRewardKey: "partnerReward",
|
|
102
102
|
meta: {
|
|
@@ -30,7 +30,7 @@ const rewardsData = {
|
|
|
30
30
|
prettyAvailableNumber: "19",
|
|
31
31
|
prettyRedeemedNumber: "0",
|
|
32
32
|
statuses: ["AVAILABLE", "PENDING"],
|
|
33
|
-
pendingReasons: ["US_TAX", "
|
|
33
|
+
pendingReasons: ["US_TAX", "MISSING_PAYOUT_CONFIGURATION"],
|
|
34
34
|
globalRewardKey: null,
|
|
35
35
|
rewardSource: "MANUAL",
|
|
36
36
|
prettyRedeemedCredit: "0 Points",
|
|
@@ -323,7 +323,7 @@ export const StatusCellPendingTaxSubmission = () => {
|
|
|
323
323
|
export const StatusCellPendingPartnerCreation = () => {
|
|
324
324
|
return (h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: {
|
|
325
325
|
...rewardsData,
|
|
326
|
-
pendingReasons: ["
|
|
326
|
+
pendingReasons: ["MISSING_PAYOUT_CONFIGURATION"],
|
|
327
327
|
} }));
|
|
328
328
|
};
|
|
329
329
|
export const StatusCellPayoutSent = () => {
|
|
@@ -104,7 +104,7 @@ export class RewardTableStatusCell {
|
|
|
104
104
|
if (!((_d = taxConnection === null || taxConnection === void 0 ? void 0 : taxConnection.publisher) === null || _d === void 0 ? void 0 : _d.withdrawalSettings))
|
|
105
105
|
return this.pendingPartnerCreation;
|
|
106
106
|
}
|
|
107
|
-
if ((_e = reward === null || reward === void 0 ? void 0 : reward.pendingReasons) === null || _e === void 0 ? void 0 : _e.includes("
|
|
107
|
+
if ((_e = reward === null || reward === void 0 ? void 0 : reward.pendingReasons) === null || _e === void 0 ? void 0 : _e.includes("MISSING_PAYOUT_CONFIGURATION")) {
|
|
108
108
|
return this.pendingPartnerCreation;
|
|
109
109
|
}
|
|
110
110
|
return "";
|
|
@@ -83,7 +83,7 @@ const getMockData = (status) => {
|
|
|
83
83
|
dateExpires = today.minus({ days: 1 }).toMillis();
|
|
84
84
|
}
|
|
85
85
|
else if (randomStatus === "PENDING") {
|
|
86
|
-
// pendingReason = ["
|
|
86
|
+
// pendingReason = ["MISSING_PAYOUT_CONFIGURATION"];
|
|
87
87
|
const reason = pendingReasons[Math.floor(Math.random() * 3)];
|
|
88
88
|
pendingReason = [reason];
|
|
89
89
|
if (reason === "SCHEDULED") {
|
|
@@ -25,11 +25,11 @@ const GET_USER_STATUS = gql `
|
|
|
25
25
|
export function getStatus(data) {
|
|
26
26
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
27
27
|
const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
|
|
28
|
-
if (((_c =
|
|
28
|
+
if (!((_d = (_c = data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.connected) || !account)
|
|
29
|
+
return "INFORMATION_REQUIRED";
|
|
30
|
+
if (((_e = account.holdReasons) === null || _e === void 0 ? void 0 : _e.length) === 1 && ((_f = account.holdReasons) === null || _f === void 0 ? void 0 : _f.includes("NEW_PAYEE_REVIEW"))) {
|
|
29
31
|
return "DONE";
|
|
30
32
|
}
|
|
31
|
-
if (!((_f = (_e = data.user) === null || _e === void 0 ? void 0 : _e.impactConnection) === null || _f === void 0 ? void 0 : _f.connected) || !account)
|
|
32
|
-
return "INFORMATION_REQUIRED";
|
|
33
33
|
if ((_g = account.holdReasons) === null || _g === void 0 ? void 0 : _g.includes("IDV_CHECK_REQUIRED"))
|
|
34
34
|
return "VERIFICATION:REQUIRED";
|
|
35
35
|
if ((_h = account.holdReasons) === null || _h === void 0 ? void 0 : _h.includes("IDV_CHECK_REQUIRED_INTERNAL"))
|
|
@@ -80,7 +80,7 @@ const getMockData = (status) => {
|
|
|
80
80
|
dateExpires = today.minus({ days: 1 }).toMillis();
|
|
81
81
|
}
|
|
82
82
|
else if (randomStatus === "PENDING") {
|
|
83
|
-
// pendingReason = ["
|
|
83
|
+
// pendingReason = ["MISSING_PAYOUT_CONFIGURATION"];
|
|
84
84
|
const reason = pendingReasons[Math.floor(Math.random() * 3)];
|
|
85
85
|
pendingReason = [reason];
|
|
86
86
|
if (reason === "SCHEDULED") {
|
|
@@ -17,7 +17,7 @@ import { E as ErrorView } from './ErrorView-48e2b969.js';
|
|
|
17
17
|
import { t as taxTypeToName, v as validTaxDocument, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, g as getCountryObj, O as OtherRegionSlotView, I as InvoiceTableView, L as LoadingView, c as vatLabels, G as GeneralLoadingView, f as formatErrorMessage, d as validateBillingField, o as objectIsFull, A as ADDRESS_REGIONS } from './sqm-invoice-table-view-2c726568.js';
|
|
18
18
|
import { e as extractProps } from './extractProps-ae1afbb3.js';
|
|
19
19
|
import { b as VERIFICATION_EVENT_KEY, V as VERIFICATION_EMAIL_NAMESPACE, S as SHOW_CODE_NAMESPACE, a as VERIFICATION_PARENT_NAMESPACE } from './keys-406491dc.js';
|
|
20
|
-
import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-
|
|
20
|
+
import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-fed17fc9.js';
|
|
21
21
|
import { u as useVerificationEmail } from './useVerificationEmail-edc318cb.js';
|
|
22
22
|
|
|
23
23
|
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
@@ -21,7 +21,7 @@ import { A as AsYouType } from './AsYouType-46f67d0d.js';
|
|
|
21
21
|
import { i as isEmpty } from './utilities-5b0ca040.js';
|
|
22
22
|
import { b as useDemoBigStat, U as useBigStat, B as BigStatView, O as autoColorScaleCss, J as CardFeedView, i as CheckboxFieldView, K as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, V as withShadowView, L as LeaderboardView, N as NameFieldsView, C as ChangeMarktingView, d as PortalChangePasswordView, h as PortalFooterView, P as PortalFrameView, e as PortalRegisterView, R as ReferralIframeView, W as demoRewardExchange, j as RewardExchangeView, a as useShareButton, S as ShareButtonView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-cf230f50.js';
|
|
23
23
|
import './sqm-portal-container-view-1683ae32.js';
|
|
24
|
-
import { u as usePayoutStatus } from './usePayoutStatus-
|
|
24
|
+
import { u as usePayoutStatus } from './usePayoutStatus-fed17fc9.js';
|
|
25
25
|
|
|
26
26
|
const BigStat = class {
|
|
27
27
|
constructor(hostRef) {
|
|
@@ -10,7 +10,7 @@ import { G as GenericTableView } from './GenericTableView-7b9087af.js';
|
|
|
10
10
|
import { a as useRequestRerender, u as useRerenderListener } from './re-render-cc945f38.js';
|
|
11
11
|
import { u as useChildElements } from './useChildElements-7945ae56.js';
|
|
12
12
|
import { l as luxon } from './luxon-8d51c92b.js';
|
|
13
|
-
import { g as getPaypalMeta } from './mockRewardData-
|
|
13
|
+
import { g as getPaypalMeta } from './mockRewardData-a3cdb832.js';
|
|
14
14
|
import { u as useReferralTable, t as tryMethod } from './useReferralTable-b3876ed6.js';
|
|
15
15
|
import { T as TextSpanView } from './sqm-text-span-view-ca32495e.js';
|
|
16
16
|
|
|
@@ -110,7 +110,7 @@ const getMockData = () => {
|
|
|
110
110
|
prettyValue: "1 Point",
|
|
111
111
|
statuses: statuses[Math.floor(Math.random() * statuses.length)],
|
|
112
112
|
// statuses: ["PENDING"],
|
|
113
|
-
// pendingReasons: ["US_TAX", "
|
|
113
|
+
// pendingReasons: ["US_TAX", "MISSING_PAYOUT_CONFIGURATION"],
|
|
114
114
|
globalRewardKey: null,
|
|
115
115
|
programRewardKey: "partnerReward",
|
|
116
116
|
meta: {
|
|
@@ -540,7 +540,7 @@ const ReferralTableRewardsCell = class {
|
|
|
540
540
|
if (!((_l = taxConnection === null || taxConnection === void 0 ? void 0 : taxConnection.publisher) === null || _l === void 0 ? void 0 : _l.withdrawalSettings))
|
|
541
541
|
return "PENDING_PARTNER_CREATION";
|
|
542
542
|
}
|
|
543
|
-
if ((_m = reward === null || reward === void 0 ? void 0 : reward.pendingReasons) === null || _m === void 0 ? void 0 : _m.includes("
|
|
543
|
+
if ((_m = reward === null || reward === void 0 ? void 0 : reward.pendingReasons) === null || _m === void 0 ? void 0 : _m.includes("MISSING_PAYOUT_CONFIGURATION")) {
|
|
544
544
|
return "PENDING_PARTNER_CREATION";
|
|
545
545
|
}
|
|
546
546
|
if (reward.statuses.length === 1)
|
|
@@ -10,7 +10,7 @@ import { G as GenericTableView } from './GenericTableView-7b9087af.js';
|
|
|
10
10
|
import { u as useRerenderListener, a as useRequestRerender } from './re-render-cc945f38.js';
|
|
11
11
|
import { u as useChildElements } from './useChildElements-7945ae56.js';
|
|
12
12
|
import { l as luxon } from './luxon-8d51c92b.js';
|
|
13
|
-
import { m as mockRewardData } from './mockRewardData-
|
|
13
|
+
import { m as mockRewardData } from './mockRewardData-a3cdb832.js';
|
|
14
14
|
import { g as generateUserError } from './useReferralTable-b3876ed6.js';
|
|
15
15
|
|
|
16
16
|
const debug = browser("sq:useRewardsTable");
|
|
@@ -882,7 +882,7 @@ const RewardTableStatusCell = class {
|
|
|
882
882
|
if (!((_d = taxConnection === null || taxConnection === void 0 ? void 0 : taxConnection.publisher) === null || _d === void 0 ? void 0 : _d.withdrawalSettings))
|
|
883
883
|
return this.pendingPartnerCreation;
|
|
884
884
|
}
|
|
885
|
-
if ((_e = reward === null || reward === void 0 ? void 0 : reward.pendingReasons) === null || _e === void 0 ? void 0 : _e.includes("
|
|
885
|
+
if ((_e = reward === null || reward === void 0 ? void 0 : reward.pendingReasons) === null || _e === void 0 ? void 0 : _e.includes("MISSING_PAYOUT_CONFIGURATION")) {
|
|
886
886
|
return this.pendingPartnerCreation;
|
|
887
887
|
}
|
|
888
888
|
return "";
|
|
@@ -12024,7 +12024,7 @@ const scenario1 = "@author:derek\n@owner:derek\nFeature: Reward Table Date Colum
|
|
|
12024
12024
|
|
|
12025
12025
|
const scenario2 = "@author:derek\n@owner:derek\nFeature: Reward Table reward Column\n\n Shows the exact reward\n\n Background:\n Given the reward column is included in the reward table\n And rewards with translations exist\n\n @motivating\n @ui\n Scenario Outline: The title of the reward column is configurable\n Given the \"column-title\" prop is set to <value>\n Then the reward column is shown with <columnTitle>\n Examples:\n | value | columnTitle |\n | Reward | |\n | My column title | My column title |\n\n @motivating\n Scenario: The reward column displays the prettyValue of the reward given\n Given a user with a reward\n When they view the rewards table\n Then they see the name of their reward in the reward column\n And the name is the prettyValue translated for the users locale\n\n @motivating\n @ui\n Scenario: The reward column displays an availability bar if the reward is redeemable\n Given a user with a <status> credit reward of <value>\n But the user has <redeemedAmount>\n When they view the rewards table\n Then the reward column displays <value>\n And under it displays an availability bar with <percentage> filled\n And under it displays <availabilityText>\n Examples:\n | status | value | percentage | availableAmount | availabilityText |\n | AVAILABLE | 10 Points | 100% | 10 Points | 10 Points remaining |\n | AVAILABLE | 10 Points | 90% | 9 Points | 9 Points remaining |\n | AVAILABLE | 10 Points | 10% | 1 Point | 1 Point remaining |\n | PENDING | 10 Points | 100% | 10 Points | 10 Points remaining |\n | PENDING | 10 Points | 90% | 9 Points | 9 Points remaining |\n | PENDING | 10 Points | 10% | 1 Point | 1 Point remaining |\n\n @motivating\n @ui\n Scenario Outline: The reward column displays an availability bar if the reward was redeemable but had been cancelled or expired\n Given a user with a credit reward of <value>\n And the reward has <status>\n But the user has <redeemedAmount>\n When they view the rewards table\n When they view the rewards table\n Then the reward column displays <value>\n And under it displays an availability bar with <percentage> filled\n And under it displays <redeemedText>\n Examples:\n | status | value | percentage | redeemedAmount | redeemedText |\n | EXPIRED | 10 Points | 100% | 0 Point | 0 Point redeemed |\n | EXPIRED | 10 Points | 80% | 2 Point | 2 Point redeemed |\n | CANCELLED | 10 Points | 100% | 0 Point | 0 Point redeemed |\n | CANCELLED | 10 Points | 20% | 8 Point | 8 Point redeemed |\n\n @motivating\n @ui\n Scenario: The reward column doesn't display the availability bar if the reward is not redeemable\n Given a user with a non credit reward\n When they view the rewards table\n Then they see the name of the reward\n But they do not see the availablity bar\n\n @motivating\n @ui\n Scenario Outline: The reward column doesn't display the availability bar if the reward is only 1 reward unit\n Given a user with a credit reward for 1 of a reward unit\n And it has <status>\n When they view the rewards table\n Then they see the name of the reward\n But they do not see the availablity bar\n Examples:\n | status |\n | AVAILABLE |\n | PENDING |\n | EXPIRED |\n | CANCELLED |\n\n @motivating\n @ui\n Scenario: The reward column doesn't display the availability bar for redeemed credit rewards\n Given a user with a \"REDEEMED\" credit reward\n When they view the rewards table\n Then they see the name of the reward\n But they do not see the availablity bar\n\n @motivating\n @ui\n Scenario: Users can copy their fuel tank codes\n Given a user with a fuel tank reward\n When they view the rewards table\n Then they see their fuel tank reward\n And they see their fuel tank code bolded in blue\n When they click on their code\n Then a tool tip appears saying it has been copied to their clipboard\n And their code is copied to their clipboard";
|
|
12026
12026
|
|
|
12027
|
-
const scenario3 = "@author:derek @owner:derek\nFeature: Reward Table Status Column\n Shows the status of each reward\n\n Background
|
|
12027
|
+
const scenario3 = "@author:derek @owner:derek\nFeature: Reward Table Status Column\n Shows the status of each reward\n\n Background:\n Given the status column is included in the reward table\n\n @motivating @ui\n Scenario Outline: The title of the status column is configurable\n Given the \"column-title\" prop is set to <value>\n Then the status column is shown with <columnTitle>\n\n Examples:\n | value | columnTitle |\n | Status | |\n | My column title | My column title |\n\n @motivating @ui\n Scenario Outline: The status column displays the status of each reward\n Given a user\n And they have a <status> reward\n When they view the reward table\n Then the status of their reward is displayed in <pillColour> pill with <text>\n\n Examples:\n | status | text | pillColour |\n | AVAILABLE | Available | Green |\n | CANCELLED | Cancelled | Red |\n | PENDING | Pending | Orange |\n | EXPIRED | Expired | Red |\n | REDEEMED | Redeemed | Blue |\n | PENDING_REVIEW | Pending | Orange |\n | PAYOUT_TRANSFERRED | Payout Approved | blue |\n | PAYOUT_NOT_YET_DUE | Payout Approved | blue |\n | PAYOUT_OVERDUE | Payout Failed | Red |\n | PAYOUT_REVERSED | Payout Cancelled | Red |\n | PENDING_TAX_REVIEW | Pending | Orange |\n | PENDING_NEW_TAX_FORM | Pending | Orange |\n | PENDING_TAX_SUBMISSION | Pending | Orange |\n | PENDING_PARTNER_CREATION | Pending | Orange |\n | DENIED | Denied | Red |\n\n @motivating\n Scenario Outline: Reward status related information is displayed under status pills\n Given a user\n And they have a <reward>\n And their program is\n When they view the reward table\n Then they see their reward\n And under the pill is <text>\n And the date is localized to the users locale\n\n Examples:\n | reward | text |\n | available reward with an expiry date | localized expiry date in format \"Month-Day-Year\" |\n | redeemed reward | localized redemption date in format \"Month-Day-Year\" |\n | expired reward | localized expired date in format \"Month-Day-Year\" |\n | cancelled reward | localized cancelled date in format \"Month-Day-Year\" |\n | pending reward with a end date | localized pending for date in format \"Month-Day-Year\" |\n | pending reward due to W9 | W-9 required |\n | pending reward due to fufillment error | Fulfillment error |\n | reward pending review of referral | Pending review |\n | pending reward due to no connected Impact partner | Complete your tax and cash payout setup to receive your rewards. |\n | pending reward due to an invalid tax document | Invalid tax form. Submit a new form to receive your rewards. |\n | pending reward due to user required to submit a tax document | Submit your tax documents to receive your rewards. |\n | pending reward due to tax document being in review | Awaiting tax form review. |\n | reward whose payout failed | Payout failed due to a fulfillment issue and is currently being retried. |\n | reward whose payout was approved | Reward approved for payout and was scheduled for payment based on your settings. |\n | reward whose payout was cancelled | If you think this is a mistake, contact our Support team. |\n | cancelled reward from denied referral | Flagged as fraud |\n\n @minutia\n Scenario Outline: Tax-related reward statuses are based on the user's Impact tax connection\n Given a user\n And they are in a program that has Impact tax handling enabled\n And they have at least one pending reward\n And the reward's pending reasons include \"MISSING_PAYOUT_CONFIGURATION\"\n Then the status description will be\n \"\"\"\n Complete your tax and cash payout setup to receive your rewards.\n \"\"\"\n\n @motivating\n Scenario Outline: Statuses can be customized\n Given the \"status-text\" prop is \"{status, select, AVAILABLE {Redeem me!} CANCELLED {Unavailable} PENDING {Coming soon!} EXPIRED {Past due} REDEEMED {Spent} PENDING_REVIEW {Pending Review!} PAYOUT_SENT {Payout Sent!} PAYOUT_FAILED {Payout Failed!} PENDING_TAX_REVIEW {Pending Tax Review!} PENDING_NEW_TAX_FORM {Pending new tax form!} PENDING_TAX_SUBMISSION {Pending tax submission!} PENDING_PARTNER_CREATION {Pending partner creation!} DENIED {Unlucky!}}\"\n And a user\n And they have a <status> reward\n When they view the reward table\n Then the status of their reward is displayed in <pillColour> pill with <text>\n\n Examples:\n | status | text | pillColour |\n | AVAILABLE | Redeem me! | Green |\n | CANCELLED | Unavailable | Red |\n | PENDING | Coming soon! | Orange |\n | EXPIRED | Past due | Red |\n | REDEEMED | Spent | Blue |\n | PENDING_REVIEW | Pending Review! | Orange |\n | PAYOUT_TRANSFERRED | Payout Approved! | Blue |\n | PAYOUT_NOT_YET_DUE | Payout Approved! | Blue |\n | PAYOUT_OVERDUE | Payout Failed! | Red |\n | PAYOUT_REVERSED | Payout Cancelled! | Red |\n | DENIED | Unlucky! | Red |\n\n @minutia @ui\n Scenario: Expiry status date text can be configured\n Given the \"expiry-text\" prop has <value>\n And a user with an available reward with an expiry date\n When they view the reward table\n Then they see <text> under the Available Status pill\n\n Examples:\n | value | text |\n | | Expires on <EXPIRY DATE> |\n | Redeem before | Redeem before <EXPIRY DATE> |\n";
|
|
12028
12028
|
|
|
12029
12029
|
const scenario4 = "@author:derek @owner:derek\nFeature: Reward Table Source Column\n Shows the source of each reward\n\n @motivating @ui\n Scenario Outline: The title of the source column is configurable\n Given the \"column-title\" prop is set to <value>\n Then the source column is shown with <columnTitle>\n\n Examples:\n | value | columnTitle |\n | Source | |\n | My column title | My column title |\n\n @motivating @ui\n Scenario: The source column displays manual if the reward is caused by a manual action\n Given a user with a \"MANUAL\" reward\n When they view the rewards table\n Then the source of their reward is displayed as \"Manual\"\n\n @motivating @ui\n Scenario: The source column displays the program name if the reward is caused automatically by a program\n Given a user with a \"AUTOMATED\" program reward\n And the program has name \"Loyalty Program\"\n When they view the rewards table\n Then the source of their reward is displayed as \"Loyalty Program\"\n\n @motivating @ui\n Scenario Outline: The source column displays customizable reward exchange text with amount if the reward is caused by reward exchange\n Given the \"reward-exchange-text\" prop is <propValue>\n And a user with a \"MANUAL\" reward\n But it was created by a reward exchange\n Then they view the rewards table\n Then the source displays <exchangeText>\n And under it displays the following\n | prettyRedeemedCredit → prettyValue |\n\n Examples:\n | propValue | exchangeText |\n | | Reward Exchange |\n | Exchanged | Exchanged |\n\n @motivating @ui\n Scenario Outline: The source column displays customizable referral information if the reward is from a referral\n Given the \"reward-source-text\" prop is <propValue>\n And a user with a referral reward\n And that reward has <rewardSource>\n When they view the rewards table\n Then then source displays <referralText>\n And under it displays the full name of the <referralUser>\n\n Examples:\n | propValue | rewardSource | referralText | referralUser |\n | | REFERRED | Referred by | referrer user |\n | | FRIEND_SIGNUP | Referral to | referred user |\n | {rewardSource, select, FRIEND_SIGNUP {You Referred} REFERRED {Referred you} other {}} | REFERRED | Referred you | referrer user |\n | {rewardSource, select, FRIEND_SIGNUP {You Referred} REFERRED {Referred you} other {}} | FRIEND_SIGNUP | You Referred | referred user |\n\n @motivating @ui\n Scenario Outline: The source column displays the existing name for a referral if either the first name or last name does not exist\n Given a user with a referral reward\n And referral user exists\n And referral user has <name>\n But referral user has no <otherName>\n When they view the rewards table\n Then referral user's name is displayed as <name>\n\n Examples:\n | name | otherName |\n | first.name | last.name |\n | last.name | first.name |\n\n @motivating @ui\n Scenario Outline: The source column displays referral as \"Anonymous User\" if the referral user has no names\n Given a user with a referral reward\n And that reward has <rewardSource>\n And the <referralUser> has no first name\n And the <referralUser> has no last name\n When they view the rewards table\n Then then source displays <sourceText>\n And under it displays \"Anonymous User\"\n\n Examples:\n | rewardSource | referralUser | sourceText |\n | FRIEND_SIGNUP | referrer | Referral to |\n | REFERRED | referred user | Referred by |\n\n @motivating @ui\n Scenario Outline: The source column displays referral as \"Deleted User\" if the referral user is deleted in the system\n Given a user with a referral reward\n And that reward has <rewardSource>\n But <referral> user was deleted\n When they view the rewards table\n Then the source displays <sourceText>\n And under it displays \"Deleted User\"\n\n Examples:\n | rewardSource | referral | sourceText |\n | \"FRIEND_SIGNUP\" | referrer | Referral to |\n | \"REFERRED\" | referred | Referred by |\n\n @motivating @ui\n Scenario Outline: The source column displays referral as \"Deleted referral\" if the referral user is deleted in the system\n Given a user with a referral reward\n And that reward has <rewardSource>\n But <referral> user was deleted\n When they view the rewards table\n Then the source displays <sourceText>\n And under it displays \"Deleted referral\"\n\n Examples:\n | rewardSource | referral | sourceText |\n | \"FRIEND_SIGNUP\" | referrer | Referral to |\n | \"REFERRED\" | referred | Referred by |\n\n @minutia @ui\n Scenario Outline: Name fallbacks for referral users without names are customizable\n Given <prop> with <value>\n And a user with a referral reward\n But the referral user <hadAction>\n When they view the rewards table\n Then the source displays <value> as the referral user\n\n Examples:\n | prop | value | hadAction |\n | deleted-user | Former Customer | was deleted |\n | anonymous-user | Nameless User | had first and last name deleted |\n\n @motivating\n Scenario Outline: Source text can be customized\n Given the \"reward-source-text\" prop is \"{rewardSource, select, MANUAL {Support} AUTOMATED {Loyalty Program} other {}}\"\n And a user with a <rewardSource> reward\n When they view the rewards table\n Then the source is <sourceText>\n\n Examples:\n | rewardSource | sourceText |\n | MANUAL | Support |\n | AUTOMATED | Loyalty Program |\n";
|
|
12030
12030
|
|
|
@@ -12055,7 +12055,7 @@ const rewardsData$1 = {
|
|
|
12055
12055
|
prettyAvailableNumber: "19",
|
|
12056
12056
|
prettyRedeemedNumber: "0",
|
|
12057
12057
|
statuses: ["AVAILABLE", "PENDING"],
|
|
12058
|
-
pendingReasons: ["US_TAX", "
|
|
12058
|
+
pendingReasons: ["US_TAX", "MISSING_PAYOUT_CONFIGURATION"],
|
|
12059
12059
|
globalRewardKey: null,
|
|
12060
12060
|
rewardSource: "MANUAL",
|
|
12061
12061
|
prettyRedeemedCredit: "0 Points",
|
|
@@ -12348,7 +12348,7 @@ const StatusCellPendingTaxSubmission = () => {
|
|
|
12348
12348
|
const StatusCellPendingPartnerCreation = () => {
|
|
12349
12349
|
return (h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: {
|
|
12350
12350
|
...rewardsData$1,
|
|
12351
|
-
pendingReasons: ["
|
|
12351
|
+
pendingReasons: ["MISSING_PAYOUT_CONFIGURATION"],
|
|
12352
12352
|
} }));
|
|
12353
12353
|
};
|
|
12354
12354
|
const StatusCellPayoutSent = () => {
|
|
@@ -986,11 +986,11 @@ const GET_USER_STATUS = dist.gql `
|
|
|
986
986
|
function getStatus(data) {
|
|
987
987
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
988
988
|
const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
|
|
989
|
-
if (((_c =
|
|
989
|
+
if (!((_d = (_c = data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.connected) || !account)
|
|
990
|
+
return "INFORMATION_REQUIRED";
|
|
991
|
+
if (((_e = account.holdReasons) === null || _e === void 0 ? void 0 : _e.length) === 1 && ((_f = account.holdReasons) === null || _f === void 0 ? void 0 : _f.includes("NEW_PAYEE_REVIEW"))) {
|
|
990
992
|
return "DONE";
|
|
991
993
|
}
|
|
992
|
-
if (!((_f = (_e = data.user) === null || _e === void 0 ? void 0 : _e.impactConnection) === null || _f === void 0 ? void 0 : _f.connected) || !account)
|
|
993
|
-
return "INFORMATION_REQUIRED";
|
|
994
994
|
if ((_g = account.holdReasons) === null || _g === void 0 ? void 0 : _g.includes("IDV_CHECK_REQUIRED"))
|
|
995
995
|
return "VERIFICATION:REQUIRED";
|
|
996
996
|
if ((_h = account.holdReasons) === null || _h === void 0 ? void 0 : _h.includes("IDV_CHECK_REQUIRED_INTERNAL"))
|