@drawbridge/components 0.1.3 → 0.1.4
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.
|
@@ -288,7 +288,9 @@ const published = {
|
|
|
288
288
|
};
|
|
289
289
|
const running = {
|
|
290
290
|
active: { text: "Active", type: "success" },
|
|
291
|
-
error: { text: "Error", type: "error" }
|
|
291
|
+
error: { text: "Error", type: "error" },
|
|
292
|
+
paused: { text: "Paused", type: "warning" },
|
|
293
|
+
pending: { text: "Pending", type: "warning" }
|
|
292
294
|
};
|
|
293
295
|
const organizationStatuses = ["active", "canceled", "incomplete", "incomplete_expired", "locked", "past_due", "paused", "suspended", "trialing", "unpaid", "unsubscribed"];
|
|
294
296
|
const statuses = {
|
|
@@ -299,9 +301,14 @@ const statuses = {
|
|
|
299
301
|
disqualified: { text: "Disqualified", type: "error" },
|
|
300
302
|
verified: { text: "Verified", type: "success" }
|
|
301
303
|
},
|
|
304
|
+
// Every Stripe invoice status, in one set of colours across the dashboard: money
|
|
305
|
+
// owed is red, paid green, a draft or a voided invoice gray.
|
|
302
306
|
invoice: {
|
|
307
|
+
draft: { text: "Draft", type: "secondary" },
|
|
308
|
+
open: { text: "Open", type: "error" },
|
|
303
309
|
paid: { text: "Paid", type: "success" },
|
|
304
|
-
|
|
310
|
+
uncollectible: { text: "Uncollectible", type: "error" },
|
|
311
|
+
void: { text: "Void", type: "secondary" }
|
|
305
312
|
},
|
|
306
313
|
// A lead's status is derived per campaign from the denial records: approved or
|
|
307
314
|
// denied. Approved is every lead's normal state, so only Denied shows, as on
|
|
@@ -309,11 +316,11 @@ const statuses = {
|
|
|
309
316
|
lead: {
|
|
310
317
|
denied: { text: "Denied", type: "error" }
|
|
311
318
|
},
|
|
312
|
-
// pending is a member who has been invited and not yet accepted.
|
|
319
|
+
// pending is a member who has been invited and not yet accepted: yellow, like every pending.
|
|
313
320
|
member: {
|
|
314
|
-
pending: { text: "Invited", type: "
|
|
321
|
+
pending: { text: "Invited", type: "warning" }
|
|
315
322
|
},
|
|
316
|
-
organization: Object.fromEntries(organizationStatuses.map((status) => [status, { text: (0, import_drawbridge_utils.capitalize)(status.replace("_", " ")), type: ["active", "unsubscribed"].includes(status) ? "success" : "error" }])),
|
|
323
|
+
organization: Object.fromEntries(organizationStatuses.map((status) => [status, { text: (0, import_drawbridge_utils.capitalize)(status.replace("_", " ")), type: ["active", "unsubscribed"].includes(status) ? "success" : status === "paused" ? "warning" : "error" }])),
|
|
317
324
|
page: published,
|
|
318
325
|
prize: published,
|
|
319
326
|
range: {
|
|
@@ -229,7 +229,9 @@ const published = {
|
|
|
229
229
|
};
|
|
230
230
|
const running = {
|
|
231
231
|
active: { text: "Active", type: "success" },
|
|
232
|
-
error: { text: "Error", type: "error" }
|
|
232
|
+
error: { text: "Error", type: "error" },
|
|
233
|
+
paused: { text: "Paused", type: "warning" },
|
|
234
|
+
pending: { text: "Pending", type: "warning" }
|
|
233
235
|
};
|
|
234
236
|
const organizationStatuses = ["active", "canceled", "incomplete", "incomplete_expired", "locked", "past_due", "paused", "suspended", "trialing", "unpaid", "unsubscribed"];
|
|
235
237
|
const statuses = {
|
|
@@ -240,9 +242,14 @@ const statuses = {
|
|
|
240
242
|
disqualified: { text: "Disqualified", type: "error" },
|
|
241
243
|
verified: { text: "Verified", type: "success" }
|
|
242
244
|
},
|
|
245
|
+
// Every Stripe invoice status, in one set of colours across the dashboard: money
|
|
246
|
+
// owed is red, paid green, a draft or a voided invoice gray.
|
|
243
247
|
invoice: {
|
|
248
|
+
draft: { text: "Draft", type: "secondary" },
|
|
249
|
+
open: { text: "Open", type: "error" },
|
|
244
250
|
paid: { text: "Paid", type: "success" },
|
|
245
|
-
|
|
251
|
+
uncollectible: { text: "Uncollectible", type: "error" },
|
|
252
|
+
void: { text: "Void", type: "secondary" }
|
|
246
253
|
},
|
|
247
254
|
// A lead's status is derived per campaign from the denial records: approved or
|
|
248
255
|
// denied. Approved is every lead's normal state, so only Denied shows, as on
|
|
@@ -250,11 +257,11 @@ const statuses = {
|
|
|
250
257
|
lead: {
|
|
251
258
|
denied: { text: "Denied", type: "error" }
|
|
252
259
|
},
|
|
253
|
-
// pending is a member who has been invited and not yet accepted.
|
|
260
|
+
// pending is a member who has been invited and not yet accepted: yellow, like every pending.
|
|
254
261
|
member: {
|
|
255
|
-
pending: { text: "Invited", type: "
|
|
262
|
+
pending: { text: "Invited", type: "warning" }
|
|
256
263
|
},
|
|
257
|
-
organization: Object.fromEntries(organizationStatuses.map((status) => [status, { text: capitalize(status.replace("_", " ")), type: ["active", "unsubscribed"].includes(status) ? "success" : "error" }])),
|
|
264
|
+
organization: Object.fromEntries(organizationStatuses.map((status) => [status, { text: capitalize(status.replace("_", " ")), type: ["active", "unsubscribed"].includes(status) ? "success" : status === "paused" ? "warning" : "error" }])),
|
|
258
265
|
page: published,
|
|
259
266
|
prize: published,
|
|
260
267
|
range: {
|