Skip to content

Commit

Permalink
feat(EMI-2098): Add context module to Tasks section in the HomeView (#…
Browse files Browse the repository at this point in the history
…6153)

* feat(EMI-2098): Add context module to Tasks section in the HomeView

* update tasks context module

* update cohesion
  • Loading branch information
MrSltun authored Oct 23, 2024
1 parent e814163 commit 0d6c7f2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"author": "Art.sy Inc",
"license": "MIT",
"dependencies": {
"@artsy/cohesion": "^4.206.0",
"@artsy/cohesion": "^4.210.0",
"@artsy/img": "1.0.3",
"@artsy/morgan": "^1.0.2",
"@artsy/multienv": "^1.2.0",
Expand Down
4 changes: 2 additions & 2 deletions src/schema/v2/homeView/sections/Tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import { createPageCursors } from "schema/v2/fields/pagination"
import { HomeViewSection } from "."
import { withHomeViewTimeout } from "../helpers/withHomeViewTimeout"
import { HomeViewSectionTypeNames } from "../sectionTypes/names"
import { ContextModule } from "@artsy/cohesion"

export const Tasks: HomeViewSection = {
id: "home-view-section-tasks",
type: HomeViewSectionTypeNames.HomeViewSectionTasks,
// TODO: Create context module in Cohesion
// contextModule: ContextModule.tasks,
contextModule: ContextModule.actNow,
component: {
title: "Act Now",
},
Expand Down
2 changes: 1 addition & 1 deletion src/schema/v2/homeView/sections/__tests__/Tasks.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe("HomeViewSectionTasks", () => {
"description": null,
"title": "Act Now",
},
"contextModule": null,
"contextModule": "actNow",
"internalID": "home-view-section-tasks",
"ownerType": null,
}
Expand Down
18 changes: 12 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# yarn lockfile v1


"@artsy/cohesion@^4.206.0":
version "4.206.0"
resolved "https://registry.yarnpkg.com/@artsy/cohesion/-/cohesion-4.206.0.tgz#b9493c014991870ee7b0ae48c08222af1a4468c3"
integrity sha512-k/cxE9FiwxE3TU+mBeb2aNd6VSHmNmEVvsNw5myYMTIHbKgxysSZBUZwIcfsOj6If9ddQPxAy2qjGMkd6U0WFg==
"@artsy/cohesion@^4.210.0":
version "4.210.0"
resolved "https://registry.yarnpkg.com/@artsy/cohesion/-/cohesion-4.210.0.tgz#668128d0ba058759a01c3e9bf8dfcdcda91891e9"
integrity sha512-xSKwXn/r7FDFIjy6D8E/7xKdbMsG7UF2LG9OjewrLgyLITBpgn3gFsxbhAYjl4HE5+MIgtYBhHWpjwtpGcEeRg==
dependencies:
core-js "3"

Expand Down Expand Up @@ -10061,8 +10061,7 @@ stringify-object@^3.2.2:
is-obj "^1.0.1"
is-regexp "^1.0.0"

"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.1:
name strip-ansi-cjs
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
version "6.0.1"
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
Expand Down Expand Up @@ -10104,6 +10103,13 @@ strip-ansi@^6.0.0:
dependencies:
ansi-regex "^5.0.0"

strip-ansi@^6.0.1:
version "6.0.1"
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
dependencies:
ansi-regex "^5.0.1"

strip-ansi@^7.0.1:
version "7.1.0"
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.1.0.tgz#d5b6568ca689d8561370b0707685d22434faff45"
Expand Down

0 comments on commit 0d6c7f2

Please sign in to comment.