@burdenoff/microfe-subscriberbot 2026.1103.2 → 2026.1105.1

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.
Files changed (198) hide show
  1. package/dist/index.js +3 -3
  2. package/dist/stories/Accessibility.stories.d.ts +13 -0
  3. package/dist/stories/Accessibility.stories.d.ts.map +1 -0
  4. package/dist/stories/pages/AgentNewPage.stories.d.ts.map +1 -1
  5. package/dist/stories/pages/BankConnectionsPage.stories.d.ts +1 -0
  6. package/dist/stories/pages/BankConnectionsPage.stories.d.ts.map +1 -1
  7. package/dist/stories/pages/EnterpriseSpendPage.stories.d.ts.map +1 -1
  8. package/dist/stories/pages/InboxPage.stories.d.ts.map +1 -1
  9. package/dist/subscriberbot/admin/AdminDashboardPage.d.ts.map +1 -1
  10. package/dist/subscriberbot/admin/AdminDashboardPage.js +168 -168
  11. package/dist/subscriberbot/admin/AdminDashboardPage.js.map +1 -1
  12. package/dist/subscriberbot/admin/NegotiationDeskPanel.d.ts.map +1 -1
  13. package/dist/subscriberbot/admin/NegotiationDeskPanel.js +116 -116
  14. package/dist/subscriberbot/admin/NegotiationDeskPanel.js.map +1 -1
  15. package/dist/subscriberbot/admin/ProcurementDeskPanel.d.ts.map +1 -1
  16. package/dist/subscriberbot/admin/ProcurementDeskPanel.js +211 -211
  17. package/dist/subscriberbot/admin/ProcurementDeskPanel.js.map +1 -1
  18. package/dist/subscriberbot/components/Modal.d.ts.map +1 -1
  19. package/dist/subscriberbot/components/Modal.js +43 -33
  20. package/dist/subscriberbot/components/Modal.js.map +1 -1
  21. package/dist/subscriberbot/components/PostureOptions.d.ts.map +1 -1
  22. package/dist/subscriberbot/components/PostureOptions.js +10 -10
  23. package/dist/subscriberbot/components/PostureOptions.js.map +1 -1
  24. package/dist/subscriberbot/components/StateViews.d.ts.map +1 -1
  25. package/dist/subscriberbot/components/StateViews.js +45 -37
  26. package/dist/subscriberbot/components/StateViews.js.map +1 -1
  27. package/dist/subscriberbot/components/StatusBadge.d.ts.map +1 -1
  28. package/dist/subscriberbot/components/StatusBadge.js +6 -6
  29. package/dist/subscriberbot/components/StatusBadge.js.map +1 -1
  30. package/dist/subscriberbot/components/decisions/DecisionBanners.js +6 -6
  31. package/dist/subscriberbot/components/decisions/DecisionCard.d.ts.map +1 -1
  32. package/dist/subscriberbot/components/decisions/DecisionCard.js +149 -147
  33. package/dist/subscriberbot/components/decisions/DecisionCard.js.map +1 -1
  34. package/dist/subscriberbot/components/mobile/MobileDashboard.d.ts.map +1 -1
  35. package/dist/subscriberbot/components/mobile/MobileDashboard.js +127 -127
  36. package/dist/subscriberbot/components/mobile/MobileDashboard.js.map +1 -1
  37. package/dist/subscriberbot/components/mobile/MobileRelationshipList.d.ts.map +1 -1
  38. package/dist/subscriberbot/components/mobile/MobileRelationshipList.js +114 -114
  39. package/dist/subscriberbot/components/mobile/MobileRelationshipList.js.map +1 -1
  40. package/dist/subscriberbot/components/mobile/MobileScreen.js +1 -1
  41. package/dist/subscriberbot/components/mobile/MobileScreen.js.map +1 -1
  42. package/dist/subscriberbot/components/negotiations/NegotiationStatusPill.js +4 -4
  43. package/dist/subscriberbot/components/negotiations/NegotiationTimeline.d.ts.map +1 -1
  44. package/dist/subscriberbot/components/negotiations/NegotiationTimeline.js +11 -11
  45. package/dist/subscriberbot/components/negotiations/NegotiationTimeline.js.map +1 -1
  46. package/dist/subscriberbot/components/negotiations/OutcomeForm.d.ts.map +1 -1
  47. package/dist/subscriberbot/components/negotiations/OutcomeForm.js +29 -29
  48. package/dist/subscriberbot/components/negotiations/OutcomeForm.js.map +1 -1
  49. package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.d.ts.map +1 -1
  50. package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.js +43 -43
  51. package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.js.map +1 -1
  52. package/dist/subscriberbot/components/procurement/ProcurementStatusPill.js +4 -4
  53. package/dist/subscriberbot/components/procurement/ProcurementThread.d.ts.map +1 -1
  54. package/dist/subscriberbot/components/procurement/ProcurementThread.js +14 -14
  55. package/dist/subscriberbot/components/procurement/ProcurementThread.js.map +1 -1
  56. package/dist/subscriberbot/components/savings/SavingsCards.d.ts.map +1 -1
  57. package/dist/subscriberbot/components/savings/SavingsCards.js +242 -237
  58. package/dist/subscriberbot/components/savings/SavingsCards.js.map +1 -1
  59. package/dist/subscriberbot/components/viz.d.ts +1 -0
  60. package/dist/subscriberbot/components/viz.d.ts.map +1 -1
  61. package/dist/subscriberbot/components/viz.js +100 -101
  62. package/dist/subscriberbot/components/viz.js.map +1 -1
  63. package/dist/subscriberbot/hooks/index.js +1 -1
  64. package/dist/subscriberbot/hooks/useFormError.d.ts +7 -0
  65. package/dist/subscriberbot/hooks/useFormError.d.ts.map +1 -0
  66. package/dist/subscriberbot/hooks/useFormError.js +28 -0
  67. package/dist/subscriberbot/hooks/useFormError.js.map +1 -0
  68. package/dist/subscriberbot/hooks/useFormatters.d.ts +11 -0
  69. package/dist/subscriberbot/hooks/useFormatters.d.ts.map +1 -0
  70. package/dist/subscriberbot/hooks/useFormatters.js +13 -0
  71. package/dist/subscriberbot/hooks/useFormatters.js.map +1 -0
  72. package/dist/subscriberbot/hooks/useSubscriberBotApi.d.ts.map +1 -1
  73. package/dist/subscriberbot/hooks/useSubscriberBotApi.js +371 -370
  74. package/dist/subscriberbot/hooks/useSubscriberBotApi.js.map +1 -1
  75. package/dist/subscriberbot/hooks/useTr.d.ts.map +1 -1
  76. package/dist/subscriberbot/hooks/useTr.js +1 -1
  77. package/dist/subscriberbot/hooks/useTr.js.map +1 -1
  78. package/dist/subscriberbot/index.js +1 -1
  79. package/dist/subscriberbot/pages/AssetVaultPage.d.ts.map +1 -1
  80. package/dist/subscriberbot/pages/AssetVaultPage.js +124 -124
  81. package/dist/subscriberbot/pages/AssetVaultPage.js.map +1 -1
  82. package/dist/subscriberbot/pages/DashboardPage.d.ts +0 -10
  83. package/dist/subscriberbot/pages/DashboardPage.d.ts.map +1 -1
  84. package/dist/subscriberbot/pages/DashboardPage.js +107 -98
  85. package/dist/subscriberbot/pages/DashboardPage.js.map +1 -1
  86. package/dist/subscriberbot/pages/InboxPage.d.ts +0 -10
  87. package/dist/subscriberbot/pages/InboxPage.d.ts.map +1 -1
  88. package/dist/subscriberbot/pages/InboxPage.js +421 -402
  89. package/dist/subscriberbot/pages/InboxPage.js.map +1 -1
  90. package/dist/subscriberbot/pages/InsightsPage.d.ts.map +1 -1
  91. package/dist/subscriberbot/pages/InsightsPage.js +130 -121
  92. package/dist/subscriberbot/pages/InsightsPage.js.map +1 -1
  93. package/dist/subscriberbot/pages/InvoicesPage.d.ts +0 -12
  94. package/dist/subscriberbot/pages/InvoicesPage.d.ts.map +1 -1
  95. package/dist/subscriberbot/pages/InvoicesPage.js +237 -215
  96. package/dist/subscriberbot/pages/InvoicesPage.js.map +1 -1
  97. package/dist/subscriberbot/pages/RenewalsPage.d.ts.map +1 -1
  98. package/dist/subscriberbot/pages/RenewalsPage.js +303 -295
  99. package/dist/subscriberbot/pages/RenewalsPage.js.map +1 -1
  100. package/dist/subscriberbot/pages/SavingsPage.d.ts.map +1 -1
  101. package/dist/subscriberbot/pages/SavingsPage.js +57 -57
  102. package/dist/subscriberbot/pages/SavingsPage.js.map +1 -1
  103. package/dist/subscriberbot/pages/WorkflowsPage.d.ts +0 -13
  104. package/dist/subscriberbot/pages/WorkflowsPage.d.ts.map +1 -1
  105. package/dist/subscriberbot/pages/WorkflowsPage.js +202 -196
  106. package/dist/subscriberbot/pages/WorkflowsPage.js.map +1 -1
  107. package/dist/subscriberbot/pages/agents/AgentDetailPage.d.ts +0 -18
  108. package/dist/subscriberbot/pages/agents/AgentDetailPage.d.ts.map +1 -1
  109. package/dist/subscriberbot/pages/agents/AgentDetailPage.js +283 -275
  110. package/dist/subscriberbot/pages/agents/AgentDetailPage.js.map +1 -1
  111. package/dist/subscriberbot/pages/agents/AgentNewPage.d.ts +0 -6
  112. package/dist/subscriberbot/pages/agents/AgentNewPage.d.ts.map +1 -1
  113. package/dist/subscriberbot/pages/agents/AgentNewPage.js +85 -77
  114. package/dist/subscriberbot/pages/agents/AgentNewPage.js.map +1 -1
  115. package/dist/subscriberbot/pages/agents/AgentsListPage.d.ts +0 -9
  116. package/dist/subscriberbot/pages/agents/AgentsListPage.d.ts.map +1 -1
  117. package/dist/subscriberbot/pages/agents/AgentsListPage.js +136 -136
  118. package/dist/subscriberbot/pages/agents/AgentsListPage.js.map +1 -1
  119. package/dist/subscriberbot/pages/banking/BankConnectionsPage.d.ts +0 -9
  120. package/dist/subscriberbot/pages/banking/BankConnectionsPage.d.ts.map +1 -1
  121. package/dist/subscriberbot/pages/banking/BankConnectionsPage.js +267 -260
  122. package/dist/subscriberbot/pages/banking/BankConnectionsPage.js.map +1 -1
  123. package/dist/subscriberbot/pages/decisions/DecisionDetailPage.d.ts +0 -10
  124. package/dist/subscriberbot/pages/decisions/DecisionDetailPage.d.ts.map +1 -1
  125. package/dist/subscriberbot/pages/decisions/DecisionDetailPage.js +96 -96
  126. package/dist/subscriberbot/pages/decisions/DecisionDetailPage.js.map +1 -1
  127. package/dist/subscriberbot/pages/decisions/DecisionsPage.d.ts +0 -11
  128. package/dist/subscriberbot/pages/decisions/DecisionsPage.d.ts.map +1 -1
  129. package/dist/subscriberbot/pages/decisions/DecisionsPage.js +46 -46
  130. package/dist/subscriberbot/pages/decisions/DecisionsPage.js.map +1 -1
  131. package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.d.ts +0 -11
  132. package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.d.ts.map +1 -1
  133. package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.js +181 -171
  134. package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.js.map +1 -1
  135. package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.d.ts +0 -9
  136. package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.d.ts.map +1 -1
  137. package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.js +164 -164
  138. package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.js.map +1 -1
  139. package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.d.ts +0 -9
  140. package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.d.ts.map +1 -1
  141. package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.js +197 -181
  142. package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.js.map +1 -1
  143. package/dist/subscriberbot/pages/negotiations/NegotiationsPage.d.ts +0 -8
  144. package/dist/subscriberbot/pages/negotiations/NegotiationsPage.d.ts.map +1 -1
  145. package/dist/subscriberbot/pages/negotiations/NegotiationsPage.js +79 -79
  146. package/dist/subscriberbot/pages/negotiations/NegotiationsPage.js.map +1 -1
  147. package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.d.ts +0 -9
  148. package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.d.ts.map +1 -1
  149. package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.js +147 -147
  150. package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.js.map +1 -1
  151. package/dist/subscriberbot/pages/procurement/ProcurementNewPage.d.ts +0 -10
  152. package/dist/subscriberbot/pages/procurement/ProcurementNewPage.d.ts.map +1 -1
  153. package/dist/subscriberbot/pages/procurement/ProcurementNewPage.js +204 -188
  154. package/dist/subscriberbot/pages/procurement/ProcurementNewPage.js.map +1 -1
  155. package/dist/subscriberbot/pages/procurement/ProcurementPage.d.ts +0 -9
  156. package/dist/subscriberbot/pages/procurement/ProcurementPage.d.ts.map +1 -1
  157. package/dist/subscriberbot/pages/procurement/ProcurementPage.js +80 -80
  158. package/dist/subscriberbot/pages/procurement/ProcurementPage.js.map +1 -1
  159. package/dist/subscriberbot/pages/providers/ProviderDetailPage.d.ts +0 -10
  160. package/dist/subscriberbot/pages/providers/ProviderDetailPage.d.ts.map +1 -1
  161. package/dist/subscriberbot/pages/providers/ProviderDetailPage.js +484 -458
  162. package/dist/subscriberbot/pages/providers/ProviderDetailPage.js.map +1 -1
  163. package/dist/subscriberbot/pages/providers/ProviderNewPage.d.ts +0 -8
  164. package/dist/subscriberbot/pages/providers/ProviderNewPage.d.ts.map +1 -1
  165. package/dist/subscriberbot/pages/providers/ProviderNewPage.js +146 -136
  166. package/dist/subscriberbot/pages/providers/ProviderNewPage.js.map +1 -1
  167. package/dist/subscriberbot/pages/providers/ProvidersListPage.d.ts +0 -10
  168. package/dist/subscriberbot/pages/providers/ProvidersListPage.d.ts.map +1 -1
  169. package/dist/subscriberbot/pages/providers/ProvidersListPage.js +88 -87
  170. package/dist/subscriberbot/pages/providers/ProvidersListPage.js.map +1 -1
  171. package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.d.ts +0 -11
  172. package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.d.ts.map +1 -1
  173. package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js +520 -490
  174. package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js.map +1 -1
  175. package/dist/subscriberbot/pages/relationships/RelationshipNewPage.d.ts +0 -8
  176. package/dist/subscriberbot/pages/relationships/RelationshipNewPage.d.ts.map +1 -1
  177. package/dist/subscriberbot/pages/relationships/RelationshipNewPage.js +104 -90
  178. package/dist/subscriberbot/pages/relationships/RelationshipNewPage.js.map +1 -1
  179. package/dist/subscriberbot/pages/relationships/RelationshipsListPage.d.ts +0 -8
  180. package/dist/subscriberbot/pages/relationships/RelationshipsListPage.d.ts.map +1 -1
  181. package/dist/subscriberbot/pages/relationships/RelationshipsListPage.js +97 -96
  182. package/dist/subscriberbot/pages/relationships/RelationshipsListPage.js.map +1 -1
  183. package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.d.ts.map +1 -1
  184. package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.js +76 -74
  185. package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.js.map +1 -1
  186. package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.d.ts +5 -3
  187. package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.d.ts.map +1 -1
  188. package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.js +26 -25
  189. package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.js.map +1 -1
  190. package/dist/subscriberbot/utils/formatters.d.ts +16 -5
  191. package/dist/subscriberbot/utils/formatters.d.ts.map +1 -1
  192. package/dist/subscriberbot/utils/formatters.js +57 -25
  193. package/dist/subscriberbot/utils/formatters.js.map +1 -1
  194. package/dist/subscriberbot/utils/plaidLink.d.ts +2 -1
  195. package/dist/subscriberbot/utils/plaidLink.d.ts.map +1 -1
  196. package/dist/subscriberbot/utils/plaidLink.js +21 -21
  197. package/dist/subscriberbot/utils/plaidLink.js.map +1 -1
  198. package/package.json +1 -1
@@ -1,237 +1,237 @@
1
- import { cn as e } from "../../utils/cn.js";
2
- import { formatCurrency as t, formatIntervalSuffix as n } from "../../utils/formatters.js";
1
+ import { useTr as e } from "../../hooks/useTr.js";
2
+ import { useFormatters as t } from "../../hooks/useFormatters.js";
3
+ import { cn as n } from "../../utils/cn.js";
3
4
  import { StatusBadge as r } from "../StatusBadge.js";
4
- import { useTr as i } from "../../hooks/useTr.js";
5
- import { daysUntil as a, renewalCountdown as o } from "../../utils/portfolio.js";
6
- import { MobileScreen as s, MobileSection as c } from "./MobileScreen.js";
7
- import { RelationshipGlyph as l } from "./RelationshipGlyph.js";
8
- import { RECOMMENDATION_LABEL as u } from "../decisions/decisionModel.js";
9
- import { AlertTriangle as d, ArrowRight as f, Bot as p, ChevronRight as m, Inbox as h, Lightbulb as g, PiggyBank as _, Plus as v, ShieldCheck as y } from "lucide-react";
10
- import { jsx as b, jsxs as x } from "react/jsx-runtime";
5
+ import { daysUntil as i, renewalCountdown as a } from "../../utils/portfolio.js";
6
+ import { MobileScreen as o, MobileSection as s } from "./MobileScreen.js";
7
+ import { RelationshipGlyph as c } from "./RelationshipGlyph.js";
8
+ import { RECOMMENDATION_LABEL as l } from "../decisions/decisionModel.js";
9
+ import { AlertTriangle as u, ArrowRight as d, Bot as f, ChevronRight as p, Inbox as m, Lightbulb as h, PiggyBank as g, Plus as _, ShieldCheck as v } from "lucide-react";
10
+ import { jsx as y, jsxs as b } from "react/jsx-runtime";
11
11
  //#region src/subscriberbot/components/mobile/MobileDashboard.tsx
12
- var S = "flex w-full items-center gap-3 rounded-2xl border border-border-subtle bg-bg-surface p-4 text-left shadow-sm transition-colors active:bg-bg-sunken", C = "inline-flex items-center gap-0.5 text-sm font-medium text-text-link", w = ({ greetingName: w, spend: T, upcoming: E, actionMessages: D, decisions: O, relationshipLabel: k, openInvoiceCount: A, openInvoiceTotal: j, navigateTo: M }) => {
13
- let N = i(), P = [
12
+ var x = "flex w-full items-center gap-3 rounded-2xl border border-border-subtle bg-bg-surface p-4 text-start shadow-sm transition-colors active:bg-bg-sunken", S = "inline-flex items-center gap-0.5 text-sm font-medium text-text-link", C = ({ greetingName: C, spend: w, upcoming: T, actionMessages: E, decisions: D, relationshipLabel: O, openInvoiceCount: k, openInvoiceTotal: A, navigateTo: j }) => {
13
+ let { formatCurrency: M, formatIntervalSuffix: N } = t(), P = e(), F = [
14
14
  {
15
15
  id: "add",
16
- label: N("mobile.dashboard.quick.add", "Add subscription"),
17
- icon: /* @__PURE__ */ b(v, { className: "h-5 w-5" }),
16
+ label: P("mobile.dashboard.quick.add", "Add subscription"),
17
+ icon: /* @__PURE__ */ y(_, { className: "h-5 w-5" }),
18
18
  path: "/relationships/new"
19
19
  },
20
20
  {
21
21
  id: "inbox",
22
- label: N("mobile.dashboard.quick.inbox", "Inbox"),
23
- icon: /* @__PURE__ */ b(h, { className: "h-5 w-5" }),
22
+ label: P("mobile.dashboard.quick.inbox", "Inbox"),
23
+ icon: /* @__PURE__ */ y(m, { className: "h-5 w-5" }),
24
24
  path: "/inbox"
25
25
  },
26
26
  {
27
27
  id: "savings",
28
- label: N("mobile.dashboard.quick.savings", "Savings"),
29
- icon: /* @__PURE__ */ b(_, { className: "h-5 w-5" }),
28
+ label: P("mobile.dashboard.quick.savings", "Savings"),
29
+ icon: /* @__PURE__ */ y(g, { className: "h-5 w-5" }),
30
30
  path: "/savings"
31
31
  },
32
32
  {
33
33
  id: "agents",
34
- label: N("mobile.dashboard.quick.agents", "Agents"),
35
- icon: /* @__PURE__ */ b(p, { className: "h-5 w-5" }),
34
+ label: P("mobile.dashboard.quick.agents", "Agents"),
35
+ icon: /* @__PURE__ */ y(f, { className: "h-5 w-5" }),
36
36
  path: "/agents"
37
37
  }
38
38
  ];
39
- return /* @__PURE__ */ x(s, {
39
+ return /* @__PURE__ */ b(o, {
40
40
  testId: "sb-mobile-dashboard",
41
- title: N("dashboard.title", "Overview"),
42
- eyebrow: w ? N("mobile.dashboard.greeting", "Hi, {{name}}", { name: w }) : void 0,
43
- hero: /* @__PURE__ */ x("div", { children: [
44
- /* @__PURE__ */ b("p", {
45
- className: "text-sm opacity-80",
46
- children: N("mobile.dashboard.totalSpend", "Total recurring spend")
41
+ title: P("dashboard.title", "Overview"),
42
+ eyebrow: C ? P("mobile.dashboard.greeting", "Hi, {{name}}", { name: C }) : void 0,
43
+ hero: /* @__PURE__ */ b("div", { children: [
44
+ /* @__PURE__ */ y("p", {
45
+ className: "text-sm",
46
+ children: P("mobile.dashboard.totalSpend", "Total recurring spend")
47
47
  }),
48
- /* @__PURE__ */ x("p", {
48
+ /* @__PURE__ */ b("p", {
49
49
  className: "mt-1 font-bold tabular-nums",
50
50
  "data-testid": "sb-mobile-total-spend",
51
- children: [/* @__PURE__ */ b("span", {
51
+ children: [/* @__PURE__ */ y("span", {
52
52
  className: "text-4xl",
53
- children: t(T.monthly, T.currency)
54
- }), /* @__PURE__ */ b("span", {
55
- className: "text-base font-medium opacity-80",
56
- children: N("mobile.dashboard.perMonth", "/month")
53
+ children: M(w.monthly, w.currency)
54
+ }), /* @__PURE__ */ y("span", {
55
+ className: "text-base font-medium",
56
+ children: P("mobile.dashboard.perMonth", "/month")
57
57
  })]
58
58
  }),
59
- /* @__PURE__ */ b("p", {
60
- className: "mt-1 text-xs opacity-80",
61
- children: N(T.activeCount === 1 ? "mobile.dashboard.activeCountOne" : "mobile.dashboard.activeCount", T.activeCount === 1 ? "{{count}} active subscription" : "{{count}} active subscriptions", { count: T.activeCount })
59
+ /* @__PURE__ */ y("p", {
60
+ className: "mt-1 text-xs",
61
+ children: P(w.activeCount === 1 ? "mobile.dashboard.activeCountOne" : "mobile.dashboard.activeCount", w.activeCount === 1 ? "{{count}} active subscription" : "{{count}} active subscriptions", { count: w.activeCount })
62
62
  })
63
63
  ] }),
64
64
  children: [
65
- /* @__PURE__ */ b(c, {
66
- title: N("dashboard.renewals.title", "Upcoming renewals"),
67
- action: E.length > 0 ? /* @__PURE__ */ x("button", {
65
+ /* @__PURE__ */ y(s, {
66
+ title: P("dashboard.renewals.title", "Upcoming renewals"),
67
+ action: T.length > 0 ? /* @__PURE__ */ b("button", {
68
68
  type: "button",
69
- className: C,
70
- onClick: () => M("/relationships"),
69
+ className: S,
70
+ onClick: () => j("/relationships"),
71
71
  children: [
72
- N("common.viewAll", "View all"),
72
+ P("common.viewAll", "View all"),
73
73
  " ",
74
- /* @__PURE__ */ b(m, { className: "h-4 w-4" })
74
+ /* @__PURE__ */ y(p, { className: "rtl:rotate-180 h-4 w-4" })
75
75
  ]
76
76
  }) : void 0,
77
- children: E.length === 0 ? /* @__PURE__ */ b("div", {
78
- className: e(S, "text-sm text-text-secondary"),
79
- children: N("dashboard.renewals.emptyDescription", "Renewals you track will appear here ahead of time.")
80
- }) : /* @__PURE__ */ b("ul", {
77
+ children: T.length === 0 ? /* @__PURE__ */ y("div", {
78
+ className: n(x, "text-sm text-text-secondary"),
79
+ children: P("dashboard.renewals.emptyDescription", "Renewals you track will appear here ahead of time.")
80
+ }) : /* @__PURE__ */ y("ul", {
81
81
  className: "space-y-3",
82
82
  "data-testid": "sb-mobile-renewals",
83
- children: E.slice(0, 5).map((r) => {
84
- let i = a(r.when), s = i == null ? null : o(i);
85
- return /* @__PURE__ */ b("li", { children: /* @__PURE__ */ x("button", {
83
+ children: T.slice(0, 5).map((e) => {
84
+ let t = i(e.when), r = t == null ? null : a(t);
85
+ return /* @__PURE__ */ y("li", { children: /* @__PURE__ */ b("button", {
86
86
  type: "button",
87
- className: S,
88
- onClick: () => M(`/relationships/${r.relationshipId}`),
87
+ className: x,
88
+ onClick: () => j(`/relationships/${e.relationshipId}`),
89
89
  children: [
90
- /* @__PURE__ */ b(l, { kind: r.kind }),
91
- /* @__PURE__ */ x("span", {
90
+ /* @__PURE__ */ y(c, { kind: e.kind }),
91
+ /* @__PURE__ */ b("span", {
92
92
  className: "min-w-0 flex-1",
93
93
  children: [
94
- /* @__PURE__ */ b("span", {
94
+ /* @__PURE__ */ y("span", {
95
95
  className: "block truncate font-semibold text-text-primary",
96
- children: r.title
96
+ children: e.title
97
97
  }),
98
- r.amount != null && /* @__PURE__ */ x("span", {
98
+ e.amount != null && /* @__PURE__ */ b("span", {
99
99
  className: "block text-base tabular-nums text-text-primary",
100
- children: [t(r.amount, r.currency ?? T.currency), r.interval ? n(r.interval) : ""]
100
+ children: [M(e.amount, e.currency ?? w.currency), e.interval ? N(e.interval) : ""]
101
101
  }),
102
- s && /* @__PURE__ */ b("span", {
103
- className: e("block text-sm", s.tone === "later" ? "text-text-secondary" : "text-status-warning-text"),
104
- children: N(s.key, s.fallback, s.params)
102
+ r && /* @__PURE__ */ y("span", {
103
+ className: n("block text-sm", r.tone === "later" ? "text-text-secondary" : "text-status-warning-text"),
104
+ children: P(r.key, r.fallback, r.params)
105
105
  })
106
106
  ]
107
107
  }),
108
- /* @__PURE__ */ b(m, { className: "h-4 w-4 shrink-0 text-text-secondary" })
108
+ /* @__PURE__ */ y(p, { className: "rtl:rotate-180 h-4 w-4 shrink-0 text-text-secondary" })
109
109
  ]
110
- }) }, r.id);
110
+ }) }, e.id);
111
111
  })
112
112
  })
113
113
  }),
114
- /* @__PURE__ */ b(c, {
115
- title: N("mobile.dashboard.needsAction", "Needs action"),
116
- action: /* @__PURE__ */ x("button", {
114
+ /* @__PURE__ */ y(s, {
115
+ title: P("mobile.dashboard.needsAction", "Needs action"),
116
+ action: /* @__PURE__ */ b("button", {
117
117
  type: "button",
118
- className: C,
119
- onClick: () => M("/inbox"),
118
+ className: S,
119
+ onClick: () => j("/inbox"),
120
120
  children: [
121
- N("dashboard.needsAttention.openInbox", "Open inbox"),
121
+ P("dashboard.needsAttention.openInbox", "Open inbox"),
122
122
  " ",
123
- /* @__PURE__ */ b(m, { className: "h-4 w-4" })
123
+ /* @__PURE__ */ y(p, { className: "rtl:rotate-180 h-4 w-4" })
124
124
  ]
125
125
  }),
126
- children: D.length === 0 ? /* @__PURE__ */ x("div", {
127
- className: S,
128
- children: [/* @__PURE__ */ b("span", {
126
+ children: E.length === 0 ? /* @__PURE__ */ b("div", {
127
+ className: x,
128
+ children: [/* @__PURE__ */ y("span", {
129
129
  className: "flex size-10 shrink-0 items-center justify-center rounded-xl bg-status-success-bg-subtle text-status-success-text",
130
- children: /* @__PURE__ */ b(y, { className: "h-5 w-5" })
131
- }), /* @__PURE__ */ x("span", {
130
+ children: /* @__PURE__ */ y(v, { className: "h-5 w-5" })
131
+ }), /* @__PURE__ */ b("span", {
132
132
  className: "min-w-0",
133
- children: [/* @__PURE__ */ b("span", {
133
+ children: [/* @__PURE__ */ y("span", {
134
134
  className: "block text-sm font-medium text-text-primary",
135
- children: N("dashboard.needsAttention.allCaughtUp", "You're all caught up")
136
- }), /* @__PURE__ */ b("span", {
135
+ children: P("dashboard.needsAttention.allCaughtUp", "You're all caught up")
136
+ }), /* @__PURE__ */ y("span", {
137
137
  className: "block text-xs text-text-secondary",
138
- children: N("dashboard.needsAttention.allCaughtUpDescription", "Required actions across your channels will surface here.")
138
+ children: P("dashboard.needsAttention.allCaughtUpDescription", "Required actions across your channels will surface here.")
139
139
  })]
140
140
  })]
141
- }) : /* @__PURE__ */ b("ul", {
141
+ }) : /* @__PURE__ */ y("ul", {
142
142
  className: "space-y-3",
143
- children: D.slice(0, 3).map((e) => /* @__PURE__ */ b("li", { children: /* @__PURE__ */ x("button", {
143
+ children: E.slice(0, 3).map((e) => /* @__PURE__ */ y("li", { children: /* @__PURE__ */ b("button", {
144
144
  type: "button",
145
- className: S,
146
- onClick: () => M("/inbox"),
147
- children: [/* @__PURE__ */ x("span", {
145
+ className: x,
146
+ onClick: () => j("/inbox"),
147
+ children: [/* @__PURE__ */ b("span", {
148
148
  className: "min-w-0 flex-1",
149
- children: [/* @__PURE__ */ b("span", {
149
+ children: [/* @__PURE__ */ y("span", {
150
150
  className: "block truncate font-semibold text-text-primary",
151
- children: e.subject || N("dashboard.needsAttention.noSubject", "(no subject)")
152
- }), e.preview && /* @__PURE__ */ b("span", {
151
+ children: e.subject || P("dashboard.needsAttention.noSubject", "(no subject)")
152
+ }), e.preview && /* @__PURE__ */ y("span", {
153
153
  className: "block truncate text-sm text-text-secondary",
154
154
  children: e.preview
155
155
  })]
156
- }), /* @__PURE__ */ b(r, {
156
+ }), /* @__PURE__ */ y(r, {
157
157
  status: e.category,
158
158
  className: "shrink-0"
159
159
  })]
160
160
  }) }, e.id))
161
161
  })
162
162
  }),
163
- O.length > 0 && /* @__PURE__ */ b(c, {
164
- title: N("mobile.dashboard.recommendations", "AI recommendations"),
165
- action: /* @__PURE__ */ x("button", {
163
+ D.length > 0 && /* @__PURE__ */ y(s, {
164
+ title: P("mobile.dashboard.recommendations", "AI recommendations"),
165
+ action: /* @__PURE__ */ b("button", {
166
166
  type: "button",
167
- className: C,
168
- onClick: () => M("/decisions"),
167
+ className: S,
168
+ onClick: () => j("/decisions"),
169
169
  children: [
170
- N("common.viewAll", "View all"),
170
+ P("common.viewAll", "View all"),
171
171
  " ",
172
- /* @__PURE__ */ b(m, { className: "h-4 w-4" })
172
+ /* @__PURE__ */ y(p, { className: "rtl:rotate-180 h-4 w-4" })
173
173
  ]
174
174
  }),
175
- children: /* @__PURE__ */ b("ul", {
175
+ children: /* @__PURE__ */ y("ul", {
176
176
  className: "space-y-3",
177
177
  "data-testid": "sb-mobile-decisions",
178
- children: O.slice(0, 3).map((e) => {
179
- let n = u[e.recommendation];
180
- return /* @__PURE__ */ b("li", { children: /* @__PURE__ */ x("button", {
178
+ children: D.slice(0, 3).map((e) => {
179
+ let t = l[e.recommendation];
180
+ return /* @__PURE__ */ y("li", { children: /* @__PURE__ */ b("button", {
181
181
  type: "button",
182
- className: S,
183
- onClick: () => M(`/decisions/${e.id}`),
182
+ className: x,
183
+ onClick: () => j(`/decisions/${e.id}`),
184
184
  children: [
185
- /* @__PURE__ */ b("span", {
185
+ /* @__PURE__ */ y("span", {
186
186
  className: "flex size-10 shrink-0 items-center justify-center rounded-xl bg-bg-sunken text-text-secondary",
187
- children: /* @__PURE__ */ b(g, { className: "h-5 w-5" })
187
+ children: /* @__PURE__ */ y(h, { className: "h-5 w-5" })
188
188
  }),
189
- /* @__PURE__ */ x("span", {
189
+ /* @__PURE__ */ b("span", {
190
190
  className: "min-w-0 flex-1",
191
- children: [/* @__PURE__ */ b("span", {
191
+ children: [/* @__PURE__ */ y("span", {
192
192
  className: "block truncate font-semibold text-text-primary",
193
- children: n ? N(n.key, n.fallback) : e.recommendation
194
- }), /* @__PURE__ */ b("span", {
193
+ children: t ? P(t.key, t.fallback) : e.recommendation
194
+ }), /* @__PURE__ */ y("span", {
195
195
  className: "block truncate text-sm text-text-secondary",
196
- children: k(e.relationshipId) ?? e.rationale
196
+ children: O(e.relationshipId) ?? e.rationale
197
197
  })]
198
198
  }),
199
- e.estimatedSavings > 0 && /* @__PURE__ */ b("span", {
199
+ e.estimatedSavings > 0 && /* @__PURE__ */ y("span", {
200
200
  className: "shrink-0 text-sm font-semibold tabular-nums text-status-success-text",
201
- children: N("mobile.dashboard.savesPerYear", "Save {{amount}}/yr", { amount: t(e.estimatedSavings, e.currency, { maximumFractionDigits: 0 }) })
201
+ children: P("mobile.dashboard.savesPerYear", "Save {{amount}}/yr", { amount: M(e.estimatedSavings, e.currency, { maximumFractionDigits: 0 }) })
202
202
  })
203
203
  ]
204
204
  }) }, e.id);
205
205
  })
206
206
  })
207
207
  }),
208
- A > 0 && /* @__PURE__ */ x("button", {
208
+ k > 0 && /* @__PURE__ */ b("button", {
209
209
  type: "button",
210
- onClick: () => M("/invoices"),
211
- className: "mt-6 flex w-full items-center justify-between gap-3 rounded-2xl border border-status-warning-text/30 bg-status-warning-bg-subtle px-4 py-3 text-left",
212
- children: [/* @__PURE__ */ x("span", {
210
+ onClick: () => j("/invoices"),
211
+ className: "mt-6 flex w-full items-center justify-between gap-3 rounded-2xl border border-status-warning-text/30 bg-status-warning-bg-subtle px-4 py-3 text-start",
212
+ children: [/* @__PURE__ */ b("span", {
213
213
  className: "flex items-center gap-3",
214
- children: [/* @__PURE__ */ b(d, { className: "h-5 w-5 shrink-0 text-status-warning-text" }), /* @__PURE__ */ b("span", {
214
+ children: [/* @__PURE__ */ y(u, { className: "h-5 w-5 shrink-0 text-status-warning-text" }), /* @__PURE__ */ y("span", {
215
215
  className: "text-sm font-medium text-status-warning-text",
216
- children: N("dashboard.openInvoices.label", "{{count}} open invoice · {{amount}} outstanding", {
217
- count: A,
218
- amount: t(j, T.currency)
216
+ children: P("dashboard.openInvoices.label", "{{count}} open invoice · {{amount}} outstanding", {
217
+ count: k,
218
+ amount: M(A, w.currency)
219
219
  })
220
220
  })]
221
- }), /* @__PURE__ */ b(f, { className: "h-4 w-4 shrink-0 text-status-warning-text" })]
221
+ }), /* @__PURE__ */ y(d, { className: "rtl:rotate-180 h-4 w-4 shrink-0 text-status-warning-text" })]
222
222
  }),
223
- /* @__PURE__ */ b(c, {
224
- title: N("dashboard.quickActions.title", "Quick actions"),
225
- children: /* @__PURE__ */ b("div", {
223
+ /* @__PURE__ */ y(s, {
224
+ title: P("dashboard.quickActions.title", "Quick actions"),
225
+ children: /* @__PURE__ */ y("div", {
226
226
  className: "grid grid-cols-2 gap-3",
227
- children: P.map((e) => /* @__PURE__ */ x("button", {
227
+ children: F.map((e) => /* @__PURE__ */ b("button", {
228
228
  type: "button",
229
- onClick: () => M(e.path),
230
- className: "flex min-h-20 flex-col items-start justify-between gap-2 rounded-2xl border border-border-subtle bg-bg-surface p-4 text-left active:bg-bg-sunken",
231
- children: [/* @__PURE__ */ b("span", {
229
+ onClick: () => j(e.path),
230
+ className: "flex min-h-20 flex-col items-start justify-between gap-2 rounded-2xl border border-border-subtle bg-bg-surface p-4 text-start active:bg-bg-sunken",
231
+ children: [/* @__PURE__ */ y("span", {
232
232
  className: "flex size-9 items-center justify-center rounded-lg bg-[var(--color-accent-soft)] text-text-primary",
233
233
  children: e.icon
234
- }), /* @__PURE__ */ b("span", {
234
+ }), /* @__PURE__ */ y("span", {
235
235
  className: "text-sm font-medium text-text-primary",
236
236
  children: e.label
237
237
  })]
@@ -242,6 +242,6 @@ var S = "flex w-full items-center gap-3 rounded-2xl border border-border-subtle
242
242
  });
243
243
  };
244
244
  //#endregion
245
- export { w as MobileDashboard };
245
+ export { C as MobileDashboard };
246
246
 
247
247
  //# sourceMappingURL=MobileDashboard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MobileDashboard.js","names":[],"sources":["../../../../src/subscriberbot/components/mobile/MobileDashboard.tsx"],"sourcesContent":["/**\n * Mobile overview\n * @module subscriberbot/components/mobile\n *\n * The phone overview from `sb-24-mobile-app.jpg`: total recurring spend in the\n * hero, then card-first sections for upcoming renewals, what needs action in\n * the Universal Inbox, open AI recommendations, and quick actions. Every\n * number comes from the same real queries the desktop dashboard uses — the\n * page computes once and hands the results down.\n */\n\nimport type { FC, ReactNode } from 'react';\nimport {\n AlertTriangle,\n ArrowRight,\n Bot,\n ChevronRight,\n Inbox,\n Lightbulb,\n PiggyBank,\n Plus,\n ShieldCheck,\n} from 'lucide-react';\nimport { StatusBadge } from '../StatusBadge';\nimport { MobileScreen, MobileSection } from './MobileScreen';\nimport { RelationshipGlyph } from './RelationshipGlyph';\nimport { RECOMMENDATION_LABEL } from '../decisions/decisionModel';\nimport { useTr } from '../../hooks/useTr';\nimport { cn } from '../../utils/cn';\nimport { formatCurrency, formatIntervalSuffix } from '../../utils/formatters';\nimport {\n daysUntil,\n renewalCountdown,\n type RecurringSpend,\n type UpcomingRenewal,\n} from '../../utils/portfolio';\nimport type { SubDecision, SubInboxMessage } from '../../types';\n\nexport interface MobileDashboardProps {\n greetingName?: string;\n spend: RecurringSpend;\n upcoming: UpcomingRenewal[];\n actionMessages: SubInboxMessage[];\n /** PROPOSED AI decisions, newest first. */\n decisions: SubDecision[];\n relationshipLabel: (relationshipId: string) => string | undefined;\n openInvoiceCount: number;\n openInvoiceTotal: number;\n navigateTo: (relativePath: string) => void;\n}\n\nconst cardCls =\n 'flex w-full items-center gap-3 rounded-2xl border border-border-subtle bg-bg-surface p-4 text-left shadow-sm transition-colors active:bg-bg-sunken';\n\nconst linkCls = 'inline-flex items-center gap-0.5 text-sm font-medium text-text-link';\n\nexport const MobileDashboard: FC<MobileDashboardProps> = ({\n greetingName,\n spend,\n upcoming,\n actionMessages,\n decisions,\n relationshipLabel,\n openInvoiceCount,\n openInvoiceTotal,\n navigateTo,\n}) => {\n const tr = useTr();\n\n const quickActions: Array<{ id: string; label: string; icon: ReactNode; path: string }> = [\n {\n id: 'add',\n label: tr('mobile.dashboard.quick.add', 'Add subscription'),\n icon: <Plus className=\"h-5 w-5\" />,\n path: '/relationships/new',\n },\n {\n id: 'inbox',\n label: tr('mobile.dashboard.quick.inbox', 'Inbox'),\n icon: <Inbox className=\"h-5 w-5\" />,\n path: '/inbox',\n },\n {\n id: 'savings',\n label: tr('mobile.dashboard.quick.savings', 'Savings'),\n icon: <PiggyBank className=\"h-5 w-5\" />,\n path: '/savings',\n },\n {\n id: 'agents',\n label: tr('mobile.dashboard.quick.agents', 'Agents'),\n icon: <Bot className=\"h-5 w-5\" />,\n path: '/agents',\n },\n ];\n\n return (\n <MobileScreen\n testId=\"sb-mobile-dashboard\"\n title={tr('dashboard.title', 'Overview')}\n eyebrow={\n greetingName\n ? tr('mobile.dashboard.greeting', 'Hi, {{name}}', { name: greetingName })\n : undefined\n }\n hero={\n <div>\n <p className=\"text-sm opacity-80\">\n {tr('mobile.dashboard.totalSpend', 'Total recurring spend')}\n </p>\n <p className=\"mt-1 font-bold tabular-nums\" data-testid=\"sb-mobile-total-spend\">\n <span className=\"text-4xl\">{formatCurrency(spend.monthly, spend.currency)}</span>\n <span className=\"text-base font-medium opacity-80\">\n {tr('mobile.dashboard.perMonth', '/month')}\n </span>\n </p>\n <p className=\"mt-1 text-xs opacity-80\">\n {tr(\n spend.activeCount === 1\n ? 'mobile.dashboard.activeCountOne'\n : 'mobile.dashboard.activeCount',\n spend.activeCount === 1\n ? '{{count}} active subscription'\n : '{{count}} active subscriptions',\n { count: spend.activeCount }\n )}\n </p>\n </div>\n }\n >\n <MobileSection\n title={tr('dashboard.renewals.title', 'Upcoming renewals')}\n action={\n upcoming.length > 0 ? (\n <button type=\"button\" className={linkCls} onClick={() => navigateTo('/relationships')}>\n {tr('common.viewAll', 'View all')} <ChevronRight className=\"h-4 w-4\" />\n </button>\n ) : undefined\n }\n >\n {upcoming.length === 0 ? (\n <div className={cn(cardCls, 'text-sm text-text-secondary')}>\n {tr(\n 'dashboard.renewals.emptyDescription',\n 'Renewals you track will appear here ahead of time.'\n )}\n </div>\n ) : (\n <ul className=\"space-y-3\" data-testid=\"sb-mobile-renewals\">\n {upcoming.slice(0, 5).map((u) => {\n const days = daysUntil(u.when);\n const countdown = days == null ? null : renewalCountdown(days);\n return (\n <li key={u.id}>\n <button\n type=\"button\"\n className={cardCls}\n onClick={() => navigateTo(`/relationships/${u.relationshipId}`)}\n >\n <RelationshipGlyph kind={u.kind} />\n <span className=\"min-w-0 flex-1\">\n <span className=\"block truncate font-semibold text-text-primary\">\n {u.title}\n </span>\n {u.amount != null && (\n <span className=\"block text-base tabular-nums text-text-primary\">\n {formatCurrency(u.amount, u.currency ?? spend.currency)}\n {u.interval ? formatIntervalSuffix(u.interval) : ''}\n </span>\n )}\n {countdown && (\n <span\n className={cn(\n 'block text-sm',\n countdown.tone === 'later'\n ? 'text-text-secondary'\n : 'text-status-warning-text'\n )}\n >\n {tr(countdown.key, countdown.fallback, countdown.params)}\n </span>\n )}\n </span>\n <ChevronRight className=\"h-4 w-4 shrink-0 text-text-secondary\" />\n </button>\n </li>\n );\n })}\n </ul>\n )}\n </MobileSection>\n\n <MobileSection\n title={tr('mobile.dashboard.needsAction', 'Needs action')}\n action={\n <button type=\"button\" className={linkCls} onClick={() => navigateTo('/inbox')}>\n {tr('dashboard.needsAttention.openInbox', 'Open inbox')}{' '}\n <ChevronRight className=\"h-4 w-4\" />\n </button>\n }\n >\n {actionMessages.length === 0 ? (\n <div className={cardCls}>\n <span className=\"flex size-10 shrink-0 items-center justify-center rounded-xl bg-status-success-bg-subtle text-status-success-text\">\n <ShieldCheck className=\"h-5 w-5\" />\n </span>\n <span className=\"min-w-0\">\n <span className=\"block text-sm font-medium text-text-primary\">\n {tr('dashboard.needsAttention.allCaughtUp', \"You're all caught up\")}\n </span>\n <span className=\"block text-xs text-text-secondary\">\n {tr(\n 'dashboard.needsAttention.allCaughtUpDescription',\n 'Required actions across your channels will surface here.'\n )}\n </span>\n </span>\n </div>\n ) : (\n <ul className=\"space-y-3\">\n {actionMessages.slice(0, 3).map((m) => (\n <li key={m.id}>\n <button type=\"button\" className={cardCls} onClick={() => navigateTo('/inbox')}>\n <span className=\"min-w-0 flex-1\">\n <span className=\"block truncate font-semibold text-text-primary\">\n {m.subject || tr('dashboard.needsAttention.noSubject', '(no subject)')}\n </span>\n {m.preview && (\n <span className=\"block truncate text-sm text-text-secondary\">\n {m.preview}\n </span>\n )}\n </span>\n <StatusBadge status={m.category} className=\"shrink-0\" />\n </button>\n </li>\n ))}\n </ul>\n )}\n </MobileSection>\n\n {decisions.length > 0 && (\n <MobileSection\n title={tr('mobile.dashboard.recommendations', 'AI recommendations')}\n action={\n <button type=\"button\" className={linkCls} onClick={() => navigateTo('/decisions')}>\n {tr('common.viewAll', 'View all')} <ChevronRight className=\"h-4 w-4\" />\n </button>\n }\n >\n <ul className=\"space-y-3\" data-testid=\"sb-mobile-decisions\">\n {decisions.slice(0, 3).map((d) => {\n const rec = RECOMMENDATION_LABEL[d.recommendation];\n return (\n <li key={d.id}>\n <button\n type=\"button\"\n className={cardCls}\n onClick={() => navigateTo(`/decisions/${d.id}`)}\n >\n <span className=\"flex size-10 shrink-0 items-center justify-center rounded-xl bg-bg-sunken text-text-secondary\">\n <Lightbulb className=\"h-5 w-5\" />\n </span>\n <span className=\"min-w-0 flex-1\">\n <span className=\"block truncate font-semibold text-text-primary\">\n {rec ? tr(rec.key, rec.fallback) : d.recommendation}\n </span>\n <span className=\"block truncate text-sm text-text-secondary\">\n {relationshipLabel(d.relationshipId) ?? d.rationale}\n </span>\n </span>\n {d.estimatedSavings > 0 && (\n <span className=\"shrink-0 text-sm font-semibold tabular-nums text-status-success-text\">\n {tr('mobile.dashboard.savesPerYear', 'Save {{amount}}/yr', {\n amount: formatCurrency(d.estimatedSavings, d.currency, {\n maximumFractionDigits: 0,\n }),\n })}\n </span>\n )}\n </button>\n </li>\n );\n })}\n </ul>\n </MobileSection>\n )}\n\n {openInvoiceCount > 0 && (\n <button\n type=\"button\"\n onClick={() => navigateTo('/invoices')}\n className=\"mt-6 flex w-full items-center justify-between gap-3 rounded-2xl border border-status-warning-text/30 bg-status-warning-bg-subtle px-4 py-3 text-left\"\n >\n <span className=\"flex items-center gap-3\">\n <AlertTriangle className=\"h-5 w-5 shrink-0 text-status-warning-text\" />\n <span className=\"text-sm font-medium text-status-warning-text\">\n {tr(\n 'dashboard.openInvoices.label',\n '{{count}} open invoice · {{amount}} outstanding',\n {\n count: openInvoiceCount,\n amount: formatCurrency(openInvoiceTotal, spend.currency),\n }\n )}\n </span>\n </span>\n <ArrowRight className=\"h-4 w-4 shrink-0 text-status-warning-text\" />\n </button>\n )}\n\n <MobileSection title={tr('dashboard.quickActions.title', 'Quick actions')}>\n <div className=\"grid grid-cols-2 gap-3\">\n {quickActions.map((qa) => (\n <button\n key={qa.id}\n type=\"button\"\n onClick={() => navigateTo(qa.path)}\n className=\"flex min-h-20 flex-col items-start justify-between gap-2 rounded-2xl border border-border-subtle bg-bg-surface p-4 text-left active:bg-bg-sunken\"\n >\n <span className=\"flex size-9 items-center justify-center rounded-lg bg-[var(--color-accent-soft)] text-text-primary\">\n {qa.icon}\n </span>\n <span className=\"text-sm font-medium text-text-primary\">{qa.label}</span>\n </button>\n ))}\n </div>\n </MobileSection>\n </MobileScreen>\n );\n};\n"],"mappings":";;;;;;;;;;;AAmDA,IAAM,IACJ,sJAEI,IAAU,uEAEH,KAA6C,EACxD,iBACA,UACA,aACA,mBACA,cACA,sBACA,qBACA,qBACA,oBACI;CACJ,IAAM,IAAK,EAAM,GAEX,IAAoF;EACxF;GACE,IAAI;GACJ,OAAO,EAAG,8BAA8B,kBAAkB;GAC1D,MAAM,kBAAC,GAAD,EAAM,WAAU,UAAW,CAAA;GACjC,MAAM;EACR;EACA;GACE,IAAI;GACJ,OAAO,EAAG,gCAAgC,OAAO;GACjD,MAAM,kBAAC,GAAD,EAAO,WAAU,UAAW,CAAA;GAClC,MAAM;EACR;EACA;GACE,IAAI;GACJ,OAAO,EAAG,kCAAkC,SAAS;GACrD,MAAM,kBAAC,GAAD,EAAW,WAAU,UAAW,CAAA;GACtC,MAAM;EACR;EACA;GACE,IAAI;GACJ,OAAO,EAAG,iCAAiC,QAAQ;GACnD,MAAM,kBAAC,GAAD,EAAK,WAAU,UAAW,CAAA;GAChC,MAAM;EACR;CACF;CAEA,OACE,kBAAC,GAAD;EACE,QAAO;EACP,OAAO,EAAG,mBAAmB,UAAU;EACvC,SACE,IACI,EAAG,6BAA6B,gBAAgB,EAAE,MAAM,EAAa,CAAC,IACtE,KAAA;EAEN,MACE,kBAAC,OAAD,EAAA,UAAA;GACE,kBAAC,KAAD;IAAG,WAAU;cACV,EAAG,+BAA+B,uBAAuB;GACzD,CAAA;GACH,kBAAC,KAAD;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AAC,QAAD;KAAM,WAAU;eAAhB,CACE,kBAAC,GAAD,EAAe,WAAU,4CAA6C,CAAA,GACtE,kBAAC,QAAD;MAAM,WAAU;gBACb,EACC,gCACA,mDACA;OACE,OAAO;OACP,QAAQ,EAAe,GAAkB,EAAM,QAAQ;MACzD,CACF;KACI,CAAA,CACF;QACN,kBAAC,GAAD,EAAY,WAAU,4CAA6C,CAAA,CAC7D;;GAGV,kBAAC,GAAD;IAAe,OAAO,EAAG,gCAAgC,eAAe;cACtE,kBAAC,OAAD;KAAK,WAAU;eACZ,EAAa,KAAK,MACjB,kBAAC,UAAD;MAEE,MAAK;MACL,eAAe,EAAW,EAAG,IAAI;MACjC,WAAU;gBAJZ,CAME,kBAAC,QAAD;OAAM,WAAU;iBACb,EAAG;MACA,CAAA,GACN,kBAAC,QAAD;OAAM,WAAU;iBAAyC,EAAG;MAAY,CAAA,CAClE;QATD,EAAG,EASF,CACT;IACE,CAAA;GACQ,CAAA;EACH;;AAElB"}
1
+ {"version":3,"file":"MobileDashboard.js","names":[],"sources":["../../../../src/subscriberbot/components/mobile/MobileDashboard.tsx"],"sourcesContent":["import { useFormatters } from '../../hooks/useFormatters';\n/**\n * Mobile overview\n * @module subscriberbot/components/mobile\n *\n * The phone overview from `sb-24-mobile-app.jpg`: total recurring spend in the\n * hero, then card-first sections for upcoming renewals, what needs action in\n * the Universal Inbox, open AI recommendations, and quick actions. Every\n * number comes from the same real queries the desktop dashboard uses — the\n * page computes once and hands the results down.\n */\n\nimport type { FC, ReactNode } from 'react';\nimport {\n AlertTriangle,\n ArrowRight,\n Bot,\n ChevronRight,\n Inbox,\n Lightbulb,\n PiggyBank,\n Plus,\n ShieldCheck,\n} from 'lucide-react';\nimport { StatusBadge } from '../StatusBadge';\nimport { MobileScreen, MobileSection } from './MobileScreen';\nimport { RelationshipGlyph } from './RelationshipGlyph';\nimport { RECOMMENDATION_LABEL } from '../decisions/decisionModel';\nimport { useTr } from '../../hooks/useTr';\nimport { cn } from '../../utils/cn';\n\nimport {\n daysUntil,\n renewalCountdown,\n type RecurringSpend,\n type UpcomingRenewal,\n} from '../../utils/portfolio';\nimport type { SubDecision, SubInboxMessage } from '../../types';\n\nexport interface MobileDashboardProps {\n greetingName?: string;\n spend: RecurringSpend;\n upcoming: UpcomingRenewal[];\n actionMessages: SubInboxMessage[];\n /** PROPOSED AI decisions, newest first. */\n decisions: SubDecision[];\n relationshipLabel: (relationshipId: string) => string | undefined;\n openInvoiceCount: number;\n openInvoiceTotal: number;\n navigateTo: (relativePath: string) => void;\n}\n\nconst cardCls =\n 'flex w-full items-center gap-3 rounded-2xl border border-border-subtle bg-bg-surface p-4 text-start shadow-sm transition-colors active:bg-bg-sunken';\n\nconst linkCls = 'inline-flex items-center gap-0.5 text-sm font-medium text-text-link';\n\nexport const MobileDashboard: FC<MobileDashboardProps> = ({\n greetingName,\n spend,\n upcoming,\n actionMessages,\n decisions,\n relationshipLabel,\n openInvoiceCount,\n openInvoiceTotal,\n navigateTo,\n}) => {\n const { formatCurrency, formatIntervalSuffix } = useFormatters();\n\n const tr = useTr();\n\n const quickActions: Array<{ id: string; label: string; icon: ReactNode; path: string }> = [\n {\n id: 'add',\n label: tr('mobile.dashboard.quick.add', 'Add subscription'),\n icon: <Plus className=\"h-5 w-5\" />,\n path: '/relationships/new',\n },\n {\n id: 'inbox',\n label: tr('mobile.dashboard.quick.inbox', 'Inbox'),\n icon: <Inbox className=\"h-5 w-5\" />,\n path: '/inbox',\n },\n {\n id: 'savings',\n label: tr('mobile.dashboard.quick.savings', 'Savings'),\n icon: <PiggyBank className=\"h-5 w-5\" />,\n path: '/savings',\n },\n {\n id: 'agents',\n label: tr('mobile.dashboard.quick.agents', 'Agents'),\n icon: <Bot className=\"h-5 w-5\" />,\n path: '/agents',\n },\n ];\n\n return (\n <MobileScreen\n testId=\"sb-mobile-dashboard\"\n title={tr('dashboard.title', 'Overview')}\n eyebrow={\n greetingName\n ? tr('mobile.dashboard.greeting', 'Hi, {{name}}', { name: greetingName })\n : undefined\n }\n hero={\n <div>\n <p className=\"text-sm\">{tr('mobile.dashboard.totalSpend', 'Total recurring spend')}</p>\n <p className=\"mt-1 font-bold tabular-nums\" data-testid=\"sb-mobile-total-spend\">\n <span className=\"text-4xl\">{formatCurrency(spend.monthly, spend.currency)}</span>\n <span className=\"text-base font-medium\">\n {tr('mobile.dashboard.perMonth', '/month')}\n </span>\n </p>\n <p className=\"mt-1 text-xs\">\n {tr(\n spend.activeCount === 1\n ? 'mobile.dashboard.activeCountOne'\n : 'mobile.dashboard.activeCount',\n spend.activeCount === 1\n ? '{{count}} active subscription'\n : '{{count}} active subscriptions',\n { count: spend.activeCount }\n )}\n </p>\n </div>\n }\n >\n <MobileSection\n title={tr('dashboard.renewals.title', 'Upcoming renewals')}\n action={\n upcoming.length > 0 ? (\n <button type=\"button\" className={linkCls} onClick={() => navigateTo('/relationships')}>\n {tr('common.viewAll', 'View all')} <ChevronRight className=\"rtl:rotate-180 h-4 w-4\" />\n </button>\n ) : undefined\n }\n >\n {upcoming.length === 0 ? (\n <div className={cn(cardCls, 'text-sm text-text-secondary')}>\n {tr(\n 'dashboard.renewals.emptyDescription',\n 'Renewals you track will appear here ahead of time.'\n )}\n </div>\n ) : (\n <ul className=\"space-y-3\" data-testid=\"sb-mobile-renewals\">\n {upcoming.slice(0, 5).map((u) => {\n const days = daysUntil(u.when);\n const countdown = days == null ? null : renewalCountdown(days);\n return (\n <li key={u.id}>\n <button\n type=\"button\"\n className={cardCls}\n onClick={() => navigateTo(`/relationships/${u.relationshipId}`)}\n >\n <RelationshipGlyph kind={u.kind} />\n <span className=\"min-w-0 flex-1\">\n <span className=\"block truncate font-semibold text-text-primary\">\n {u.title}\n </span>\n {u.amount != null && (\n <span className=\"block text-base tabular-nums text-text-primary\">\n {formatCurrency(u.amount, u.currency ?? spend.currency)}\n {u.interval ? formatIntervalSuffix(u.interval) : ''}\n </span>\n )}\n {countdown && (\n <span\n className={cn(\n 'block text-sm',\n countdown.tone === 'later'\n ? 'text-text-secondary'\n : 'text-status-warning-text'\n )}\n >\n {tr(countdown.key, countdown.fallback, countdown.params)}\n </span>\n )}\n </span>\n <ChevronRight className=\"rtl:rotate-180 h-4 w-4 shrink-0 text-text-secondary\" />\n </button>\n </li>\n );\n })}\n </ul>\n )}\n </MobileSection>\n\n <MobileSection\n title={tr('mobile.dashboard.needsAction', 'Needs action')}\n action={\n <button type=\"button\" className={linkCls} onClick={() => navigateTo('/inbox')}>\n {tr('dashboard.needsAttention.openInbox', 'Open inbox')}{' '}\n <ChevronRight className=\"rtl:rotate-180 h-4 w-4\" />\n </button>\n }\n >\n {actionMessages.length === 0 ? (\n <div className={cardCls}>\n <span className=\"flex size-10 shrink-0 items-center justify-center rounded-xl bg-status-success-bg-subtle text-status-success-text\">\n <ShieldCheck className=\"h-5 w-5\" />\n </span>\n <span className=\"min-w-0\">\n <span className=\"block text-sm font-medium text-text-primary\">\n {tr('dashboard.needsAttention.allCaughtUp', \"You're all caught up\")}\n </span>\n <span className=\"block text-xs text-text-secondary\">\n {tr(\n 'dashboard.needsAttention.allCaughtUpDescription',\n 'Required actions across your channels will surface here.'\n )}\n </span>\n </span>\n </div>\n ) : (\n <ul className=\"space-y-3\">\n {actionMessages.slice(0, 3).map((m) => (\n <li key={m.id}>\n <button type=\"button\" className={cardCls} onClick={() => navigateTo('/inbox')}>\n <span className=\"min-w-0 flex-1\">\n <span className=\"block truncate font-semibold text-text-primary\">\n {m.subject || tr('dashboard.needsAttention.noSubject', '(no subject)')}\n </span>\n {m.preview && (\n <span className=\"block truncate text-sm text-text-secondary\">\n {m.preview}\n </span>\n )}\n </span>\n <StatusBadge status={m.category} className=\"shrink-0\" />\n </button>\n </li>\n ))}\n </ul>\n )}\n </MobileSection>\n\n {decisions.length > 0 && (\n <MobileSection\n title={tr('mobile.dashboard.recommendations', 'AI recommendations')}\n action={\n <button type=\"button\" className={linkCls} onClick={() => navigateTo('/decisions')}>\n {tr('common.viewAll', 'View all')} <ChevronRight className=\"rtl:rotate-180 h-4 w-4\" />\n </button>\n }\n >\n <ul className=\"space-y-3\" data-testid=\"sb-mobile-decisions\">\n {decisions.slice(0, 3).map((d) => {\n const rec = RECOMMENDATION_LABEL[d.recommendation];\n return (\n <li key={d.id}>\n <button\n type=\"button\"\n className={cardCls}\n onClick={() => navigateTo(`/decisions/${d.id}`)}\n >\n <span className=\"flex size-10 shrink-0 items-center justify-center rounded-xl bg-bg-sunken text-text-secondary\">\n <Lightbulb className=\"h-5 w-5\" />\n </span>\n <span className=\"min-w-0 flex-1\">\n <span className=\"block truncate font-semibold text-text-primary\">\n {rec ? tr(rec.key, rec.fallback) : d.recommendation}\n </span>\n <span className=\"block truncate text-sm text-text-secondary\">\n {relationshipLabel(d.relationshipId) ?? d.rationale}\n </span>\n </span>\n {d.estimatedSavings > 0 && (\n <span className=\"shrink-0 text-sm font-semibold tabular-nums text-status-success-text\">\n {tr('mobile.dashboard.savesPerYear', 'Save {{amount}}/yr', {\n amount: formatCurrency(d.estimatedSavings, d.currency, {\n maximumFractionDigits: 0,\n }),\n })}\n </span>\n )}\n </button>\n </li>\n );\n })}\n </ul>\n </MobileSection>\n )}\n\n {openInvoiceCount > 0 && (\n <button\n type=\"button\"\n onClick={() => navigateTo('/invoices')}\n className=\"mt-6 flex w-full items-center justify-between gap-3 rounded-2xl border border-status-warning-text/30 bg-status-warning-bg-subtle px-4 py-3 text-start\"\n >\n <span className=\"flex items-center gap-3\">\n <AlertTriangle className=\"h-5 w-5 shrink-0 text-status-warning-text\" />\n <span className=\"text-sm font-medium text-status-warning-text\">\n {tr(\n 'dashboard.openInvoices.label',\n '{{count}} open invoice · {{amount}} outstanding',\n {\n count: openInvoiceCount,\n amount: formatCurrency(openInvoiceTotal, spend.currency),\n }\n )}\n </span>\n </span>\n <ArrowRight className=\"rtl:rotate-180 h-4 w-4 shrink-0 text-status-warning-text\" />\n </button>\n )}\n\n <MobileSection title={tr('dashboard.quickActions.title', 'Quick actions')}>\n <div className=\"grid grid-cols-2 gap-3\">\n {quickActions.map((qa) => (\n <button\n key={qa.id}\n type=\"button\"\n onClick={() => navigateTo(qa.path)}\n className=\"flex min-h-20 flex-col items-start justify-between gap-2 rounded-2xl border border-border-subtle bg-bg-surface p-4 text-start active:bg-bg-sunken\"\n >\n <span className=\"flex size-9 items-center justify-center rounded-lg bg-[var(--color-accent-soft)] text-text-primary\">\n {qa.icon}\n </span>\n <span className=\"text-sm font-medium text-text-primary\">{qa.label}</span>\n </button>\n ))}\n </div>\n </MobileSection>\n </MobileScreen>\n );\n};\n"],"mappings":";;;;;;;;;;;AAoDA,IAAM,IACJ,uJAEI,IAAU,uEAEH,KAA6C,EACxD,iBACA,UACA,aACA,mBACA,cACA,sBACA,qBACA,qBACA,oBACI;CACJ,IAAM,EAAE,mBAAgB,4BAAyB,EAAc,GAEzD,IAAK,EAAM,GAEX,IAAoF;EACxF;GACE,IAAI;GACJ,OAAO,EAAG,8BAA8B,kBAAkB;GAC1D,MAAM,kBAAC,GAAD,EAAM,WAAU,UAAW,CAAA;GACjC,MAAM;EACR;EACA;GACE,IAAI;GACJ,OAAO,EAAG,gCAAgC,OAAO;GACjD,MAAM,kBAAC,GAAD,EAAO,WAAU,UAAW,CAAA;GAClC,MAAM;EACR;EACA;GACE,IAAI;GACJ,OAAO,EAAG,kCAAkC,SAAS;GACrD,MAAM,kBAAC,GAAD,EAAW,WAAU,UAAW,CAAA;GACtC,MAAM;EACR;EACA;GACE,IAAI;GACJ,OAAO,EAAG,iCAAiC,QAAQ;GACnD,MAAM,kBAAC,GAAD,EAAK,WAAU,UAAW,CAAA;GAChC,MAAM;EACR;CACF;CAEA,OACE,kBAAC,GAAD;EACE,QAAO;EACP,OAAO,EAAG,mBAAmB,UAAU;EACvC,SACE,IACI,EAAG,6BAA6B,gBAAgB,EAAE,MAAM,EAAa,CAAC,IACtE,KAAA;EAEN,MACE,kBAAC,OAAD,EAAA,UAAA;GACE,kBAAC,KAAD;IAAG,WAAU;cAAW,EAAG,+BAA+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IACL,eAAe,EAAW,WAAW;IACrC,WAAU;cAHZ,CAKE,kBAAC,QAAD;KAAM,WAAU;eAAhB,CACE,kBAAC,GAAD,EAAe,WAAU,4CAA6C,CAAA,GACtE,kBAAC,QAAD;MAAM,WAAU;gBACb,EACC,gCACA,mDACA;OACE,OAAO;OACP,QAAQ,EAAe,GAAkB,EAAM,QAAQ;MACzD,CACF;KACI,CAAA,CACF;QACN,kBAAC,GAAD,EAAY,WAAU,2DAA4D,CAAA,CAC5E;;GAGV,kBAAC,GAAD;IAAe,OAAO,EAAG,gCAAgC,eAAe;cACtE,kBAAC,OAAD;KAAK,WAAU;eACZ,EAAa,KAAK,MACjB,kBAAC,UAAD;MAEE,MAAK;MACL,eAAe,EAAW,EAAG,IAAI;MACjC,WAAU;gBAJZ,CAME,kBAAC,QAAD;OAAM,WAAU;iBACb,EAAG;MACA,CAAA,GACN,kBAAC,QAAD;OAAM,WAAU;iBAAyC,EAAG;MAAY,CAAA,CAClE;QATD,EAAG,EASF,CACT;IACE,CAAA;GACQ,CAAA;EACH;;AAElB"}
@@ -1 +1 @@
1
- {"version":3,"file":"MobileRelationshipList.d.ts","sourceRoot":"","sources":["../../../../src/subscriberbot/components/mobile/MobileRelationshipList.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAGL,KAAK,EAAE,EAGR,MAAM,OAAO,CAAC;AAkCf,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAqCnD,UAAU,2BAA2B;IACnC,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,UAAU,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5C;AAED,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC,2BAA2B,CA4IlE,CAAC"}
1
+ {"version":3,"file":"MobileRelationshipList.d.ts","sourceRoot":"","sources":["../../../../src/subscriberbot/components/mobile/MobileRelationshipList.tsx"],"names":[],"mappings":"AACA;;;;;;;;;;GAUG;AAEH,OAAO,EAGL,KAAK,EAAE,EAGR,MAAM,OAAO,CAAC;AAkCf,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAqCnD,UAAU,2BAA2B;IACnC,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,UAAU,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5C;AAED,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC,2BAA2B,CA8IlE,CAAC"}