@artsy/cohesion 4.320.0 → 4.322.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.
@@ -0,0 +1,11 @@
1
+ name: ☢️ Danger - Yarn
2
+
3
+ on:
4
+ pull_request:
5
+ types: [opened, reopened, synchronize]
6
+
7
+ jobs:
8
+ run-danger-yarn:
9
+ uses: artsy/duchamp/.github/workflows/danger-yarn.yml@main
10
+ secrets:
11
+ danger-token: ${{ secrets.DANGER_TOKEN }}
package/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ # v4.322.0 (Thu Nov 13 2025)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - chore: Add Completeness Score events [#657](https://github.com/artsy/cohesion/pull/657) ([@olerichter00](https://github.com/olerichter00))
6
+
7
+ #### Authors: 1
8
+
9
+ - Ole ([@olerichter00](https://github.com/olerichter00))
10
+
11
+ ---
12
+
13
+ # v4.321.0 (Mon Nov 10 2025)
14
+
15
+ #### 🚀 Enhancement
16
+
17
+ - feat: add yarn check github action [#656](https://github.com/artsy/cohesion/pull/656) ([@mc-jones](https://github.com/mc-jones))
18
+
19
+ #### Authors: 1
20
+
21
+ - Matt Jones ([@mc-jones](https://github.com/mc-jones))
22
+
23
+ ---
24
+
1
25
  # v4.320.0 (Mon Nov 10 2025)
2
26
 
3
27
  #### 🚀 Enhancement
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Schemas describing CMS CompletenessScore events
3
+ * @packageDocumentation
4
+ */
5
+ import { CmsContextModule } from "../Values/CmsContextModule";
6
+ import { CmsActionType } from ".";
7
+ /**
8
+ * Generic click event in the completeness score flow.
9
+ *
10
+ * @example
11
+ * {
12
+ * action: "click",
13
+ * context_module: "Artworks - completeness score",
14
+ * label: "view details",
15
+ * artwork_ids: ["artwork1", "artwork2", "artwork3"]
16
+ * }
17
+ */
18
+ export type CmsCompletenessScoreClickLabel = "view details" | "improve score" | "dismiss";
19
+ export interface CmsCompletenessScoreClickedEvent {
20
+ action: "click";
21
+ context_module: CmsContextModule.completenessScore;
22
+ label: CmsCompletenessScoreClickLabel;
23
+ value?: string | number;
24
+ artwork_ids?: string[];
25
+ }
26
+ /**
27
+ * Completeness score modal has been shown to a partner.
28
+ *
29
+ * @example
30
+ * ```
31
+ * {
32
+ * action: "shownCompletenessScoreModal",
33
+ * context_module: "Artworks - completeness score",
34
+ * artwork_id: "artwork123",
35
+ * completeness_score: 75,
36
+ * completeness_tier: "good",
37
+ * checklist: [
38
+ * { completed: true, key: "title" },
39
+ * { completed: false, key: "description" }
40
+ * ]
41
+ * }
42
+ * ```
43
+ */
44
+ export interface CmsCompletenessScoreModalShown {
45
+ action: CmsActionType.shownCompletenessScoreModal;
46
+ context_module: CmsContextModule.completenessScore;
47
+ artwork_id: string;
48
+ completeness_score: number;
49
+ completeness_tier: string;
50
+ checklist: Array<{
51
+ completed: boolean;
52
+ key: string;
53
+ }>;
54
+ }
55
+ export type CmsCompletenessScoreFlow = CmsCompletenessScoreClickedEvent | CmsCompletenessScoreModalShown;
@@ -0,0 +1 @@
1
+ "use strict";
@@ -2,6 +2,7 @@ import { CmsAnalyticsPage } from "./AnalyticsPage";
2
2
  import { CmsArtworkFilter } from "./ArtworkFilter";
3
3
  import { CmsBatchImportFlow } from "./BatchImportFlow";
4
4
  import { CmsBulkEditFlow } from "./BulkEditFlow";
5
+ import { CmsCompletenessScoreFlow } from "./CompletenessScoreFlow";
5
6
  import { CmsQuickReplyFlow } from "./QuickReplyFlow";
6
7
  import { CmsSettingsFlow } from "./SettingsFlow";
7
8
  import { CmsShowFlow } from "./ShowFlow";
@@ -11,7 +12,7 @@ import { CmsUploadArtworkFlow } from "./UploadArtworkFlow";
11
12
  *
12
13
  * Each event describes one ActionType
13
14
  */
14
- export type CmsEvent = CmsAnalyticsPage | CmsArtworkFilter | CmsBulkEditFlow | CmsBatchImportFlow | CmsUploadArtworkFlow | CmsQuickReplyFlow | CmsSettingsFlow | CmsShowFlow;
15
+ export type CmsEvent = CmsAnalyticsPage | CmsArtworkFilter | CmsBulkEditFlow | CmsBatchImportFlow | CmsCompletenessScoreFlow | CmsUploadArtworkFlow | CmsQuickReplyFlow | CmsSettingsFlow | CmsShowFlow;
15
16
  /**
16
17
  * List of all CMS actions
17
18
  *
@@ -102,6 +103,10 @@ export declare enum CmsActionType {
102
103
  * Corresponds to {@link BatchImportFlow}
103
104
  */
104
105
  shownMissingInformation = "shownMissingInformation",
106
+ /**
107
+ * Corresponds to {@link CmsCompletenessScoreFlow}
108
+ */
109
+ shownCompletenessScoreModal = "shownCompletenessScoreModal",
105
110
  /**
106
111
  * Corresponds to {@link CmsAnalytics}
107
112
  */
@@ -41,6 +41,7 @@ exports.CmsActionType = CmsActionType;
41
41
  CmsActionType["shownMaxEditLimitReached"] = "shownMaxEditLimitReached";
42
42
  CmsActionType["shownResolvedAllConflicts"] = "shownResolvedAllConflicts";
43
43
  CmsActionType["shownMissingInformation"] = "shownMissingInformation";
44
+ CmsActionType["shownCompletenessScoreModal"] = "shownCompletenessScoreModal";
44
45
  CmsActionType["viewedGraph"] = "viewedGraph";
45
46
  CmsActionType["viewedGraphDatapoint"] = "viewedGraphDatapoint";
46
47
  CmsActionType["viewedTooltip"] = "viewedTooltip";
@@ -17,6 +17,7 @@ export declare enum CmsContextModule {
17
17
  artworkFilterQuickEdit = "Artworks - quick edit",
18
18
  batchImportFlow = "batchImportFlow",
19
19
  bulkEditFlow = "Artworks - bulk edit",
20
+ completenessScore = "Artworks - completeness score",
20
21
  conversations = "conversations",
21
22
  uploads = "Uploads",
22
23
  settings = "Settings",
@@ -27,6 +27,7 @@ exports.CmsContextModule = CmsContextModule;
27
27
  CmsContextModule["artworkFilterQuickEdit"] = "Artworks - quick edit";
28
28
  CmsContextModule["batchImportFlow"] = "batchImportFlow";
29
29
  CmsContextModule["bulkEditFlow"] = "Artworks - bulk edit";
30
+ CmsContextModule["completenessScore"] = "Artworks - completeness score";
30
31
  CmsContextModule["conversations"] = "conversations";
31
32
  CmsContextModule["uploads"] = "Uploads";
32
33
  CmsContextModule["settings"] = "Settings";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.320.0",
3
+ "version": "4.322.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {