@remit/ui 0.0.84 → 0.0.86
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
|
@@ -52,6 +52,52 @@ export const CautionNoSignal: Story = {
|
|
|
52
52
|
},
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
+
export const SignedButUnrecognised: Story = {
|
|
56
|
+
args: {
|
|
57
|
+
data: {
|
|
58
|
+
...base,
|
|
59
|
+
sender: {
|
|
60
|
+
name: "InfoMedics",
|
|
61
|
+
email: "jira@serviceupdatebank.atlassian.net",
|
|
62
|
+
trust: "unknown",
|
|
63
|
+
firstSeenLabel: "today",
|
|
64
|
+
},
|
|
65
|
+
category: { value: "Automated" },
|
|
66
|
+
authenticity: {
|
|
67
|
+
verdict: "caution",
|
|
68
|
+
fromDomain: "serviceupdatebank.atlassian.net",
|
|
69
|
+
dkimDomain: "custmx.one.com",
|
|
70
|
+
claimedBrand: "InfoMedics",
|
|
71
|
+
summary:
|
|
72
|
+
'This message really was sent by serviceupdatebank.atlassian.net. The name it shows, "InfoMedics", has nothing to do with that domain. Its links go to betaal-vordering.example.',
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export const SignedButLookalikeName: Story = {
|
|
79
|
+
args: {
|
|
80
|
+
data: {
|
|
81
|
+
...base,
|
|
82
|
+
sender: {
|
|
83
|
+
name: "InfoMedics",
|
|
84
|
+
email: "billing@1nfomedics.nl",
|
|
85
|
+
trust: "unknown",
|
|
86
|
+
firstSeenLabel: "today",
|
|
87
|
+
},
|
|
88
|
+
category: { value: "Transactional" },
|
|
89
|
+
authenticity: {
|
|
90
|
+
verdict: "caution",
|
|
91
|
+
fromDomain: "1nfomedics.nl",
|
|
92
|
+
dkimDomain: "1nfomedics.nl",
|
|
93
|
+
claimedBrand: "InfoMedics",
|
|
94
|
+
summary:
|
|
95
|
+
'This message really was sent by 1nfomedics.nl. The name it shows, "InfoMedics", only looks like that domain.',
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
};
|
|
100
|
+
|
|
55
101
|
export const Impersonation: Story = {
|
|
56
102
|
args: {
|
|
57
103
|
data: {
|
|
@@ -147,3 +193,33 @@ export const WithSimilarMessages: Story = {
|
|
|
147
193
|
},
|
|
148
194
|
},
|
|
149
195
|
};
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* The spam quick actions are symmetric and mutually exclusive, decided by the
|
|
199
|
+
* mailbox the message is in. A message sitting in Junk is offered the way out.
|
|
200
|
+
*/
|
|
201
|
+
export const InJunk: Story = {
|
|
202
|
+
args: {
|
|
203
|
+
data: base,
|
|
204
|
+
actions: { onNotSpam: () => {} },
|
|
205
|
+
},
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
/** The inverse, for a message anywhere else. */
|
|
209
|
+
export const OutsideJunk: Story = {
|
|
210
|
+
args: {
|
|
211
|
+
data: base,
|
|
212
|
+
actions: { onMarkSpam: () => {} },
|
|
213
|
+
},
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* The move has been made. Neither action is offered: pressing the one that just
|
|
218
|
+
* ran would ask the mail server to move the message to where it already is.
|
|
219
|
+
*/
|
|
220
|
+
export const SpamActionSpent: Story = {
|
|
221
|
+
args: {
|
|
222
|
+
data: base,
|
|
223
|
+
actions: {},
|
|
224
|
+
},
|
|
225
|
+
};
|