@artsy/cohesion 4.389.0 → 4.390.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 CHANGED
@@ -1,3 +1,15 @@
1
+ # v4.390.0 (Fri Aug 14 2026)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - feat: Add ArtOS column visibility tracking events [#737](https://github.com/artsy/cohesion/pull/737) ([@olerichter00](https://github.com/olerichter00))
6
+
7
+ #### Authors: 1
8
+
9
+ - Ole ([@olerichter00](https://github.com/olerichter00))
10
+
11
+ ---
12
+
1
13
  # v4.389.0 (Mon Aug 10 2026)
2
14
 
3
15
  #### 🚀 Enhancement
@@ -110,4 +110,4 @@ export interface ClickedOpenList {
110
110
  list_type: string;
111
111
  source: string;
112
112
  }
113
- export type OsClickEvent = ClickedActionsDropdown | ClickedAddUniqueWork | ClickedAddEditionSet | ClickedCancelBulkEdit | ClickedOpenList;
113
+ export type OsClickEvent = ClickedActionsDropdown | ClickedAddEditionSet | ClickedAddUniqueWork | ClickedCancelBulkEdit | ClickedOpenList;
@@ -1,6 +1,7 @@
1
1
  import { OsContextModule } from "../Values/OsContextModule";
2
2
  import { OsOwnerType } from "../Values/OsOwnerType";
3
3
  import { OsActionType } from ".";
4
+ import { ChangedInventoryTableColumnVisibility } from "./Submit";
4
5
  /**
5
6
  * Schemas describing Art OS Inventory Table events
6
7
  * @packageDocumentation
@@ -384,4 +385,4 @@ export interface OsReorderedInventoryTableColumns {
384
385
  /** Full resulting column key order (reorderable columns only, pinned columns excluded) */
385
386
  new_order: string[];
386
387
  }
387
- export type OsInventoryTable = EditedInventoryField | OsAddedArtist | OsAddedArtworkDocument | OsAddedLocation | OsClickedActionsDropdown | OsClickedArtworkRow | OsClickedEditionSetRow | OsClickedImagesModal | OsEditedArtworkField | OsRemovedArtworkDocument | OsReorderedInventoryTableColumns | OsSavedArtworkImages;
388
+ export type OsInventoryTable = ChangedInventoryTableColumnVisibility | EditedInventoryField | OsAddedArtist | OsAddedArtworkDocument | OsAddedLocation | OsClickedActionsDropdown | OsClickedArtworkRow | OsClickedEditionSetRow | OsClickedImagesModal | OsEditedArtworkField | OsRemovedArtworkDocument | OsReorderedInventoryTableColumns | OsSavedArtworkImages;
@@ -351,6 +351,45 @@ export interface UpdatedEditionSet {
351
351
  variants_edited: number;
352
352
  variants_removed: number;
353
353
  }
354
+ /**
355
+ * A partner changes column visibility either by clicking "Done" in the
356
+ * column-visibility dropdown panel or by right-clicking a header and selecting
357
+ * "Hide column". Fires on persist to localStorage. `mode` distinguishes the two
358
+ * entry points: `dropdown` for the panel's "Done" button, `header` for the
359
+ * right-click context menu.
360
+ *
361
+ * @example Dropdown mode
362
+ * ```
363
+ * {
364
+ * action: "changedInventoryTableColumnVisibility",
365
+ * context_module: "artworkTable",
366
+ * context_page_owner_type: "inventory",
367
+ * hidden_columns: ["inventoryId", "provenance"],
368
+ * visible_columns: ["title", "artist", "price", "medium", "dimensions"],
369
+ * mode: "dropdown"
370
+ * }
371
+ * ```
372
+ *
373
+ * @example Header context menu mode
374
+ * ```
375
+ * {
376
+ * action: "changedInventoryTableColumnVisibility",
377
+ * context_module: "artworkTable",
378
+ * context_page_owner_type: "inventory",
379
+ * hidden_columns: ["provenance"],
380
+ * visible_columns: ["title", "artist", "price", "medium", "dimensions"],
381
+ * mode: "header"
382
+ * }
383
+ * ```
384
+ */
385
+ export interface ChangedInventoryTableColumnVisibility {
386
+ action: OsActionType.changedInventoryTableColumnVisibility;
387
+ context_module: OsContextModule.artworkTable;
388
+ context_page_owner_type: OsOwnerType;
389
+ hidden_columns: string[];
390
+ mode: "dropdown" | "header";
391
+ visible_columns: string[];
392
+ }
354
393
  /**
355
394
  * A partner confirms or cancels reverting an edition-set artwork to a unique
356
395
  * work in the Convert to Unique confirmation modal.
@@ -373,4 +412,4 @@ export interface ConvertedArtworkToUnique {
373
412
  context_page_owner_type: OsOwnerType;
374
413
  value: "confirm" | "cancel";
375
414
  }
376
- export type OsSubmitEvent = AddedArtworksToList | BulkEditedArtworks | BulkEditedArtworks | CompletedArtworkDistribution | ConvertedArtworkToUnique | CreatedEditionSet | CreatedList | CreatedList | DeletedArtwork | DeletedArtwork | DeletedList | DistributedArtworks | DistributedArtworks | DistributedList | MovedArtworksBetweenLists | RemovedArtworksFromList | UpdatedEditionSet | UpdatedList;
415
+ export type OsSubmitEvent = AddedArtworksToList | BulkEditedArtworks | BulkEditedArtworks | ChangedInventoryTableColumnVisibility | CompletedArtworkDistribution | ConvertedArtworkToUnique | CreatedEditionSet | CreatedList | CreatedList | DeletedArtwork | DeletedArtwork | DeletedList | DistributedArtworks | DistributedArtworks | DistributedList | MovedArtworksBetweenLists | RemovedArtworksFromList | UpdatedEditionSet | UpdatedList;
@@ -22,14 +22,14 @@ export type OsEvent = ClickedAddBrandKitFile | ClickedBrandKitColor | ClickedBra
22
22
  * Each OsActionType corresponds with a table in Redshift.
23
23
  */
24
24
  export declare enum OsActionType {
25
- /**
26
- * Corresponds to {@link OsFilterSortSearch}
27
- */
28
- appliedFilter = "appliedFilter",
29
25
  /**
30
26
  * Corresponds to {@link OsInventoryTable}
31
27
  */
32
28
  addedArtist = "addedArtist",
29
+ /**
30
+ * Corresponds to {@link OsFilterSortSearch}
31
+ */
32
+ appliedFilter = "appliedFilter",
33
33
  /**
34
34
  * Corresponds to {@link OsInventoryTable}
35
35
  */
@@ -50,6 +50,10 @@ export declare enum OsActionType {
50
50
  * Corresponds to {@link CancelledArtworkImport}
51
51
  */
52
52
  cancelledArtworkImport = "cancelledArtworkImport",
53
+ /**
54
+ * Corresponds to {@link ChangedInventoryTableColumnVisibility}
55
+ */
56
+ changedInventoryTableColumnVisibility = "changedInventoryTableColumnVisibility",
53
57
  /**
54
58
  * Corresponds to {@link OsClickedActionsDropdown}
55
59
  */
@@ -79,10 +83,6 @@ export declare enum OsActionType {
79
83
  * Corresponds to {@link ClickedCancelBulkEdit}
80
84
  */
81
85
  clickedCancelBulkEdit = "clickedCancelBulkEdit",
82
- /**
83
- * Corresponds to {@link OsFilterSortSearch}
84
- */
85
- clickedFilterDrawer = "clickedFilterDrawer",
86
86
  /**
87
87
  * Corresponds to {@link ClickedConnectAccount}
88
88
  */
@@ -91,6 +91,10 @@ export declare enum OsActionType {
91
91
  * Corresponds to {@link ClickedConnectAccountModal}
92
92
  */
93
93
  clickedConnectAccountModal = "clickedConnectAccountModal",
94
+ /**
95
+ * Corresponds to {@link OsFilterSortSearch}
96
+ */
97
+ clickedFilterDrawer = "clickedFilterDrawer",
94
98
  /**
95
99
  * Corresponds to {@link OsInstagramEditor}
96
100
  */
@@ -20,13 +20,14 @@ var OsActionType;
20
20
  exports.OsActionType = OsActionType;
21
21
 
22
22
  (function (OsActionType) {
23
- OsActionType["appliedFilter"] = "appliedFilter";
24
23
  OsActionType["addedArtist"] = "addedArtist";
24
+ OsActionType["appliedFilter"] = "appliedFilter";
25
25
  OsActionType["addedArtworkDocument"] = "addedArtworkDocument";
26
26
  OsActionType["addedArtworksToList"] = "addedArtworksToList";
27
27
  OsActionType["addedLocation"] = "addedLocation";
28
28
  OsActionType["bulkEditedArtworks"] = "bulkEditedArtworks";
29
29
  OsActionType["cancelledArtworkImport"] = "cancelledArtworkImport";
30
+ OsActionType["changedInventoryTableColumnVisibility"] = "changedInventoryTableColumnVisibility";
30
31
  OsActionType["clickedActionsDropdown"] = "clickedActionsDropdown";
31
32
  OsActionType["clickedAddEditionSet"] = "clickedAddEditionSet";
32
33
  OsActionType["clickedAddFromFile"] = "clickedAddFromFile";
@@ -35,9 +36,9 @@ exports.OsActionType = OsActionType;
35
36
  OsActionType["clickedAspectRatio"] = "clickedAspectRatio";
36
37
  OsActionType["clickedBrandKitModal"] = "clickedBrandKitModal";
37
38
  OsActionType["clickedCancelBulkEdit"] = "clickedCancelBulkEdit";
38
- OsActionType["clickedFilterDrawer"] = "clickedFilterDrawer";
39
39
  OsActionType["clickedConnectAccount"] = "clickedConnectAccount";
40
40
  OsActionType["clickedConnectAccountModal"] = "clickedConnectAccountModal";
41
+ OsActionType["clickedFilterDrawer"] = "clickedFilterDrawer";
41
42
  OsActionType["clickedConnectModal"] = "clickedConnectModal";
42
43
  OsActionType["clickedEditionSetRow"] = "clickedEditionSetRow";
43
44
  OsActionType["clickedExitDropZone"] = "clickedExitDropZone";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.389.0",
3
+ "version": "4.390.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {