@mx-cartographer/experiences 9.7.140 → 9.7.142

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,12 @@
1
+ ## [9.7.142] - 11-12-2026
2
+
3
+ - **CHANGED** - Storybook: the standalone deposit QA pages move to their Insights 2.0 V+1 template names (bucket 2): `InsightsV2/Insights/PayrollDepositV2`, `GovernmentDepositV2`, `MerchantCreditReceivedV2`, `CheckDepositV2`, `TaxDepositV2`, `LargeDepositV2` and `PayrollAdvanceV2`; their mock beats carry the V2 template names (WEC-2296)
4
+
5
+ ## [9.7.141] - 11-12-2026
6
+
7
+ - **FIXED** - An Insights 2.0 notification row whose logo is an icon (`ICO-…`) draws it in a tinted tile, as Figma does, instead of a bare glyph. Newman keeps no colour, so the tint comes from the glyph: `error` red (Low Account Balance), `check_circle` green, `warning` amber, any other primary (Monthly Spend Comparison's trendline) (WEC-2299)
8
+ - **CHANGED** - Storybook: Monthly Spend Comparison V2's micro and notification draw ditto's trendline icon, and the notification uses its short sentence from mrs_content (WEC-2299)
9
+
1
10
  ## [9.7.140] - 11-12-2026
2
11
 
3
12
  - **FIXED** - The micro card draws its status icon instead of an empty tile when its row logo is unusable, and its unanswered icon when the reviewed one is; the merchant quiz keeps only a row's checked fields and the Not Interested dialog only a text account name, so malformed data cannot break either (WEC-2259)
package/README.md CHANGED
@@ -11,6 +11,7 @@
11
11
  - [Styling and Theming](docs/STYLING_AND_THEMING.md)
12
12
  - [Testing](docs/TESTING.md)
13
13
  - [Insights V2 Action Blocks](docs/action-blocks/README.md)
14
+ - [Releasing](docs/RELEASING.md)
14
15
 
15
16
  ## Tech Stack
16
17
 
@@ -145,10 +146,10 @@ The test configuration is in [vitest.config.ts](vitest.config.ts) and [tests/set
145
146
 
146
147
 
147
148
  ## Merging and Publishing
148
- 1. Update CHANGELOG.md and include the version to publish using the standard `major.minor.patch`. If there are breaking changes, we bump the major, new feature we bump minor and bug fixes or minor changes, we bump patch.
149
+ 1. Do not edit CHANGELOG.md or the version in package.json. Add a `## Changelog` section to the MR description instead; see docs/RELEASING.md.
149
150
  1. Request a MR review by commenting `shipit --review`
150
- 1. Once the MR is approved, comment `shipit --publish-version=major|minor|patch`.
151
- 2. Shipit will bump the version in package.json, merge and publish the package to npm. -->
151
+ 1. Once the MR is approved, comment `shipit --publish-version=major|minor|patch`. Breaking changes bump the major, new features the minor, and bug fixes or minor changes the patch.
152
+ 1. Shipit bumps the version in package.json, adds the `## Changelog` lines to CHANGELOG.md, publishes the package to npm, merges, and commits both files to master. -->
152
153
 
153
154
  ## Support
154
155
 
@@ -1,12 +1,19 @@
1
- import { useNotificationStore as i } from "../../common/context/hooks.es.js";
2
- import l, { isLogoGuid as n } from "../../insights-v2/components/LogoFromGuid.es.js";
3
- import s from "./NotificationBadge.es.js";
1
+ import { useNotificationStore as s } from "../../common/context/hooks.es.js";
2
+ import m, { isLogoGuid as c } from "../../insights-v2/components/LogoFromGuid.es.js";
3
+ import { statusIconName as g } from "../../insights-v2/components/statusIcon.es.js";
4
+ import u from "../../microinsights/beaticons/BeatMaterialIcon.es.js";
5
+ import p from "./NotificationBadge.es.js";
4
6
  import "react";
5
- import { Text as m } from "@mxenabled/mxui";
6
- import { jsx as t, jsxs as g } from "react/jsx-runtime";
7
- import { Card as u, useTheme as c } from "@mui/material";
8
- var p = 33, w = ({ notification: e, onClick: a }) => {
9
- const { updateNotification: d } = i(), o = c(), r = {
7
+ import { Text as h } from "@mxenabled/mxui";
8
+ import { jsx as o, jsxs as f } from "react/jsx-runtime";
9
+ import { alpha as _ } from "@mui/material/styles";
10
+ import { Box as b, Card as y, useTheme as x } from "@mui/material";
11
+ var a = 33, C = /* @__PURE__ */ new Map([
12
+ ["error", "error"],
13
+ ["check_circle", "success"],
14
+ ["warning", "warning"]
15
+ ]), j = ({ notification: e, onClick: d }) => {
16
+ const { updateNotification: l } = s(), t = x(), r = g(e.entity_guid), i = r && C.get(r) || "primary", n = {
10
17
  card: {
11
18
  alignItems: "center",
12
19
  cursor: "pointer",
@@ -14,12 +21,12 @@ var p = 33, w = ({ notification: e, onClick: a }) => {
14
21
  marginBottom: 12,
15
22
  paddingX: 24,
16
23
  paddingY: 12,
17
- "&:focus": { backgroundColor: o.palette.background.default },
18
- "&:hover": { backgroundColor: o.palette.background.default },
24
+ "&:focus": { backgroundColor: t.palette.background.default },
25
+ "&:hover": { backgroundColor: t.palette.background.default },
19
26
  "& .notification-logo": { marginRight: 12 }
20
27
  },
21
28
  dot: {
22
- backgroundColor: o.palette.primary.main,
29
+ backgroundColor: t.palette.primary.main,
23
30
  borderRadius: "100%",
24
31
  flex: "0 0 auto",
25
32
  marginLeft: -8,
@@ -28,28 +35,43 @@ var p = 33, w = ({ notification: e, onClick: a }) => {
28
35
  width: 8
29
36
  }
30
37
  };
31
- return /* @__PURE__ */ g(u, {
38
+ return /* @__PURE__ */ f(y, {
32
39
  onClick: () => {
33
- a(e), d({
40
+ d(e), l({
34
41
  ...e,
35
42
  has_been_viewed: !0
36
43
  }).finally();
37
44
  },
38
- sx: r.card,
45
+ sx: n.card,
39
46
  children: [
40
- e.has_been_viewed ? null : /* @__PURE__ */ t("div", {
47
+ e.has_been_viewed ? null : /* @__PURE__ */ o("div", {
41
48
  "data-testid": "new-message-dot",
42
- style: r.dot
49
+ style: n.dot
43
50
  }),
44
- n(e.entity_guid) ? /* @__PURE__ */ t(l, {
51
+ r ? /* @__PURE__ */ o(b, {
52
+ className: "notification-logo",
53
+ sx: {
54
+ alignItems: "center",
55
+ display: "flex",
56
+ flexShrink: 0,
57
+ height: a,
58
+ justifyContent: "center",
59
+ width: a
60
+ },
61
+ children: /* @__PURE__ */ o(u, {
62
+ bgColor: _(t.palette[i].main, 0.15),
63
+ iconColor: i,
64
+ name: r
65
+ })
66
+ }) : c(e.entity_guid) ? /* @__PURE__ */ o(m, {
45
67
  className: "notification-logo",
46
68
  logo: {
47
69
  alt: e.content,
48
70
  guid: e.entity_guid
49
71
  },
50
- size: p
51
- }) : /* @__PURE__ */ t(s, { notification: e }),
52
- /* @__PURE__ */ t(m, {
72
+ size: a
73
+ }) : /* @__PURE__ */ o(p, { notification: e }),
74
+ /* @__PURE__ */ o(h, {
53
75
  bold: !e.has_been_viewed,
54
76
  truncate: !1,
55
77
  variant: "body2",
@@ -59,7 +81,7 @@ var p = 33, w = ({ notification: e, onClick: a }) => {
59
81
  });
60
82
  };
61
83
  export {
62
- w as default
84
+ j as default
63
85
  };
64
86
 
65
87
  //# sourceMappingURL=NotificationCard.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationCard.es.js","names":[],"sources":["../../../src/notifications/components/NotificationCard.tsx"],"sourcesContent":["import React from 'react'\nimport { Card, useTheme } from '@mui/material'\nimport { Text } from '@mxenabled/mxui'\n\nimport { type Notification } from '../../core'\nimport { useNotificationStore } from '../../common'\n// Leaf import on purpose: the `insights-v2` barrel pulls in `mappings/blocks` and its chart blocks\n// (see the circular-import note in `insights-v2/mappings/actionBlocksKey.ts`).\nimport LogoFromGuid, { isLogoGuid } from '../../insights-v2/components/LogoFromGuid'\nimport NotificationBadge from './NotificationBadge'\n\n/** Same footprint as the legacy badge's institution logo, so rows line up either way. */\nconst LOGO_SIZE = 33\n\ninterface NotificationCardProps {\n notification: Notification\n onClick: (notification: Notification) => void\n}\n\nconst NotificationCard: React.FC<NotificationCardProps> = ({ notification, onClick }) => {\n const { updateNotification } = useNotificationStore()\n const theme = useTheme()\n\n const styles = {\n card: {\n alignItems: 'center',\n cursor: 'pointer',\n display: 'flex',\n marginBottom: 12,\n paddingX: 24,\n paddingY: 12,\n '&:focus': {\n backgroundColor: theme.palette.background.default,\n },\n '&:hover': {\n backgroundColor: theme.palette.background.default,\n },\n // Matches the legacy badge's trailing gap so the text column lines up either way.\n '& .notification-logo': { marginRight: 12 },\n },\n dot: {\n backgroundColor: theme.palette.primary.main,\n borderRadius: '100%',\n flex: '0 0 auto',\n marginLeft: -8,\n marginRight: 8,\n height: 8,\n width: 8,\n },\n }\n\n const handleOnClick = () => {\n onClick(notification)\n updateNotification({ ...notification, has_been_viewed: true }).finally()\n }\n\n return (\n <Card onClick={handleOnClick} sx={styles.card}>\n {!notification.has_been_viewed ? (\n <div data-testid=\"new-message-dot\" style={styles.dot} />\n ) : null}\n {/* Insights 2.0 (insights_v2.2.md §8.3): Newman writes the row logo guid (merchant, else\n category) into `entity_guid` at send time, so a `MCH-`/`CAT-`/`INS-` guid draws that logo.\n A prefix heuristic by design: non-insight rows carry account or budget guids and legacy\n insight rows the `\"PARENT-ENTITY\"` sentinel, which keep today's badge. The row fetches no\n beat; its text stays `content`. Nothing else branches on the shape of `entity_guid`. */}\n {isLogoGuid(notification.entity_guid) ? (\n <LogoFromGuid\n className=\"notification-logo\"\n logo={{ alt: notification.content, guid: notification.entity_guid }}\n size={LOGO_SIZE}\n />\n ) : (\n <NotificationBadge notification={notification} />\n )}\n <Text bold={!notification.has_been_viewed} truncate={false} variant={'body2'}>\n {notification.content}\n </Text>\n </Card>\n )\n}\n\nexport default NotificationCard\n"],"mappings":";;;;;;;AAYA,IAAM,IAAY,IAOZ,IAAA,CAAqD,EAAE,cAAA,GAAc,SAAA,EAAA,MAAc;AACvF,QAAM,EAAE,oBAAA,EAAA,IAAuB,EAAqB,GAC9C,IAAQ,EAAS,GAEjB,IAAS;AAAA,IACb,MAAM;AAAA,MACJ,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,cAAc;AAAA,MACd,UAAU;AAAA,MACV,UAAU;AAAA,MACV,WAAW,EACT,iBAAiB,EAAM,QAAQ,WAAW,QAC5C;AAAA,MACA,WAAW,EACT,iBAAiB,EAAM,QAAQ,WAAW,QAC5C;AAAA,MAEA,wBAAwB,EAAE,aAAa,GAAG;AAAA,IAC5C;AAAA,IACA,KAAK;AAAA,MACH,iBAAiB,EAAM,QAAQ,QAAQ;AAAA,MACvC,cAAc;AAAA,MACd,MAAM;AAAA,MACN,YAAY;AAAA,MACZ,aAAa;AAAA,MACb,QAAQ;AAAA,MACR,OAAO;AAAA,IACT;AAAA,EACF;AAOA,SACE,gBAAA,EAAC,GAAD;AAAA,IAAM,SANF,MAAsB;AAC1B,MAAA,EAAQ,CAAY,GACpB,EAAmB;AAAA,QAAE,GAAG;AAAA,QAAc,iBAAiB;AAAA,MAAK,CAAC,EAAE,QAAQ;AAAA,IACzE;AAAA,IAGgC,IAAI,EAAO;AAAA,IAAzC,UAAA;AAAA,MACI,EAAa,kBAEX,OADF,gBAAA,EAAC,OAAD;AAAA,QAAK,eAAY;AAAA,QAAkB,OAAO,EAAO;AAAA,MAAM,CAAA;AAAA,MAOxD,EAAW,EAAa,WAAW,IAClC,gBAAA,EAAC,GAAD;AAAA,QACE,WAAU;AAAA,QACV,MAAM;AAAA,UAAE,KAAK,EAAa;AAAA,UAAS,MAAM,EAAa;AAAA,QAAY;AAAA,QAClE,MAAM;AAAA,MACP,CAAA,IAED,gBAAA,EAAC,GAAD,EAAiC,cAAA,EAAe,CAAA;AAAA,MAElD,gBAAA,EAAC,GAAD;AAAA,QAAM,MAAM,CAAC,EAAa;AAAA,QAAiB,UAAU;AAAA,QAAO,SAAS;AAAA,QAClE,UAAA,EAAa;AAAA,MACV,CAAA;AAAA,IACF;AAAA;AAEV"}
1
+ {"version":3,"file":"NotificationCard.es.js","names":[],"sources":["../../../src/notifications/components/NotificationCard.tsx"],"sourcesContent":["import React from 'react'\nimport { Box, Card, useTheme } from '@mui/material'\nimport { alpha } from '@mui/material/styles'\nimport { Text } from '@mxenabled/mxui'\n\nimport { type Notification } from '../../core'\nimport { useNotificationStore } from '../../common'\n// Leaf import on purpose: the `insights-v2` barrel pulls in `mappings/blocks` and its chart blocks\n// (see the circular-import note in `insights-v2/mappings/actionBlocksKey.ts`).\nimport LogoFromGuid, { isLogoGuid } from '../../insights-v2/components/LogoFromGuid'\nimport { statusIconName } from '../../insights-v2/components/statusIcon'\nimport BeatMaterialIcon from '../../microinsights/beaticons/BeatMaterialIcon'\nimport NotificationBadge from './NotificationBadge'\n\n/** Same footprint as the legacy badge's institution logo, so rows line up either way. */\nconst LOGO_SIZE = 33\n\n// Newman keeps an icon's guid but not its colour, so the tint comes from the glyph.\nconst STATUS_GLYPH_TONES = new Map<string, 'error' | 'success' | 'warning'>([\n ['error', 'error'],\n ['check_circle', 'success'],\n ['warning', 'warning'],\n])\n\ninterface NotificationCardProps {\n notification: Notification\n onClick: (notification: Notification) => void\n}\n\nconst NotificationCard: React.FC<NotificationCardProps> = ({ notification, onClick }) => {\n const { updateNotification } = useNotificationStore()\n const theme = useTheme()\n const iconName = statusIconName(notification.entity_guid)\n const iconTone = (iconName && STATUS_GLYPH_TONES.get(iconName)) || 'primary'\n\n const styles = {\n card: {\n alignItems: 'center',\n cursor: 'pointer',\n display: 'flex',\n marginBottom: 12,\n paddingX: 24,\n paddingY: 12,\n '&:focus': {\n backgroundColor: theme.palette.background.default,\n },\n '&:hover': {\n backgroundColor: theme.palette.background.default,\n },\n // Matches the legacy badge's trailing gap so the text column lines up either way.\n '& .notification-logo': { marginRight: 12 },\n },\n dot: {\n backgroundColor: theme.palette.primary.main,\n borderRadius: '100%',\n flex: '0 0 auto',\n marginLeft: -8,\n marginRight: 8,\n height: 8,\n width: 8,\n },\n }\n\n const handleOnClick = () => {\n onClick(notification)\n updateNotification({ ...notification, has_been_viewed: true }).finally()\n }\n\n return (\n <Card onClick={handleOnClick} sx={styles.card}>\n {!notification.has_been_viewed ? (\n <div data-testid=\"new-message-dot\" style={styles.dot} />\n ) : null}\n {/* Insights 2.0 (insights_v2.2.md §8.3): Newman writes the row's logo guid into\n `entity_guid`: a known `ICO-` icon draws in the tinted tile, a `MCH-`/`CAT-`/`INS-` guid\n its logo, and account or budget guids or legacy `\"PARENT-ENTITY\"` the badge. */}\n {iconName ? (\n <Box\n className=\"notification-logo\"\n sx={{\n alignItems: 'center',\n display: 'flex',\n flexShrink: 0,\n height: LOGO_SIZE,\n justifyContent: 'center',\n width: LOGO_SIZE,\n }}\n >\n <BeatMaterialIcon\n bgColor={alpha(theme.palette[iconTone].main, 0.15)}\n iconColor={iconTone}\n name={iconName}\n />\n </Box>\n ) : isLogoGuid(notification.entity_guid) ? (\n <LogoFromGuid\n className=\"notification-logo\"\n logo={{ alt: notification.content, guid: notification.entity_guid }}\n size={LOGO_SIZE}\n />\n ) : (\n <NotificationBadge notification={notification} />\n )}\n <Text bold={!notification.has_been_viewed} truncate={false} variant={'body2'}>\n {notification.content}\n </Text>\n </Card>\n )\n}\n\nexport default NotificationCard\n"],"mappings":";;;;;;;;;;AAeA,IAAM,IAAY,IAGZ,IAAqB,oBAAI,IAA6C;AAAA,EAC1E,CAAC,SAAS,OAAO;AAAA,EACjB,CAAC,gBAAgB,SAAS;AAAA,EAC1B,CAAC,WAAW,SAAS;AACvB,CAAC,GAOK,IAAA,CAAqD,EAAE,cAAA,GAAc,SAAA,EAAA,MAAc;AACvF,QAAM,EAAE,oBAAA,EAAA,IAAuB,EAAqB,GAC9C,IAAQ,EAAS,GACjB,IAAW,EAAe,EAAa,WAAW,GAClD,IAAY,KAAY,EAAmB,IAAI,CAAQ,KAAM,WAE7D,IAAS;AAAA,IACb,MAAM;AAAA,MACJ,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,cAAc;AAAA,MACd,UAAU;AAAA,MACV,UAAU;AAAA,MACV,WAAW,EACT,iBAAiB,EAAM,QAAQ,WAAW,QAC5C;AAAA,MACA,WAAW,EACT,iBAAiB,EAAM,QAAQ,WAAW,QAC5C;AAAA,MAEA,wBAAwB,EAAE,aAAa,GAAG;AAAA,IAC5C;AAAA,IACA,KAAK;AAAA,MACH,iBAAiB,EAAM,QAAQ,QAAQ;AAAA,MACvC,cAAc;AAAA,MACd,MAAM;AAAA,MACN,YAAY;AAAA,MACZ,aAAa;AAAA,MACb,QAAQ;AAAA,MACR,OAAO;AAAA,IACT;AAAA,EACF;AAOA,SACE,gBAAA,EAAC,GAAD;AAAA,IAAM,SANF,MAAsB;AAC1B,MAAA,EAAQ,CAAY,GACpB,EAAmB;AAAA,QAAE,GAAG;AAAA,QAAc,iBAAiB;AAAA,MAAK,CAAC,EAAE,QAAQ;AAAA,IACzE;AAAA,IAGgC,IAAI,EAAO;AAAA,IAAzC,UAAA;AAAA,MACI,EAAa,kBAEX,OADF,gBAAA,EAAC,OAAD;AAAA,QAAK,eAAY;AAAA,QAAkB,OAAO,EAAO;AAAA,MAAM,CAAA;AAAA,MAKxD,IACC,gBAAA,EAAC,GAAD;AAAA,QACE,WAAU;AAAA,QACV,IAAI;AAAA,UACF,YAAY;AAAA,UACZ,SAAS;AAAA,UACT,YAAY;AAAA,UACZ,QAAQ;AAAA,UACR,gBAAgB;AAAA,UAChB,OAAO;AAAA,QACT;AAAA,QAEA,UAAA,gBAAA,EAAC,GAAD;AAAA,UACE,SAAS,EAAM,EAAM,QAAQ,CAAA,EAAU,MAAM,IAAI;AAAA,UACjD,WAAW;AAAA,UACX,MAAM;AAAA,QACP,CAAA;AAAA,MACE,CAAA,IACH,EAAW,EAAa,WAAW,IACrC,gBAAA,EAAC,GAAD;AAAA,QACE,WAAU;AAAA,QACV,MAAM;AAAA,UAAE,KAAK,EAAa;AAAA,UAAS,MAAM,EAAa;AAAA,QAAY;AAAA,QAClE,MAAM;AAAA,MACP,CAAA,IAED,gBAAA,EAAC,GAAD,EAAiC,cAAA,EAAe,CAAA;AAAA,MAElD,gBAAA,EAAC,GAAD;AAAA,QAAM,MAAM,CAAC,EAAa;AAAA,QAAiB,UAAU;AAAA,QAAO,SAAS;AAAA,QAClE,UAAA,EAAa;AAAA,MACV,CAAA;AAAA,IACF;AAAA;AAEV"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "9.7.140",
3
+ "version": "9.7.142",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",