@remit/ui 0.0.133 → 0.0.135

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/ui",
3
- "version": "0.0.133",
3
+ "version": "0.0.135",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src"
@@ -52,3 +52,31 @@ export const NonDestructive: Story = {
52
52
  destructive: false,
53
53
  },
54
54
  };
55
+
56
+ /**
57
+ * Deleting mail that already sits in Trash expunges it on the server, so the
58
+ * dialog asks that question instead of "move to Trash?" — the wording follows
59
+ * the consequence, never the button that opened it (#845).
60
+ */
61
+ export const PermanentDelete: Story = {
62
+ args: {
63
+ title: "Permanently delete 12 messages?",
64
+ description: "They are erased from the mail server and cannot be restored.",
65
+ confirmLabel: "Delete permanently",
66
+ },
67
+ };
68
+
69
+ /**
70
+ * The account's Trash appointment has not resolved yet, so which of the two
71
+ * dialogs above applies is not yet known. Rather than guess the reversible
72
+ * wording over what may be an expunge, the copy stays neutral and the confirm
73
+ * holds until the answer arrives.
74
+ */
75
+ export const OutcomeUnknown: Story = {
76
+ args: {
77
+ title: "Delete 12 messages?",
78
+ description: "Checking where this account files deleted mail…",
79
+ confirmLabel: "Delete",
80
+ isBusy: true,
81
+ },
82
+ };
@@ -655,11 +655,11 @@ describe("RunStepBody", () => {
655
655
  verb: "junk",
656
656
  scope: "once",
657
657
  failureReason:
658
- "This account has no Junk folder appointed, so there is nowhere to file these. Appoint one under Settings › Folders.",
658
+ "This account has no Junk folder appointed, so there is nowhere to file these. Appoint one under Settings › Folder roles.",
659
659
  }),
660
660
  );
661
661
  assert.match(text(html), /no Junk folder appointed/);
662
- assert.match(text(html), /Settings › Folders/);
662
+ assert.match(text(html), /Settings › Folder roles/);
663
663
  assert.doesNotMatch(html, /Nothing has changed\./);
664
664
  });
665
665
 
@@ -606,7 +606,7 @@ describe("runCopy", () => {
606
606
  // that would.
607
607
  it("carries the reason a commit could not start, in place of a retry", () => {
608
608
  const reason =
609
- "This account has no Junk folder appointed, so there is nowhere to file these. Appoint one under Settings › Folders.";
609
+ "This account has no Junk folder appointed, so there is nowhere to file these. Appoint one under Settings › Folder roles.";
610
610
  const blocked = runCopy({
611
611
  state: "commitFailed",
612
612
  verb: "junk",