@artsy/cohesion 4.380.0 → 4.381.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/CHANGELOG.md +12 -0
- package/dist/Schema/index.d.ts +1 -0
- package/dist/Schema/index.js +12 -0
- package/dist/Schema/os/Events/OnboardingFlow.d.ts +76 -0
- package/dist/Schema/os/Events/OnboardingFlow.js +1 -0
- package/dist/Schema/os/Events/__tests__/OnboardingFlow.test.d.ts +1 -0
- package/dist/Schema/os/Events/index.d.ts +14 -1
- package/dist/Schema/os/Events/index.js +3 -0
- package/dist/Schema/os/Values/OsContextModule.d.ts +1 -0
- package/dist/Schema/os/Values/OsContextModule.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v4.381.0 (Wed Jul 01 2026)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- chore: add onboarding tracking [#722](https://github.com/artsy/cohesion/pull/722) ([@mc-jones](https://github.com/mc-jones))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Matt Jones ([@mc-jones](https://github.com/mc-jones))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v4.380.0 (Tue Jun 30 2026)
|
|
2
14
|
|
|
3
15
|
#### 🚀 Enhancement
|
package/dist/Schema/index.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ export * from "./os/Events/InventoryTable";
|
|
|
60
60
|
export * from "./os/Events/MailchimpEditor";
|
|
61
61
|
export * from "./os/Events/MaterialsEditor";
|
|
62
62
|
export * from "./os/Events/MultiAddFlow";
|
|
63
|
+
export * from "./os/Events/OnboardingFlow";
|
|
63
64
|
export * from "./os/Events/Submit";
|
|
64
65
|
export * from "./os/Events/Toggle";
|
|
65
66
|
export * from "./os/Values/OsContextModule";
|
package/dist/Schema/index.js
CHANGED
|
@@ -640,6 +640,18 @@ Object.keys(_MultiAddFlow).forEach(function (key) {
|
|
|
640
640
|
});
|
|
641
641
|
});
|
|
642
642
|
|
|
643
|
+
var _OnboardingFlow = require("./os/Events/OnboardingFlow");
|
|
644
|
+
|
|
645
|
+
Object.keys(_OnboardingFlow).forEach(function (key) {
|
|
646
|
+
if (key === "default" || key === "__esModule") return;
|
|
647
|
+
Object.defineProperty(exports, key, {
|
|
648
|
+
enumerable: true,
|
|
649
|
+
get: function get() {
|
|
650
|
+
return _OnboardingFlow[key];
|
|
651
|
+
}
|
|
652
|
+
});
|
|
653
|
+
});
|
|
654
|
+
|
|
643
655
|
var _Submit = require("./os/Events/Submit");
|
|
644
656
|
|
|
645
657
|
Object.keys(_Submit).forEach(function (key) {
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Schemas describing Art OS Onboarding Flow events
|
|
3
|
+
* @packageDocumentation
|
|
4
|
+
*/
|
|
5
|
+
import { OsContextModule } from "../Values/OsContextModule";
|
|
6
|
+
import { OsOwnerType } from "../Values/OsOwnerType";
|
|
7
|
+
import { OsActionType } from "./index";
|
|
8
|
+
/**
|
|
9
|
+
* A partner clicks the "Show me how" link on a Getting Started checklist step
|
|
10
|
+
* to open the guidance for that step.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```
|
|
14
|
+
* {
|
|
15
|
+
* action: "clickedShowMeHow",
|
|
16
|
+
* context_module: "onboardingFlow",
|
|
17
|
+
* context_page_owner_type: "inventory",
|
|
18
|
+
* step: "create an artwork"
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export interface ClickedShowMeHow {
|
|
23
|
+
action: OsActionType.clickedShowMeHow;
|
|
24
|
+
context_module: OsContextModule.onboardingFlow;
|
|
25
|
+
context_page_owner_type: OsOwnerType.collection | OsOwnerType.inventory;
|
|
26
|
+
step: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Fires when the partner completes the final remaining step of the Getting Started
|
|
30
|
+
* checklist — the "🎉 You're all set!" moment (10 of 10). If the checklist gains
|
|
31
|
+
* steps later, completion recomputes and this event may re-fire when the new full
|
|
32
|
+
* set is completed.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```
|
|
36
|
+
* {
|
|
37
|
+
* action: "completedOnboarding",
|
|
38
|
+
* context_module: "onboardingFlow",
|
|
39
|
+
* context_page_owner_type: "inventory",
|
|
40
|
+
* total_steps: 10
|
|
41
|
+
* }
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export interface CompletedGettingStarted {
|
|
45
|
+
action: OsActionType.completedOnboarding;
|
|
46
|
+
context_module: OsContextModule.onboardingFlow;
|
|
47
|
+
context_page_owner_type: OsOwnerType.collection | OsOwnerType.inventory;
|
|
48
|
+
total_steps: number;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Fires each time a Getting Started checklist item is auto-ticked (step completed).
|
|
52
|
+
* Records which step finished and how far the partner has progressed.
|
|
53
|
+
* Onboarding is tracked per-user, not per-gallery.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```
|
|
57
|
+
* {
|
|
58
|
+
* action: "progressedOnboarding",
|
|
59
|
+
* completed_step_count: 3,
|
|
60
|
+
* context_module: "onboardingFlow",
|
|
61
|
+
* context_page_owner_type: "inventory",
|
|
62
|
+
* step: "create an artwork",
|
|
63
|
+
* total_steps: 10
|
|
64
|
+
* }
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
export interface ProgressedGettingStarted {
|
|
68
|
+
action: OsActionType.progressedOnboarding;
|
|
69
|
+
completed_step_count: number;
|
|
70
|
+
context_module: OsContextModule.onboardingFlow;
|
|
71
|
+
context_page_owner_type: OsOwnerType.collection | OsOwnerType.inventory;
|
|
72
|
+
/** Lower-case label matching UI copy (e.g. "create an artwork"). Typed as `string` because steps are backend-defined and expected to evolve. */
|
|
73
|
+
step: string;
|
|
74
|
+
total_steps: number;
|
|
75
|
+
}
|
|
76
|
+
export type OsOnboardingFlow = ClickedShowMeHow | CompletedGettingStarted | ProgressedGettingStarted;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -7,6 +7,7 @@ import { OsInventoryTable } from "./InventoryTable";
|
|
|
7
7
|
import { OsMailchimpEditor } from "./MailchimpEditor";
|
|
8
8
|
import { OsMaterialsEditor } from "./MaterialsEditor";
|
|
9
9
|
import { OsMultiAddFlow } from "./MultiAddFlow";
|
|
10
|
+
import { OsOnboardingFlow } from "./OnboardingFlow";
|
|
10
11
|
import { OsSubmitEvent } from "./Submit";
|
|
11
12
|
import { OsToggleEvent } from "./Toggle";
|
|
12
13
|
/**
|
|
@@ -14,7 +15,7 @@ import { OsToggleEvent } from "./Toggle";
|
|
|
14
15
|
*
|
|
15
16
|
* Each event describes one ActionType
|
|
16
17
|
*/
|
|
17
|
-
export type OsEvent =
|
|
18
|
+
export type OsEvent = ClickedAddBrandKitFile | ClickedBrandKitColor | ClickedBrandKitFont | ClickedSaveBrandKit | OsClickEvent | OsConnectedAppsFlow | OsFilterSortSearch | OsInstagramEditor | OsInventoryTable | OsMailchimpEditor | OsMaterialsEditor | OsMultiAddFlow | OsOnboardingFlow | OsSubmitEvent | OsToggleEvent;
|
|
18
19
|
/**
|
|
19
20
|
* List of all Art OS actions
|
|
20
21
|
*
|
|
@@ -118,6 +119,10 @@ export declare enum OsActionType {
|
|
|
118
119
|
* Corresponds to {@link OsInstagramEditor}
|
|
119
120
|
*/
|
|
120
121
|
clickedPublishConfirmation = "clickedPublishConfirmation",
|
|
122
|
+
/**
|
|
123
|
+
* Corresponds to {@link ClickedShowMeHow}
|
|
124
|
+
*/
|
|
125
|
+
clickedShowMeHow = "clickedShowMeHow",
|
|
121
126
|
/**
|
|
122
127
|
* Corresponds to {@link OsMailchimpEditor}
|
|
123
128
|
*/
|
|
@@ -134,6 +139,10 @@ export declare enum OsActionType {
|
|
|
134
139
|
* Corresponds to {@link CompletedArtworkImport}
|
|
135
140
|
*/
|
|
136
141
|
completedArtworkImport = "completedArtworkImport",
|
|
142
|
+
/**
|
|
143
|
+
* Corresponds to {@link CompletedGettingStarted}
|
|
144
|
+
*/
|
|
145
|
+
completedOnboarding = "completedOnboarding",
|
|
137
146
|
/**
|
|
138
147
|
* Corresponds to {@link ConvertedArtworkToUnique}
|
|
139
148
|
*/
|
|
@@ -187,6 +196,10 @@ export declare enum OsActionType {
|
|
|
187
196
|
* Corresponds to {@link MovedArtworksBetweenLists}
|
|
188
197
|
*/
|
|
189
198
|
movedArtworksBetweenLists = "movedArtworksBetweenLists",
|
|
199
|
+
/**
|
|
200
|
+
* Corresponds to {@link ProgressedGettingStarted}
|
|
201
|
+
*/
|
|
202
|
+
progressedOnboarding = "progressedOnboarding",
|
|
190
203
|
/**
|
|
191
204
|
* Corresponds to {@link OsInventoryTable}
|
|
192
205
|
*/
|
|
@@ -45,10 +45,12 @@ exports.OsActionType = OsActionType;
|
|
|
45
45
|
OsActionType["clickedImagesModal"] = "clickedImagesModal";
|
|
46
46
|
OsActionType["clickedOpenList"] = "clickedOpenList";
|
|
47
47
|
OsActionType["clickedPublishConfirmation"] = "clickedPublishConfirmation";
|
|
48
|
+
OsActionType["clickedShowMeHow"] = "clickedShowMeHow";
|
|
48
49
|
OsActionType["clickedSendConfirmation"] = "clickedSendConfirmation";
|
|
49
50
|
OsActionType["clickedUploadImageBank"] = "clickedUploadImageBank";
|
|
50
51
|
OsActionType["completedArtworkDistribution"] = "completedArtworkDistribution";
|
|
51
52
|
OsActionType["completedArtworkImport"] = "completedArtworkImport";
|
|
53
|
+
OsActionType["completedOnboarding"] = "completedOnboarding";
|
|
52
54
|
OsActionType["convertedArtworkToUnique"] = "convertedArtworkToUnique";
|
|
53
55
|
OsActionType["createdEditionSet"] = "createdEditionSet";
|
|
54
56
|
OsActionType["createdImportedArtworks"] = "createdImportedArtworks";
|
|
@@ -62,6 +64,7 @@ exports.OsActionType = OsActionType;
|
|
|
62
64
|
OsActionType["editedArtworkField"] = "editedArtworkField";
|
|
63
65
|
OsActionType["editedInventoryField"] = "editedInventoryField";
|
|
64
66
|
OsActionType["movedArtworksBetweenLists"] = "movedArtworksBetweenLists";
|
|
67
|
+
OsActionType["progressedOnboarding"] = "progressedOnboarding";
|
|
65
68
|
OsActionType["removedArtworkDocument"] = "removedArtworkDocument";
|
|
66
69
|
OsActionType["removedFilter"] = "removedFilter";
|
|
67
70
|
OsActionType["removedArtworksFromList"] = "removedArtworksFromList";
|
|
@@ -33,6 +33,7 @@ export declare enum OsContextModule {
|
|
|
33
33
|
materialsEditor = "materialsEditor",
|
|
34
34
|
multiAdd = "multiAdd",
|
|
35
35
|
multiAddReview = "multiAddReview",
|
|
36
|
+
onboardingFlow = "onboardingFlow",
|
|
36
37
|
publishConfirmationModal = "publishConfirmationModal",
|
|
37
38
|
sendConfirmationModal = "sendConfirmationModal",
|
|
38
39
|
tableActions = "tableActions"
|
|
@@ -43,6 +43,7 @@ exports.OsContextModule = OsContextModule;
|
|
|
43
43
|
OsContextModule["materialsEditor"] = "materialsEditor";
|
|
44
44
|
OsContextModule["multiAdd"] = "multiAdd";
|
|
45
45
|
OsContextModule["multiAddReview"] = "multiAddReview";
|
|
46
|
+
OsContextModule["onboardingFlow"] = "onboardingFlow";
|
|
46
47
|
OsContextModule["publishConfirmationModal"] = "publishConfirmationModal";
|
|
47
48
|
OsContextModule["sendConfirmationModal"] = "sendConfirmationModal";
|
|
48
49
|
OsContextModule["tableActions"] = "tableActions";
|