@burdenoff/microfe-timecampus 2026.1203.2 → 2026.1204.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 (64) hide show
  1. package/dist/timecampus/components/EmptyState.d.ts +7 -0
  2. package/dist/timecampus/components/EmptyState.js +3 -2
  3. package/dist/timecampus/components/EmptyState.js.map +1 -1
  4. package/dist/timecampus/components/FilterBar.js +1 -0
  5. package/dist/timecampus/pages/admin/AdminPage.js +264 -264
  6. package/dist/timecampus/pages/admin/AdminPage.js.map +1 -1
  7. package/dist/timecampus/pages/application-usage/ApplicationUsagePage.js +78 -78
  8. package/dist/timecampus/pages/application-usage/ApplicationUsagePage.js.map +1 -1
  9. package/dist/timecampus/pages/dashboard/ServerReportExports.js +34 -34
  10. package/dist/timecampus/pages/dashboard/ServerReportExports.js.map +1 -1
  11. package/dist/timecampus/pages/expense-tracking/ExpenseTrackingPage.js +49 -48
  12. package/dist/timecampus/pages/expense-tracking/ExpenseTrackingPage.js.map +1 -1
  13. package/dist/timecampus/pages/extend/AppletDeveloperPage.js +107 -102
  14. package/dist/timecampus/pages/extend/AppletDeveloperPage.js.map +1 -1
  15. package/dist/timecampus/pages/extend/MarketplaceCertificationPage.js +129 -124
  16. package/dist/timecampus/pages/extend/MarketplaceCertificationPage.js.map +1 -1
  17. package/dist/timecampus/pages/extend/ThirdPartyAppletsSection.js +94 -94
  18. package/dist/timecampus/pages/extend/ThirdPartyAppletsSection.js.map +1 -1
  19. package/dist/timecampus/pages/extend/TimeTriggersPage.js +97 -97
  20. package/dist/timecampus/pages/extend/TimeTriggersPage.js.map +1 -1
  21. package/dist/timecampus/pages/focus/FocusProtectionPage.js +120 -120
  22. package/dist/timecampus/pages/focus/FocusProtectionPage.js.map +1 -1
  23. package/dist/timecampus/pages/geofencing/GeofencingPage.js +343 -343
  24. package/dist/timecampus/pages/geofencing/GeofencingPage.js.map +1 -1
  25. package/dist/timecampus/pages/lifetime/LifeTimelinePage.js +25 -25
  26. package/dist/timecampus/pages/lifetime/LifeTimelinePage.js.map +1 -1
  27. package/dist/timecampus/pages/lifetime/RecommendationsPage.js +296 -296
  28. package/dist/timecampus/pages/lifetime/RecommendationsPage.js.map +1 -1
  29. package/dist/timecampus/pages/lifetime/ValuesGoalsPage.js +189 -189
  30. package/dist/timecampus/pages/lifetime/ValuesGoalsPage.js.map +1 -1
  31. package/dist/timecampus/pages/meetings/ActionItemFormModal.js +47 -46
  32. package/dist/timecampus/pages/meetings/ActionItemFormModal.js.map +1 -1
  33. package/dist/timecampus/pages/meetings/MeetingDetailPage.js +206 -206
  34. package/dist/timecampus/pages/meetings/MeetingDetailPage.js.map +1 -1
  35. package/dist/timecampus/pages/meetings/MeetingFormModal.js +72 -71
  36. package/dist/timecampus/pages/meetings/MeetingFormModal.js.map +1 -1
  37. package/dist/timecampus/pages/meetings/ParticipantFormModal.js +32 -31
  38. package/dist/timecampus/pages/meetings/ParticipantFormModal.js.map +1 -1
  39. package/dist/timecampus/pages/pomodoro/PomodoroPage.js +34 -34
  40. package/dist/timecampus/pages/pomodoro/PomodoroPage.js.map +1 -1
  41. package/dist/timecampus/pages/projects/ProjectDetailPage.js +163 -163
  42. package/dist/timecampus/pages/projects/ProjectDetailPage.js.map +1 -1
  43. package/dist/timecampus/pages/projects/ProjectsPage.js +193 -192
  44. package/dist/timecampus/pages/projects/ProjectsPage.js.map +1 -1
  45. package/dist/timecampus/pages/projects/TasksPage.js +92 -92
  46. package/dist/timecampus/pages/projects/TasksPage.js.map +1 -1
  47. package/dist/timecampus/pages/resource-planning/ResourcePlanningPage.js +60 -60
  48. package/dist/timecampus/pages/resource-planning/ResourcePlanningPage.js.map +1 -1
  49. package/dist/timecampus/pages/settings/IdleDetectionCard.js +33 -33
  50. package/dist/timecampus/pages/settings/IdleDetectionCard.js.map +1 -1
  51. package/dist/timecampus/pages/settings/PrivacySettingsPage.js +32 -32
  52. package/dist/timecampus/pages/settings/PrivacySettingsPage.js.map +1 -1
  53. package/dist/timecampus/pages/time/TimeEntriesPage.js +163 -163
  54. package/dist/timecampus/pages/time/TimeEntriesPage.js.map +1 -1
  55. package/dist/timecampus/pages/time/TimeTrackingPage.js +32 -32
  56. package/dist/timecampus/pages/time/TimeTrackingPage.js.map +1 -1
  57. package/dist/timecampus/pages/time/TimerPage.js +84 -84
  58. package/dist/timecampus/pages/time/TimerPage.js.map +1 -1
  59. package/dist/timecampus/pages/timeline/TimelinePage.js +223 -223
  60. package/dist/timecampus/pages/timeline/TimelinePage.js.map +1 -1
  61. package/dist/timecampus/shared/hooks/useConfirmedAction.d.ts +10 -0
  62. package/dist/timecampus/shared/hooks/useConfirmedAction.js +14 -0
  63. package/dist/timecampus/shared/hooks/useConfirmedAction.js.map +1 -0
  64. package/package.json +2 -2
@@ -9,67 +9,67 @@ import { StatusBadge as s } from "../../components/StatusBadge.js";
9
9
  import { Modal as c } from "../../components/Modal.js";
10
10
  import { ToastContainer as l, useToast as u } from "../../components/Toast.js";
11
11
  import { TimeCampusLifeDomain as d } from "../../../generated/wspace-types.js";
12
- import { useAcceptRecommendationMutation as f, useDismissRecommendationMutation as p, useGenerateMyRecommendationsMutation as ee, useMyRecommendationPreferencesQuery as m, useMyRecommendationsQuery as h, useMyTimeIntelligenceDeliveriesQuery as g, useSnoozeRecommendationMutation as _, useUpdateMyRecommendationPreferencesMutation as te } from "../../../generated/wspace-operations.js";
13
- import { ALL_LIFE_DOMAINS as v, lifeDomainLabel as y, toggleLifeDomain as b } from "./domains.js";
14
- import { evidenceWeeks as x, formatEvidenceRef as S, formatHourOfDay as C, humaniseToken as w, parseEvidenceRefs as T, parseSuggestedAction as E, recommendationKindLabel as D, recommendationProvenance as ne } from "./recommendationEvidence.js";
15
- import { DIGEST_CADENCE_OPTIONS as re, DIGEST_DAY_OPTIONS as O, describeDelivery as ie, formatUtcHourWithLocal as ae } from "./timeIntelligence.js";
16
- import { useMemo as k, useState as A } from "react";
17
- import { BellOff as oe, Briefcase as se, Bus as ce, CalendarClock as le, Check as j, CheckCircle2 as ue, ChevronDown as de, Circle as fe, Clock as M, Coffee as N, ExternalLink as pe, GraduationCap as me, Handshake as he, Heart as P, HeartPulse as F, Home as I, Hourglass as L, Lightbulb as R, Microscope as ge, Moon as _e, ShieldCheck as ve, Sparkles as z, Users as ye, Wallet as be, X as B } from "lucide-react";
18
- import { Fragment as xe, jsx as V, jsxs as H } from "react/jsx-runtime";
19
- import { GlassCard as U } from "@burdenoff/fe-libs/ui";
12
+ import { useAcceptRecommendationMutation as f, useDismissRecommendationMutation as p, useGenerateMyRecommendationsMutation as ee, useMyRecommendationPreferencesQuery as m, useMyRecommendationsQuery as h, useMyTimeIntelligenceDeliveriesQuery as g, useSnoozeRecommendationMutation as te, useUpdateMyRecommendationPreferencesMutation as ne } from "../../../generated/wspace-operations.js";
13
+ import { ALL_LIFE_DOMAINS as _, lifeDomainLabel as v, toggleLifeDomain as y } from "./domains.js";
14
+ import { evidenceWeeks as b, formatEvidenceRef as x, formatHourOfDay as S, humaniseToken as C, parseEvidenceRefs as w, parseSuggestedAction as T, recommendationKindLabel as E, recommendationProvenance as re } from "./recommendationEvidence.js";
15
+ import { DIGEST_CADENCE_OPTIONS as ie, DIGEST_DAY_OPTIONS as D, describeDelivery as ae, formatUtcHourWithLocal as oe } from "./timeIntelligence.js";
16
+ import { useMemo as O, useState as k } from "react";
17
+ import { BellOff as se, Briefcase as ce, Bus as A, CalendarClock as le, Check as j, CheckCircle2 as ue, ChevronDown as de, Circle as fe, Clock as M, Coffee as N, ExternalLink as pe, GraduationCap as me, Handshake as he, Heart as P, HeartPulse as F, Home as I, Hourglass as L, Lightbulb as R, Microscope as ge, Moon as _e, ShieldCheck as z, Sparkles as B, Users as ve, Wallet as ye, X as V } from "lucide-react";
18
+ import { Fragment as be, jsx as H, jsxs as U } from "react/jsx-runtime";
19
+ import { GlassCard as W, ThemedSelect as G } from "@burdenoff/fe-libs/ui";
20
20
  // src/timecampus/pages/lifetime/RecommendationsPage.tsx
21
- var W = {
21
+ var K = {
22
22
  New: "NEW",
23
23
  Snoozed: "SNOOZED",
24
24
  Accepted: "ACCEPTED",
25
25
  Dismissed: "DISMISSED",
26
26
  Expired: "EXPIRED"
27
- }, Se = [
27
+ }, xe = [
28
28
  {
29
- key: W.New,
29
+ key: K.New,
30
30
  label: "New"
31
31
  },
32
32
  {
33
- key: W.Snoozed,
33
+ key: K.Snoozed,
34
34
  label: "Snoozed"
35
35
  },
36
36
  {
37
- key: W.Accepted,
37
+ key: K.Accepted,
38
38
  label: "Accepted"
39
39
  },
40
40
  {
41
- key: W.Dismissed,
41
+ key: K.Dismissed,
42
42
  label: "Dismissed"
43
43
  }
44
44
  ];
45
- function Ce(e) {
46
- return e === W.New || e === W.Snoozed;
45
+ function Se(e) {
46
+ return e === K.New || e === K.Snoozed;
47
47
  }
48
- function we() {
48
+ function Ce() {
49
49
  return new Date(Date.now() + 6048e5).toISOString();
50
50
  }
51
- var Te = (e) => Math.min(1, Math.max(0, e)), G = (e) => `${Math.round(Te(e) * 100)}%`;
52
- function K(e) {
51
+ var we = (e) => Math.min(1, Math.max(0, e)), Te = (e) => `${Math.round(we(e) * 100)}%`;
52
+ function q(e) {
53
53
  return new Date(e).toLocaleDateString(void 0, {
54
54
  month: "short",
55
55
  day: "numeric",
56
56
  year: "numeric"
57
57
  });
58
58
  }
59
- var q = Array.from({ length: 24 }, (e, t) => t), Ee = {
60
- [d.Work]: se,
59
+ var J = Array.from({ length: 24 }, (e, t) => t), Ee = {
60
+ [d.Work]: ce,
61
61
  [d.Sleep]: _e,
62
62
  [d.Health]: F,
63
- [d.Family]: ye,
63
+ [d.Family]: ve,
64
64
  [d.Learning]: me,
65
65
  [d.Leisure]: N,
66
- [d.Commute]: ce,
66
+ [d.Commute]: A,
67
67
  [d.Waiting]: L,
68
68
  [d.Chores]: I,
69
69
  [d.SelfCare]: P,
70
70
  [d.Social]: he,
71
- [d.FinanceAdmin]: be,
72
- [d.Reflection]: z,
71
+ [d.FinanceAdmin]: ye,
72
+ [d.Reflection]: B,
73
73
  [d.Other]: fe
74
74
  };
75
75
  function De(e) {
@@ -77,19 +77,19 @@ function De(e) {
77
77
  }
78
78
  function Oe(e) {
79
79
  switch (e) {
80
- case W.Accepted: return {
80
+ case K.Accepted: return {
81
81
  variant: "success",
82
82
  label: "Accepted"
83
83
  };
84
- case W.Snoozed: return {
84
+ case K.Snoozed: return {
85
85
  variant: "warning",
86
86
  label: "Snoozed"
87
87
  };
88
- case W.Dismissed: return {
88
+ case K.Dismissed: return {
89
89
  variant: "muted",
90
90
  label: "Dismissed"
91
91
  };
92
- case W.Expired: return {
92
+ case K.Expired: return {
93
93
  variant: "muted",
94
94
  label: "Expired"
95
95
  };
@@ -99,9 +99,9 @@ function Oe(e) {
99
99
  };
100
100
  }
101
101
  }
102
- var J = "inline-flex items-center gap-1.5 rounded-md bg-action-primary-bg px-3 py-1.5 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 disabled:opacity-50", Y = "inline-flex items-center gap-1.5 rounded-md border border-border-subtle px-3 py-1.5 text-sm font-medium text-text-primary hover:bg-bg-sunken/50 disabled:opacity-50", X = "inline-flex items-center gap-1 rounded-full bg-bg-sunken px-2.5 py-0.5 text-xs font-medium text-text-secondary";
102
+ var ke = "inline-flex items-center gap-1.5 rounded-md bg-action-primary-bg px-3 py-1.5 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 disabled:opacity-50", Y = "inline-flex items-center gap-1.5 rounded-md border border-border-subtle px-3 py-1.5 text-sm font-medium text-text-primary hover:bg-bg-sunken/50 disabled:opacity-50", X = "inline-flex items-center gap-1 rounded-full bg-bg-sunken px-2.5 py-0.5 text-xs font-medium text-text-secondary";
103
103
  function Z({ checked: t, onChange: n, label: r, disabled: i }) {
104
- return /* @__PURE__ */ V("button", {
104
+ return /* @__PURE__ */ H("button", {
105
105
  type: "button",
106
106
  role: "switch",
107
107
  "aria-checked": t,
@@ -109,106 +109,106 @@ function Z({ checked: t, onChange: n, label: r, disabled: i }) {
109
109
  disabled: i,
110
110
  onClick: () => n(!t),
111
111
  className: e("relative inline-flex h-5 w-9 shrink-0 items-center rounded-full border transition-colors disabled:cursor-not-allowed disabled:opacity-50", t ? "border-transparent bg-action-primary-bg" : "border-border-subtle bg-bg-sunken"),
112
- children: /* @__PURE__ */ V("span", { className: e("inline-block h-3.5 w-3.5 transform rounded-full shadow-sm transition-transform", t ? "translate-x-4 bg-action-primary-text" : "translate-x-0.5 bg-text-secondary") })
112
+ children: /* @__PURE__ */ H("span", { className: e("inline-block h-3.5 w-3.5 transform rounded-full shadow-sm transition-transform", t ? "translate-x-4 bg-action-primary-text" : "translate-x-0.5 bg-text-secondary") })
113
113
  });
114
114
  }
115
- function ke({ rec: t, busy: n, muted: r, onAccept: i, onSnooze: o, onDismiss: c, onMuteKind: l }) {
116
- let u = De(t.domain), d = Ce(t.state), f = Oe(t.state), [p, ee] = A(!1), m = T(t.evidenceRefs), h = E(t.suggestedAction), g = `rec-evidence-${t.id}`, _ = x(t.createdAt, m), te = a();
117
- return /* @__PURE__ */ H(U, {
115
+ function Ae({ rec: t, busy: n, muted: r, onAccept: i, onSnooze: o, onDismiss: c, onMuteKind: l }) {
116
+ let u = De(t.domain), d = Se(t.state), f = Oe(t.state), [p, ee] = k(!1), m = w(t.evidenceRefs), h = T(t.suggestedAction), g = `rec-evidence-${t.id}`, te = b(t.createdAt, m), ne = a();
117
+ return /* @__PURE__ */ U(W, {
118
118
  treatment: "glass",
119
119
  className: "flex flex-col gap-3 p-4 sm:p-5",
120
120
  children: [
121
- /* @__PURE__ */ H("div", {
121
+ /* @__PURE__ */ U("div", {
122
122
  className: "flex items-start justify-between gap-3",
123
- children: [/* @__PURE__ */ H("div", {
123
+ children: [/* @__PURE__ */ U("div", {
124
124
  className: "flex min-w-0 items-center gap-3",
125
- children: [/* @__PURE__ */ V("span", {
125
+ children: [/* @__PURE__ */ H("span", {
126
126
  className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-action-primary-bg/10 text-primary",
127
- children: /* @__PURE__ */ V(u, { className: "h-5 w-5" })
128
- }), /* @__PURE__ */ H("div", {
127
+ children: /* @__PURE__ */ H(u, { className: "h-5 w-5" })
128
+ }), /* @__PURE__ */ U("div", {
129
129
  className: "min-w-0",
130
- children: [/* @__PURE__ */ H("p", {
130
+ children: [/* @__PURE__ */ U("p", {
131
131
  className: "flex min-w-0 items-center gap-1.5 text-xs font-medium uppercase tracking-wide text-text-secondary",
132
- children: [t.source === "AI" && /* @__PURE__ */ H("span", {
132
+ children: [t.source === "AI" && /* @__PURE__ */ U("span", {
133
133
  className: X,
134
134
  "data-testid": "rec-ai-chip",
135
- children: [/* @__PURE__ */ V(z, { className: "h-3 w-3" }), "AI"]
136
- }), /* @__PURE__ */ V("span", {
135
+ children: [/* @__PURE__ */ H(B, { className: "h-3 w-3" }), "AI"]
136
+ }), /* @__PURE__ */ H("span", {
137
137
  className: "truncate",
138
- children: D(t.kind)
138
+ children: E(t.kind)
139
139
  })]
140
- }), /* @__PURE__ */ V("h3", {
140
+ }), /* @__PURE__ */ H("h3", {
141
141
  className: "mt-0.5 text-base font-semibold text-text-primary",
142
142
  children: t.title
143
143
  })]
144
144
  })]
145
- }), t.confidence != null && /* @__PURE__ */ V(s, {
145
+ }), t.confidence != null && /* @__PURE__ */ H(s, {
146
146
  variant: "info",
147
- label: `${G(t.confidence)} confident`,
147
+ label: `${Te(t.confidence)} confident`,
148
148
  className: "shrink-0"
149
149
  })]
150
150
  }),
151
- /* @__PURE__ */ V("p", {
151
+ /* @__PURE__ */ H("p", {
152
152
  className: "text-sm text-text-secondary",
153
153
  children: t.rationale
154
154
  }),
155
- /* @__PURE__ */ V("p", {
155
+ /* @__PURE__ */ H("p", {
156
156
  className: "text-xs text-text-tertiary",
157
157
  "data-testid": "rec-provenance",
158
- children: ne(t.source, t.aiModel)
158
+ children: re(t.source, t.aiModel)
159
159
  }),
160
- /* @__PURE__ */ H("div", {
160
+ /* @__PURE__ */ U("div", {
161
161
  className: "flex flex-wrap items-center gap-1.5",
162
162
  children: [
163
- t.domain && /* @__PURE__ */ V("span", {
163
+ t.domain && /* @__PURE__ */ H("span", {
164
164
  className: X,
165
- children: y(t.domain)
165
+ children: v(t.domain)
166
166
  }),
167
- t.valueAlignment != null && /* @__PURE__ */ H("span", {
167
+ t.valueAlignment != null && /* @__PURE__ */ U("span", {
168
168
  className: X,
169
169
  children: [
170
- /* @__PURE__ */ V(ve, { className: "h-3 w-3" }),
170
+ /* @__PURE__ */ H(z, { className: "h-3 w-3" }),
171
171
  "Aligns with your values · ",
172
- G(t.valueAlignment)
172
+ Te(t.valueAlignment)
173
173
  ]
174
174
  }),
175
- t.state === W.Snoozed && t.snoozeUntil && /* @__PURE__ */ H("span", {
175
+ t.state === K.Snoozed && t.snoozeUntil && /* @__PURE__ */ U("span", {
176
176
  className: X,
177
177
  children: [
178
- /* @__PURE__ */ V(M, { className: "h-3 w-3" }),
178
+ /* @__PURE__ */ H(M, { className: "h-3 w-3" }),
179
179
  "Snoozed until ",
180
- K(t.snoozeUntil)
180
+ q(t.snoozeUntil)
181
181
  ]
182
182
  }),
183
- d && t.expiresAt && /* @__PURE__ */ H("span", {
183
+ d && t.expiresAt && /* @__PURE__ */ U("span", {
184
184
  className: X,
185
185
  children: [
186
- /* @__PURE__ */ V(le, { className: "h-3 w-3" }),
186
+ /* @__PURE__ */ H(le, { className: "h-3 w-3" }),
187
187
  "Expires ",
188
- K(t.expiresAt)
188
+ q(t.expiresAt)
189
189
  ]
190
190
  })
191
191
  ]
192
192
  }),
193
- h && /* @__PURE__ */ H("div", {
193
+ h && /* @__PURE__ */ U("div", {
194
194
  className: "rounded-lg border border-border-seam bg-bg-sunken/40 p-3",
195
195
  children: [
196
- /* @__PURE__ */ V("p", {
196
+ /* @__PURE__ */ H("p", {
197
197
  className: "text-xs font-medium uppercase tracking-wide text-text-secondary",
198
198
  children: "Suggested action"
199
199
  }),
200
- /* @__PURE__ */ V("p", {
200
+ /* @__PURE__ */ H("p", {
201
201
  className: "mt-1 text-sm font-medium text-text-primary",
202
- children: w(h.type)
202
+ children: C(h.type)
203
203
  }),
204
- h.details.length > 0 && /* @__PURE__ */ V("dl", {
204
+ h.details.length > 0 && /* @__PURE__ */ H("dl", {
205
205
  className: "mt-1.5 flex flex-wrap gap-x-4 gap-y-1",
206
- children: h.details.map((e) => /* @__PURE__ */ H("div", {
206
+ children: h.details.map((e) => /* @__PURE__ */ U("div", {
207
207
  className: "flex items-center gap-1.5",
208
- children: [/* @__PURE__ */ V("dt", {
208
+ children: [/* @__PURE__ */ H("dt", {
209
209
  className: "text-xs text-text-secondary",
210
210
  children: e.key
211
- }), /* @__PURE__ */ V("dd", {
211
+ }), /* @__PURE__ */ H("dd", {
212
212
  className: "text-xs font-medium tabular-nums text-text-primary",
213
213
  children: e.value
214
214
  })]
@@ -216,106 +216,106 @@ function ke({ rec: t, busy: n, muted: r, onAccept: i, onSnooze: o, onDismiss: c,
216
216
  })
217
217
  ]
218
218
  }),
219
- m.length > 0 && /* @__PURE__ */ H("div", {
219
+ m.length > 0 && /* @__PURE__ */ U("div", {
220
220
  className: "rounded-lg border border-border-seam bg-bg-sunken/40",
221
- children: [/* @__PURE__ */ H("button", {
221
+ children: [/* @__PURE__ */ U("button", {
222
222
  type: "button",
223
223
  onClick: () => ee((e) => !e),
224
224
  "aria-expanded": p,
225
225
  "aria-controls": g,
226
226
  className: "flex w-full items-center justify-between gap-2 px-3 py-2 text-start",
227
- children: [/* @__PURE__ */ H("span", {
227
+ children: [/* @__PURE__ */ U("span", {
228
228
  className: "flex min-w-0 items-center gap-2",
229
- children: [/* @__PURE__ */ V(ge, { className: "h-3.5 w-3.5 shrink-0 text-text-secondary" }), /* @__PURE__ */ H("span", {
229
+ children: [/* @__PURE__ */ H(ge, { className: "h-3.5 w-3.5 shrink-0 text-text-secondary" }), /* @__PURE__ */ U("span", {
230
230
  className: "truncate text-xs text-text-secondary",
231
231
  children: [
232
232
  "Evidence: ",
233
- S(m[0]),
233
+ x(m[0]),
234
234
  m.length > 1 ? ` · +${m.length - 1} more` : ""
235
235
  ]
236
236
  })]
237
- }), /* @__PURE__ */ V(de, { className: e("h-4 w-4 shrink-0 text-text-secondary transition-transform", p && "rotate-180") })]
238
- }), p && /* @__PURE__ */ H("dl", {
237
+ }), /* @__PURE__ */ H(de, { className: e("h-4 w-4 shrink-0 text-text-secondary transition-transform", p && "rotate-180") })]
238
+ }), p && /* @__PURE__ */ U("dl", {
239
239
  id: g,
240
240
  className: "space-y-1.5 border-t border-border-seam px-3 py-2.5",
241
241
  children: [
242
- m.map((e, t) => /* @__PURE__ */ H("div", {
242
+ m.map((e, t) => /* @__PURE__ */ U("div", {
243
243
  className: "flex items-baseline justify-between gap-3",
244
- children: [/* @__PURE__ */ V("dt", {
244
+ children: [/* @__PURE__ */ H("dt", {
245
245
  className: "text-xs text-text-secondary",
246
- children: S(e).split(": ")[0]
247
- }), /* @__PURE__ */ V("dd", {
246
+ children: x(e).split(": ")[0]
247
+ }), /* @__PURE__ */ H("dd", {
248
248
  className: "text-xs font-medium tabular-nums text-text-primary",
249
- children: S(e).split(": ").slice(1).join(": ")
249
+ children: x(e).split(": ").slice(1).join(": ")
250
250
  })]
251
251
  }, `${e.metric}-${e.period ?? e.domain ?? t}`)),
252
- _.length > 0 && /* @__PURE__ */ V("div", {
252
+ te.length > 0 && /* @__PURE__ */ H("div", {
253
253
  className: "flex flex-wrap gap-2 pt-1",
254
- children: _.map((e) => /* @__PURE__ */ H("button", {
254
+ children: te.map((e) => /* @__PURE__ */ U("button", {
255
255
  type: "button",
256
- onClick: () => te(`/timeline?date=${encodeURIComponent(e)}`),
256
+ onClick: () => ne(`/timeline?date=${encodeURIComponent(e)}`),
257
257
  "data-testid": "rec-evidence-timeline-link",
258
258
  className: "inline-flex items-center gap-1 text-xs font-medium text-primary hover:underline focus:outline-none focus-visible:ring-2 focus-visible:ring-action-primary-bg/40",
259
259
  children: [
260
- /* @__PURE__ */ V(pe, { className: "h-3 w-3" }),
260
+ /* @__PURE__ */ H(pe, { className: "h-3 w-3" }),
261
261
  "Open the week of ",
262
- K(`${e}T12:00:00`),
262
+ q(`${e}T12:00:00`),
263
263
  " on your timeline"
264
264
  ]
265
265
  }, e))
266
266
  }),
267
- /* @__PURE__ */ V("p", {
267
+ /* @__PURE__ */ H("p", {
268
268
  className: "pt-1 text-xs text-text-tertiary",
269
269
  children: "Measured from your own tracked week. Nothing is applied until you accept."
270
270
  })
271
271
  ]
272
272
  })]
273
273
  }),
274
- d ? /* @__PURE__ */ H("div", {
274
+ d ? /* @__PURE__ */ U("div", {
275
275
  className: "flex flex-wrap items-center gap-2 pt-1",
276
276
  children: [
277
- /* @__PURE__ */ H("button", {
277
+ /* @__PURE__ */ U("button", {
278
278
  type: "button",
279
279
  onClick: () => i(t.id),
280
280
  disabled: n,
281
- className: J,
282
- children: [/* @__PURE__ */ V(j, { className: "h-4 w-4" }), "Accept"]
281
+ className: ke,
282
+ children: [/* @__PURE__ */ H(j, { className: "h-4 w-4" }), "Accept"]
283
283
  }),
284
- /* @__PURE__ */ H("button", {
284
+ /* @__PURE__ */ U("button", {
285
285
  type: "button",
286
286
  onClick: () => o(t.id),
287
287
  disabled: n,
288
288
  className: Y,
289
- children: [/* @__PURE__ */ V(M, { className: "h-4 w-4" }), "Snooze"]
289
+ children: [/* @__PURE__ */ H(M, { className: "h-4 w-4" }), "Snooze"]
290
290
  }),
291
- /* @__PURE__ */ H("button", {
291
+ /* @__PURE__ */ U("button", {
292
292
  type: "button",
293
293
  onClick: () => c(t),
294
294
  disabled: n,
295
295
  className: Y,
296
- children: [/* @__PURE__ */ V(B, { className: "h-4 w-4" }), "Dismiss"]
296
+ children: [/* @__PURE__ */ H(V, { className: "h-4 w-4" }), "Dismiss"]
297
297
  }),
298
- /* @__PURE__ */ H("button", {
298
+ /* @__PURE__ */ U("button", {
299
299
  type: "button",
300
300
  onClick: () => l(t.kind),
301
301
  disabled: n || r,
302
302
  className: Y,
303
- title: r ? `${D(t.kind)} suggestions are already muted` : `Stop generating ${D(t.kind)} suggestions`,
304
- children: [/* @__PURE__ */ V(oe, { className: "h-4 w-4" }), r ? "Muted" : "Mute this kind"]
303
+ title: r ? `${E(t.kind)} suggestions are already muted` : `Stop generating ${E(t.kind)} suggestions`,
304
+ children: [/* @__PURE__ */ H(se, { className: "h-4 w-4" }), r ? "Muted" : "Mute this kind"]
305
305
  })
306
306
  ]
307
- }) : /* @__PURE__ */ H("div", {
307
+ }) : /* @__PURE__ */ U("div", {
308
308
  className: "flex flex-col gap-2 pt-1",
309
- children: [/* @__PURE__ */ H("div", {
309
+ children: [/* @__PURE__ */ U("div", {
310
310
  className: "flex items-center justify-between gap-2",
311
- children: [/* @__PURE__ */ V(s, {
311
+ children: [/* @__PURE__ */ H(s, {
312
312
  variant: f.variant,
313
313
  label: f.label
314
- }), /* @__PURE__ */ V("span", {
314
+ }), /* @__PURE__ */ H("span", {
315
315
  className: "text-xs text-text-secondary",
316
- children: K(t.createdAt)
316
+ children: q(t.createdAt)
317
317
  })]
318
- }), t.state === W.Dismissed && t.dismissReason && /* @__PURE__ */ H("p", {
318
+ }), t.state === K.Dismissed && t.dismissReason && /* @__PURE__ */ U("p", {
319
319
  className: "text-xs text-text-secondary",
320
320
  children: ["Reason given: ", t.dismissReason]
321
321
  })]
@@ -323,102 +323,102 @@ function ke({ rec: t, busy: n, muted: r, onAccept: i, onSnooze: o, onDismiss: c,
323
323
  ]
324
324
  });
325
325
  }
326
- function Ae({ prefs: t, loading: r, saving: i, onToggleOutputGuard: a, onQuietHoursChange: o, onUnmuteKind: s, onDomainsChange: c, onAutonomousChange: l }) {
327
- if (r) return /* @__PURE__ */ V(n, {
326
+ function je({ prefs: t, loading: r, saving: i, onToggleOutputGuard: a, onQuietHoursChange: o, onUnmuteKind: s, onDomainsChange: c, onAutonomousChange: l }) {
327
+ if (r) return /* @__PURE__ */ H(n, {
328
328
  variant: "card",
329
329
  count: 1
330
330
  });
331
331
  if (!t) return null;
332
- let u = C(t.quietHoursStart), d = C(t.quietHoursEnd), f = u !== null && d !== null, p = "rounded-md border border-border-subtle bg-bg-surface px-2 py-1 text-xs text-text-primary focus:outline-none focus:ring-2 focus:ring-action-primary-bg/40 disabled:opacity-50";
333
- return /* @__PURE__ */ H(U, {
332
+ let u = S(t.quietHoursStart), d = S(t.quietHoursEnd), f = u !== null && d !== null, p = "rounded-md border border-border-subtle bg-bg-surface px-2 py-1 text-xs text-text-primary focus:outline-none focus:ring-2 focus:ring-action-primary-bg/40 disabled:opacity-50";
333
+ return /* @__PURE__ */ U(W, {
334
334
  treatment: "glass",
335
335
  className: "p-4 sm:p-5",
336
336
  children: [
337
- /* @__PURE__ */ H("div", {
337
+ /* @__PURE__ */ U("div", {
338
338
  className: "flex items-center gap-2",
339
- children: [/* @__PURE__ */ V(ve, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ V("h3", {
339
+ children: [/* @__PURE__ */ H(z, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ H("h3", {
340
340
  className: "text-sm font-semibold text-text-primary",
341
341
  children: "Guardrails"
342
342
  })]
343
343
  }),
344
- /* @__PURE__ */ V("p", {
344
+ /* @__PURE__ */ H("p", {
345
345
  className: "mt-1 text-xs text-text-secondary",
346
346
  children: "What TimeCampus is allowed to suggest, and when."
347
347
  }),
348
- /* @__PURE__ */ H("div", {
348
+ /* @__PURE__ */ U("div", {
349
349
  className: "mt-4 space-y-4",
350
350
  children: [
351
- /* @__PURE__ */ H("div", {
351
+ /* @__PURE__ */ U("div", {
352
352
  className: "flex items-start justify-between gap-3",
353
- children: [/* @__PURE__ */ H("div", {
353
+ children: [/* @__PURE__ */ U("div", {
354
354
  className: "min-w-0",
355
- children: [/* @__PURE__ */ V("p", {
355
+ children: [/* @__PURE__ */ H("p", {
356
356
  className: "text-sm font-medium text-text-primary",
357
357
  children: "Never suggest more work"
358
- }), /* @__PURE__ */ V("p", {
358
+ }), /* @__PURE__ */ H("p", {
359
359
  className: "mt-0.5 text-xs text-text-secondary",
360
360
  children: "Output-increasing suggestions are filtered out before they reach you."
361
361
  })]
362
- }), /* @__PURE__ */ V(Z, {
362
+ }), /* @__PURE__ */ H(Z, {
363
363
  checked: t.neverOptimiseForOutput,
364
364
  disabled: i,
365
365
  label: "Never suggest more work",
366
366
  onChange: a
367
367
  })]
368
368
  }),
369
- /* @__PURE__ */ H("div", {
369
+ /* @__PURE__ */ U("div", {
370
370
  className: "border-t border-border-seam pt-4",
371
371
  children: [
372
- /* @__PURE__ */ H("div", {
372
+ /* @__PURE__ */ U("div", {
373
373
  className: "flex items-center justify-between gap-3",
374
- children: [/* @__PURE__ */ V("p", {
374
+ children: [/* @__PURE__ */ H("p", {
375
375
  className: "text-sm font-medium text-text-primary",
376
376
  children: "Quiet hours"
377
- }), /* @__PURE__ */ V("span", {
377
+ }), /* @__PURE__ */ H("span", {
378
378
  className: "text-xs text-text-secondary",
379
379
  children: f ? `${u}–${d}` : "Not set"
380
380
  })]
381
381
  }),
382
- /* @__PURE__ */ V("p", {
382
+ /* @__PURE__ */ H("p", {
383
383
  className: "mt-0.5 text-xs text-text-secondary",
384
384
  children: "No nudges are sent inside this window."
385
385
  }),
386
- /* @__PURE__ */ H("div", {
386
+ /* @__PURE__ */ U("div", {
387
387
  className: "mt-2 flex flex-wrap items-center gap-2",
388
388
  children: [
389
- /* @__PURE__ */ H("label", {
389
+ /* @__PURE__ */ U("label", {
390
390
  className: "flex items-center gap-1.5 text-xs text-text-secondary",
391
- children: ["From", /* @__PURE__ */ H("select", {
391
+ children: ["From", /* @__PURE__ */ U(G, {
392
392
  className: p,
393
393
  disabled: i,
394
394
  value: t.quietHoursStart ?? "",
395
395
  onChange: (e) => o(e.target.value === "" ? null : Number(e.target.value), t.quietHoursEnd ?? null),
396
- children: [/* @__PURE__ */ V("option", {
396
+ children: [/* @__PURE__ */ H("option", {
397
397
  value: "",
398
398
  children: "—"
399
- }), q.map((e) => /* @__PURE__ */ V("option", {
399
+ }), J.map((e) => /* @__PURE__ */ H("option", {
400
400
  value: e,
401
- children: C(e)
401
+ children: S(e)
402
402
  }, e))]
403
403
  })]
404
404
  }),
405
- /* @__PURE__ */ H("label", {
405
+ /* @__PURE__ */ U("label", {
406
406
  className: "flex items-center gap-1.5 text-xs text-text-secondary",
407
- children: ["To", /* @__PURE__ */ H("select", {
407
+ children: ["To", /* @__PURE__ */ U(G, {
408
408
  className: p,
409
409
  disabled: i,
410
410
  value: t.quietHoursEnd ?? "",
411
411
  onChange: (e) => o(t.quietHoursStart ?? null, e.target.value === "" ? null : Number(e.target.value)),
412
- children: [/* @__PURE__ */ V("option", {
412
+ children: [/* @__PURE__ */ H("option", {
413
413
  value: "",
414
414
  children: "—"
415
- }), q.map((e) => /* @__PURE__ */ V("option", {
415
+ }), J.map((e) => /* @__PURE__ */ H("option", {
416
416
  value: e,
417
- children: C(e)
417
+ children: S(e)
418
418
  }, e))]
419
419
  })]
420
420
  }),
421
- f && /* @__PURE__ */ V("button", {
421
+ f && /* @__PURE__ */ H("button", {
422
422
  type: "button",
423
423
  disabled: i,
424
424
  onClick: () => o(null, null),
@@ -429,126 +429,126 @@ function Ae({ prefs: t, loading: r, saving: i, onToggleOutputGuard: a, onQuietHo
429
429
  })
430
430
  ]
431
431
  }),
432
- /* @__PURE__ */ H("div", {
432
+ /* @__PURE__ */ U("div", {
433
433
  className: "border-t border-border-seam pt-4",
434
- children: [/* @__PURE__ */ H("div", {
434
+ children: [/* @__PURE__ */ U("div", {
435
435
  className: "flex items-center justify-between gap-3",
436
- children: [/* @__PURE__ */ V("p", {
436
+ children: [/* @__PURE__ */ H("p", {
437
437
  className: "text-sm font-medium text-text-primary",
438
438
  children: "Muted kinds"
439
- }), /* @__PURE__ */ V("span", {
439
+ }), /* @__PURE__ */ H("span", {
440
440
  className: X,
441
441
  children: t.mutedKinds.length
442
442
  })]
443
- }), t.mutedKinds.length === 0 ? /* @__PURE__ */ V("p", {
443
+ }), t.mutedKinds.length === 0 ? /* @__PURE__ */ H("p", {
444
444
  className: "mt-0.5 text-xs text-text-secondary",
445
445
  children: "Nothing muted — mute a kind from any suggestion to stop it coming back."
446
- }) : /* @__PURE__ */ V("div", {
446
+ }) : /* @__PURE__ */ H("div", {
447
447
  className: "mt-2 flex flex-wrap gap-1.5",
448
- children: t.mutedKinds.map((t) => /* @__PURE__ */ H("button", {
448
+ children: t.mutedKinds.map((t) => /* @__PURE__ */ U("button", {
449
449
  type: "button",
450
450
  disabled: i,
451
451
  onClick: () => s(t),
452
452
  className: e(X, "hover:text-text-primary disabled:opacity-50"),
453
- title: `Unmute ${D(t)} suggestions`,
454
- children: [D(t), /* @__PURE__ */ V(B, { className: "h-3 w-3" })]
453
+ title: `Unmute ${E(t)} suggestions`,
454
+ children: [E(t), /* @__PURE__ */ H(V, { className: "h-3 w-3" })]
455
455
  }, t))
456
456
  })]
457
457
  }),
458
- /* @__PURE__ */ H("div", {
458
+ /* @__PURE__ */ U("div", {
459
459
  className: "border-t border-border-seam pt-4",
460
460
  children: [
461
- /* @__PURE__ */ H("div", {
461
+ /* @__PURE__ */ U("div", {
462
462
  className: "flex items-center justify-between gap-3",
463
- children: [/* @__PURE__ */ V("p", {
463
+ children: [/* @__PURE__ */ H("p", {
464
464
  className: "text-sm font-medium text-text-primary",
465
465
  children: "Opted-in domains"
466
- }), /* @__PURE__ */ V("span", {
466
+ }), /* @__PURE__ */ H("span", {
467
467
  className: X,
468
468
  children: t.optedInDomains.length
469
469
  })]
470
470
  }),
471
- /* @__PURE__ */ V("p", {
471
+ /* @__PURE__ */ H("p", {
472
472
  className: "mt-0.5 text-xs text-text-secondary",
473
473
  children: "TimeCampus only suggests giving more time to the domains you opt in to. Pick at least one so suggestions stay relevant."
474
474
  }),
475
- /* @__PURE__ */ V("div", {
475
+ /* @__PURE__ */ H("div", {
476
476
  className: "mt-2 flex flex-wrap gap-1.5",
477
- children: v.map((n) => {
477
+ children: _.map((n) => {
478
478
  let r = t.optedInDomains.includes(n);
479
- return /* @__PURE__ */ H("button", {
479
+ return /* @__PURE__ */ U("button", {
480
480
  type: "button",
481
481
  disabled: i,
482
482
  "aria-pressed": r,
483
- title: `${r ? "Remove" : "Add"} ${y(n)}`,
484
- onClick: () => c(b(t.optedInDomains, n)),
483
+ title: `${r ? "Remove" : "Add"} ${v(n)}`,
484
+ onClick: () => c(y(t.optedInDomains, n)),
485
485
  className: e(X, "border disabled:opacity-50", r ? "border-action-primary-bg/50 bg-action-primary-bg/15 text-text-primary" : "border-transparent hover:text-text-primary"),
486
- children: [y(n), r && /* @__PURE__ */ V(j, { className: "h-3 w-3" })]
486
+ children: [v(n), r && /* @__PURE__ */ H(j, { className: "h-3 w-3" })]
487
487
  }, n);
488
488
  })
489
489
  })
490
490
  ]
491
491
  }),
492
- /* @__PURE__ */ H("div", {
492
+ /* @__PURE__ */ U("div", {
493
493
  className: "border-t border-border-seam pt-4",
494
494
  "data-testid": "autonomous-digests",
495
- children: [/* @__PURE__ */ H("div", {
495
+ children: [/* @__PURE__ */ U("div", {
496
496
  className: "flex items-start justify-between gap-3",
497
- children: [/* @__PURE__ */ H("div", {
497
+ children: [/* @__PURE__ */ U("div", {
498
498
  className: "min-w-0",
499
- children: [/* @__PURE__ */ V("p", {
499
+ children: [/* @__PURE__ */ H("p", {
500
500
  className: "text-sm font-medium text-text-primary",
501
501
  children: "Send me digests without asking"
502
- }), /* @__PURE__ */ V("p", {
502
+ }), /* @__PURE__ */ H("p", {
503
503
  className: "mt-0.5 text-xs text-text-secondary",
504
504
  children: "Off unless you turn it on. TimeCampus then sends a short summary of your own tracked time to your notifications, and you can turn it off here at any time. Quiet hours and muted kinds still apply."
505
505
  })]
506
- }), /* @__PURE__ */ V(Z, {
506
+ }), /* @__PURE__ */ H(Z, {
507
507
  checked: t.autonomousEnabled,
508
508
  disabled: i,
509
509
  label: "Send me digests without asking",
510
510
  onChange: (e) => l({ autonomousEnabled: e })
511
511
  })]
512
- }), t.autonomousEnabled && /* @__PURE__ */ H("div", {
512
+ }), t.autonomousEnabled && /* @__PURE__ */ U("div", {
513
513
  className: "mt-3 flex flex-col gap-2",
514
514
  children: [
515
- /* @__PURE__ */ H("label", {
515
+ /* @__PURE__ */ U("label", {
516
516
  className: "flex flex-wrap items-center gap-1.5 text-xs text-text-secondary",
517
- children: ["What to send", /* @__PURE__ */ V("select", {
517
+ children: ["What to send", /* @__PURE__ */ H(G, {
518
518
  className: p,
519
519
  disabled: i,
520
520
  value: t.cadence,
521
521
  "aria-label": "What to send",
522
522
  onChange: (e) => l({ cadence: e.target.value }),
523
- children: re.map((e) => /* @__PURE__ */ V("option", {
523
+ children: ie.map((e) => /* @__PURE__ */ H("option", {
524
524
  value: e.value,
525
525
  children: e.label
526
526
  }, e.value))
527
527
  })]
528
528
  }),
529
- /* @__PURE__ */ H("label", {
529
+ /* @__PURE__ */ U("label", {
530
530
  className: "flex flex-wrap items-center gap-1.5 text-xs text-text-secondary",
531
- children: ["Not before", /* @__PURE__ */ V("select", {
531
+ children: ["Not before", /* @__PURE__ */ H(G, {
532
532
  className: p,
533
533
  disabled: i,
534
534
  value: t.digestHourUtc,
535
535
  "aria-label": "Not before",
536
536
  onChange: (e) => l({ digestHourUtc: Number(e.target.value) }),
537
- children: q.map((e) => /* @__PURE__ */ V("option", {
537
+ children: J.map((e) => /* @__PURE__ */ H("option", {
538
538
  value: e,
539
- children: ae(e)
539
+ children: oe(e)
540
540
  }, e))
541
541
  })]
542
542
  }),
543
- /* @__PURE__ */ H("label", {
543
+ /* @__PURE__ */ U("label", {
544
544
  className: "flex flex-wrap items-center gap-1.5 text-xs text-text-secondary",
545
- children: ["Weekly digest on", /* @__PURE__ */ V("select", {
545
+ children: ["Weekly digest on", /* @__PURE__ */ H(G, {
546
546
  className: p,
547
547
  disabled: i,
548
548
  value: t.weeklyDigestDay,
549
549
  "aria-label": "Weekly digest on",
550
550
  onChange: (e) => l({ weeklyDigestDay: Number(e.target.value) }),
551
- children: O.map((e) => /* @__PURE__ */ V("option", {
551
+ children: D.map((e) => /* @__PURE__ */ H("option", {
552
552
  value: e.value,
553
553
  children: e.label
554
554
  }, e.value))
@@ -567,38 +567,38 @@ var Q = {
567
567
  neutral: "muted",
568
568
  warning: "warning"
569
569
  };
570
- function je({ deliveries: e, loading: t, enabled: n }) {
571
- return t || !n && e.length === 0 ? null : /* @__PURE__ */ H(U, {
570
+ function Me({ deliveries: e, loading: t, enabled: n }) {
571
+ return t || !n && e.length === 0 ? null : /* @__PURE__ */ U(W, {
572
572
  treatment: "glass",
573
573
  className: "mt-4 p-4 sm:p-5",
574
574
  "data-testid": "recent-digests",
575
- children: [/* @__PURE__ */ V("h3", {
575
+ children: [/* @__PURE__ */ H("h3", {
576
576
  className: "text-sm font-semibold text-text-primary",
577
577
  children: "Recent digests"
578
- }), e.length === 0 ? /* @__PURE__ */ V("p", {
578
+ }), e.length === 0 ? /* @__PURE__ */ H("p", {
579
579
  className: "mt-1 text-xs text-text-secondary",
580
580
  children: "Nothing yet. Your first digest arrives after the time you chose."
581
- }) : /* @__PURE__ */ V("ul", {
581
+ }) : /* @__PURE__ */ H("ul", {
582
582
  className: "mt-3 space-y-3",
583
583
  children: e.map((e) => {
584
- let t = ie(e);
585
- return /* @__PURE__ */ H("li", {
584
+ let t = ae(e);
585
+ return /* @__PURE__ */ U("li", {
586
586
  className: "flex flex-col gap-1",
587
- children: [/* @__PURE__ */ H("div", {
587
+ children: [/* @__PURE__ */ U("div", {
588
588
  className: "flex items-center justify-between gap-2",
589
- children: [/* @__PURE__ */ V("span", {
589
+ children: [/* @__PURE__ */ H("span", {
590
590
  className: "text-xs font-medium text-text-primary",
591
591
  children: t.title
592
- }), /* @__PURE__ */ V(s, {
592
+ }), /* @__PURE__ */ H(s, {
593
593
  variant: Q[t.tone],
594
594
  label: e.trigger === "SCHEDULED" ? "Automatic" : "Manual"
595
595
  })]
596
- }), /* @__PURE__ */ H("span", {
596
+ }), /* @__PURE__ */ U("span", {
597
597
  className: "text-xs text-text-secondary",
598
598
  children: [
599
599
  t.status,
600
600
  " · ",
601
- K(e.createdAt)
601
+ q(e.createdAt)
602
602
  ]
603
603
  })]
604
604
  }, e.id);
@@ -606,17 +606,17 @@ function je({ deliveries: e, loading: t, enabled: n }) {
606
606
  })]
607
607
  });
608
608
  }
609
- function Me(e) {
609
+ function Ne(e) {
610
610
  switch (e) {
611
- case W.Snoozed: return {
611
+ case K.Snoozed: return {
612
612
  title: "Nothing snoozed",
613
613
  description: "Suggestions you snooze for later will wait here quietly until they're worth another look."
614
614
  };
615
- case W.Accepted: return {
615
+ case K.Accepted: return {
616
616
  title: "Nothing accepted yet",
617
617
  description: "When you accept a suggestion it moves here, so you can see the changes you chose to make."
618
618
  };
619
- case W.Dismissed: return {
619
+ case K.Dismissed: return {
620
620
  title: "Nothing dismissed",
621
621
  description: "Suggestions you dismiss are kept here — TimeCampus learns from them and won't keep nagging."
622
622
  };
@@ -627,24 +627,24 @@ function Me(e) {
627
627
  }
628
628
  }
629
629
  function $() {
630
- let { workspaceId: e } = i(), { toasts: a, addToast: s, dismissToast: d } = u(), [v, y] = A(W.New), [b, x] = A(null), [S, C] = A(null), [w, T] = A(""), { data: E, loading: ne, error: re, refetch: O } = h({
630
+ let { workspaceId: e } = i(), { toasts: a, addToast: s, dismissToast: d } = u(), [_, v] = k(K.New), [y, b] = k(null), [x, S] = k(null), [C, w] = k(""), { data: T, loading: re, error: ie, refetch: D } = h({
631
631
  variables: { state: null },
632
632
  skip: !e
633
- }), { data: ie, loading: ae, refetch: oe } = m({ skip: !e }), [se, { loading: ce }] = ee(), [le] = f(), [j] = p(), [de] = _(), [fe, { loading: N }] = te(), { data: pe, loading: me, refetch: he } = g({
633
+ }), { data: ae, loading: oe, refetch: se } = m({ skip: !e }), [ce, { loading: A }] = ee(), [le] = f(), [j] = p(), [de] = te(), [fe, { loading: N }] = ne(), { data: pe, loading: me, refetch: he } = g({
634
634
  variables: { limit: 5 },
635
635
  skip: !e
636
- }), P = ie?.myRecommendationPreferences, F = k(() => new Set(P?.mutedKinds ?? []), [P?.mutedKinds]), I = k(() => E?.myRecommendations ?? [], [E?.myRecommendations]), L = k(() => {
636
+ }), P = ae?.myRecommendationPreferences, F = O(() => new Set(P?.mutedKinds ?? []), [P?.mutedKinds]), I = O(() => T?.myRecommendations ?? [], [T?.myRecommendations]), L = O(() => {
637
637
  let e = {};
638
638
  for (let t of I) e[t.state] = (e[t.state] ?? 0) + 1;
639
639
  return e;
640
- }, [I]), R = k(() => I.filter((e) => e.state === v), [I, v]), ge = L[W.New] ?? 0, _e = L[W.Accepted] ?? 0, ye = L[W.Snoozed] ?? 0, be = async () => {
640
+ }, [I]), R = O(() => I.filter((e) => e.state === _), [I, _]), ge = L[K.New] ?? 0, _e = L[K.Accepted] ?? 0, ve = L[K.Snoozed] ?? 0, ye = async () => {
641
641
  try {
642
- let e = (await se()).data?.generateMyRecommendations ?? [];
642
+ let e = (await ce()).data?.generateMyRecommendations ?? [];
643
643
  s({
644
644
  title: e.length > 0 ? `${e.length} suggestion${e.length === 1 ? "" : "s"} ready` : "No new suggestions",
645
645
  description: e.length > 0 ? "Fresh, values-aware ideas are in your New feed." : "You're all caught up — nothing new to suggest right now.",
646
646
  variant: e.length > 0 ? "success" : "info"
647
- }), y(W.New), await O();
647
+ }), v(K.New), await D();
648
648
  } catch {
649
649
  s({
650
650
  title: "Couldn't generate recommendations",
@@ -652,47 +652,47 @@ function $() {
652
652
  variant: "error"
653
653
  });
654
654
  }
655
- }, Ce = async (e) => {
656
- x(e);
655
+ }, G = async (e) => {
656
+ b(e);
657
657
  try {
658
658
  await le({ variables: { id: e } }), s({
659
659
  title: "Accepted — nice",
660
660
  variant: "success"
661
- }), await O();
661
+ }), await D();
662
662
  } catch {
663
663
  s({
664
664
  title: "Couldn't accept that one",
665
665
  variant: "error"
666
666
  });
667
667
  } finally {
668
- x(null);
668
+ b(null);
669
669
  }
670
- }, Te = async (e) => {
671
- x(e);
670
+ }, Se = async (e) => {
671
+ b(e);
672
672
  try {
673
673
  await de({ variables: {
674
674
  id: e,
675
- until: we()
675
+ until: Ce()
676
676
  } }), s({
677
677
  title: "Snoozed for a week",
678
678
  description: "It'll resurface later — no nagging in between.",
679
679
  variant: "info"
680
- }), await O();
680
+ }), await D();
681
681
  } catch {
682
682
  s({
683
683
  title: "Couldn't snooze that one",
684
684
  variant: "error"
685
685
  });
686
686
  } finally {
687
- x(null);
687
+ b(null);
688
688
  }
689
- }, G = (e) => {
690
- T(""), C(e);
691
- }, K = async () => {
692
- let e = S;
689
+ }, we = (e) => {
690
+ w(""), S(e);
691
+ }, Te = async () => {
692
+ let e = x;
693
693
  if (!e) return;
694
- let t = w.trim();
695
- x(e.id);
694
+ let t = C.trim();
695
+ b(e.id);
696
696
  try {
697
697
  await j({ variables: {
698
698
  id: e.id,
@@ -700,21 +700,21 @@ function $() {
700
700
  } }), s({
701
701
  title: "Dismissed",
702
702
  variant: "success"
703
- }), C(null), T(""), await O();
703
+ }), S(null), w(""), await D();
704
704
  } catch {
705
705
  s({
706
706
  title: "Couldn't dismiss that one",
707
707
  variant: "error"
708
708
  });
709
709
  } finally {
710
- x(null);
710
+ b(null);
711
711
  }
712
712
  }, q = async (e, t) => {
713
713
  try {
714
714
  await fe({ variables: { input: e } }), s({
715
715
  title: t,
716
716
  variant: "success"
717
- }), await oe();
717
+ }), await se();
718
718
  } catch {
719
719
  s({
720
720
  title: "Couldn't save that guardrail",
@@ -722,18 +722,18 @@ function $() {
722
722
  variant: "error"
723
723
  });
724
724
  }
725
- }, Ee = (e) => void q({ neverOptimiseForOutput: e }, e ? "Output-increasing suggestions are off" : "Output-increasing suggestions allowed"), De = (e, t) => void q({
725
+ }, J = (e) => void q({ neverOptimiseForOutput: e }, e ? "Output-increasing suggestions are off" : "Output-increasing suggestions allowed"), Ee = (e, t) => void q({
726
726
  quietHoursStart: e,
727
727
  quietHoursEnd: t
728
- }, e === null && t === null ? "Quiet hours cleared" : "Quiet hours saved"), Oe = (e) => {
729
- F.has(e) || q({ mutedKinds: [...F, e] }, `${D(e)} suggestions muted`);
730
- }, X = /* @__PURE__ */ V(Ae, {
728
+ }, e === null && t === null ? "Quiet hours cleared" : "Quiet hours saved"), De = (e) => {
729
+ F.has(e) || q({ mutedKinds: [...F, e] }, `${E(e)} suggestions muted`);
730
+ }, Oe = /* @__PURE__ */ H(je, {
731
731
  prefs: P,
732
- loading: ae,
732
+ loading: oe,
733
733
  saving: N,
734
- onToggleOutputGuard: Ee,
735
- onQuietHoursChange: De,
736
- onUnmuteKind: (e) => void q({ mutedKinds: [...F].filter((t) => t !== e) }, `${D(e)} suggestions unmuted`),
734
+ onToggleOutputGuard: J,
735
+ onQuietHoursChange: Ee,
736
+ onUnmuteKind: (e) => void q({ mutedKinds: [...F].filter((t) => t !== e) }, `${E(e)} suggestions unmuted`),
737
737
  onDomainsChange: (e) => void q({ optedInDomains: e }, "Opted-in domains saved"),
738
738
  onAutonomousChange: (e) => {
739
739
  (async () => {
@@ -741,107 +741,107 @@ function $() {
741
741
  e.autonomousEnabled === !0 && (t = "Digests turned on"), e.autonomousEnabled === !1 && (t = "Digests turned off"), await q(e, t), await he();
742
742
  })();
743
743
  }
744
- }), Z = /* @__PURE__ */ V(je, {
744
+ }), X = /* @__PURE__ */ H(Me, {
745
745
  deliveries: pe?.myTimeIntelligenceDeliveries ?? [],
746
746
  loading: me,
747
747
  enabled: P?.autonomousEnabled ?? !1
748
- }), Q = /* @__PURE__ */ H("button", {
748
+ }), Z = /* @__PURE__ */ U("button", {
749
749
  type: "button",
750
- onClick: be,
751
- disabled: ce || !e,
752
- className: J,
753
- children: [/* @__PURE__ */ V(z, { className: "h-4 w-4" }), ce ? "Generating…" : "Generate recommendations"]
754
- }), $ = "Gentle, values-aware nudges built from your real timeline — protect a focus block, reclaim a commute, guard family time. Accept the ones that fit, snooze the rest, and dismiss what doesn't. TimeCampus never optimises for more output — only for time that matches what you value.", Ne = /* @__PURE__ */ V(U, {
750
+ onClick: ye,
751
+ disabled: A || !e,
752
+ className: ke,
753
+ children: [/* @__PURE__ */ H(B, { className: "h-4 w-4" }), A ? "Generating…" : "Generate recommendations"]
754
+ }), Q = "Gentle, values-aware nudges built from your real timeline — protect a focus block, reclaim a commute, guard family time. Accept the ones that fit, snooze the rest, and dismiss what doesn't. TimeCampus never optimises for more output — only for time that matches what you value.", $ = /* @__PURE__ */ H(W, {
755
755
  treatment: "insight",
756
756
  className: "mt-6 p-4 sm:p-5",
757
- children: /* @__PURE__ */ H("div", {
757
+ children: /* @__PURE__ */ U("div", {
758
758
  className: "flex items-start gap-3",
759
- children: [/* @__PURE__ */ V("span", {
759
+ children: [/* @__PURE__ */ H("span", {
760
760
  className: "flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-status-info-bg text-status-info-text",
761
- children: /* @__PURE__ */ V(ve, { className: "h-5 w-5" })
762
- }), /* @__PURE__ */ H("div", {
761
+ children: /* @__PURE__ */ H(z, { className: "h-5 w-5" })
762
+ }), /* @__PURE__ */ U("div", {
763
763
  className: "min-w-0",
764
- children: [/* @__PURE__ */ V("h3", {
764
+ children: [/* @__PURE__ */ H("h3", {
765
765
  className: "text-sm font-semibold text-text-primary",
766
766
  children: "Never optimises for more output."
767
- }), /* @__PURE__ */ V("p", {
767
+ }), /* @__PURE__ */ H("p", {
768
768
  className: "mt-1 text-sm text-text-secondary",
769
769
  children: "Every suggestion protects something you value — rest, focus, relationships — not your throughput. Snooze or dismiss freely; TimeCampus takes the hint and won't keep nagging."
770
770
  })]
771
771
  })]
772
772
  })
773
773
  });
774
- if (!e || ne) return /* @__PURE__ */ V(o, {
774
+ if (!e || re) return /* @__PURE__ */ H(o, {
775
775
  title: "Recommendations",
776
776
  description: "Values-aware suggestions from your real timeline",
777
- purpose: $,
778
- actions: Q,
779
- children: /* @__PURE__ */ V(n, {
777
+ purpose: Q,
778
+ actions: Z,
779
+ children: /* @__PURE__ */ H(n, {
780
780
  variant: "list",
781
781
  count: 4
782
782
  })
783
783
  });
784
- if (re) return /* @__PURE__ */ V(o, {
784
+ if (ie) return /* @__PURE__ */ H(o, {
785
785
  title: "Recommendations",
786
786
  description: "Values-aware suggestions from your real timeline",
787
- purpose: $,
788
- actions: Q,
789
- children: /* @__PURE__ */ V("div", {
787
+ purpose: Q,
788
+ actions: Z,
789
+ children: /* @__PURE__ */ H("div", {
790
790
  className: "rounded-xl border border-status-error-border/50 bg-status-error-bg/10 p-4 text-sm text-status-error-text",
791
791
  children: "Couldn't load your recommendations right now. Please try again in a moment."
792
792
  })
793
793
  });
794
- let Pe = I.length > 0, Fe = Me(v);
795
- return /* @__PURE__ */ H(o, {
794
+ let Pe = I.length > 0, Fe = Ne(_);
795
+ return /* @__PURE__ */ U(o, {
796
796
  title: "Recommendations",
797
797
  description: "Values-aware suggestions from your real timeline",
798
- purpose: $,
799
- actions: Q,
798
+ purpose: Q,
799
+ actions: Z,
800
800
  children: [
801
- Pe ? /* @__PURE__ */ H("div", {
801
+ Pe ? /* @__PURE__ */ U("div", {
802
802
  className: "grid grid-cols-1 gap-6 lg:grid-cols-[minmax(0,1fr)_20rem]",
803
- children: [/* @__PURE__ */ H("div", {
803
+ children: [/* @__PURE__ */ U("div", {
804
804
  className: "min-w-0 space-y-6",
805
805
  children: [
806
- /* @__PURE__ */ H("div", {
806
+ /* @__PURE__ */ U("div", {
807
807
  className: "grid grid-cols-1 gap-4 sm:grid-cols-3",
808
808
  children: [
809
- /* @__PURE__ */ V(t, {
809
+ /* @__PURE__ */ H(t, {
810
810
  featured: !0,
811
811
  title: "New for you",
812
812
  value: String(ge),
813
- icon: /* @__PURE__ */ V(z, { className: "h-5 w-5" }),
813
+ icon: /* @__PURE__ */ H(B, { className: "h-5 w-5" }),
814
814
  description: "Awaiting your call"
815
815
  }),
816
- /* @__PURE__ */ V(t, {
816
+ /* @__PURE__ */ H(t, {
817
817
  title: "Accepted",
818
818
  value: String(_e),
819
- icon: /* @__PURE__ */ V(ue, { className: "h-5 w-5" }),
819
+ icon: /* @__PURE__ */ H(ue, { className: "h-5 w-5" }),
820
820
  description: "Changes you chose to make"
821
821
  }),
822
- /* @__PURE__ */ V(t, {
822
+ /* @__PURE__ */ H(t, {
823
823
  title: "Snoozed",
824
- value: String(ye),
825
- icon: /* @__PURE__ */ V(M, { className: "h-5 w-5" }),
824
+ value: String(ve),
825
+ icon: /* @__PURE__ */ H(M, { className: "h-5 w-5" }),
826
826
  description: "Waiting for a better moment"
827
827
  })
828
828
  ]
829
829
  }),
830
- /* @__PURE__ */ V("div", {
830
+ /* @__PURE__ */ H("div", {
831
831
  className: "overflow-x-auto",
832
- children: /* @__PURE__ */ V("div", {
832
+ children: /* @__PURE__ */ H("div", {
833
833
  className: "inline-flex items-center rounded-lg border border-border-subtle bg-bg-sunken/50 p-0.5",
834
834
  role: "tablist",
835
835
  "aria-label": "Filter recommendations by state",
836
- children: Se.map((e) => {
837
- let t = e.key === v, n = L[e.key] ?? 0;
838
- return /* @__PURE__ */ H("button", {
836
+ children: xe.map((e) => {
837
+ let t = e.key === _, n = L[e.key] ?? 0;
838
+ return /* @__PURE__ */ U("button", {
839
839
  type: "button",
840
840
  role: "tab",
841
841
  "aria-selected": t,
842
- onClick: () => y(e.key),
842
+ onClick: () => v(e.key),
843
843
  className: t ? "flex items-center gap-1.5 rounded-md bg-bg-surface px-3 py-1.5 text-sm font-medium text-text-primary shadow-sm" : "flex items-center gap-1.5 rounded-md px-3 py-1.5 text-sm font-medium text-text-secondary transition-colors hover:text-text-primary",
844
- children: [e.label, /* @__PURE__ */ V("span", {
844
+ children: [e.label, /* @__PURE__ */ H("span", {
845
845
  className: t ? "rounded-full bg-action-primary-bg/15 px-1.5 text-xs font-semibold text-primary" : "rounded-full bg-bg-sunken px-1.5 text-xs font-semibold text-text-secondary",
846
846
  children: n
847
847
  })]
@@ -849,81 +849,81 @@ function $() {
849
849
  })
850
850
  })
851
851
  }),
852
- R.length === 0 ? /* @__PURE__ */ V(r, {
852
+ R.length === 0 ? /* @__PURE__ */ H(r, {
853
853
  illustration: "empty-data",
854
854
  title: Fe.title,
855
855
  description: Fe.description,
856
- action: v === W.New ? Q : void 0
857
- }) : /* @__PURE__ */ V("div", {
856
+ action: _ === K.New ? Z : void 0
857
+ }) : /* @__PURE__ */ H("div", {
858
858
  className: "space-y-4",
859
- children: R.map((e) => /* @__PURE__ */ V(ke, {
859
+ children: R.map((e) => /* @__PURE__ */ H(Ae, {
860
860
  rec: e,
861
- busy: b === e.id || N,
861
+ busy: y === e.id || N,
862
862
  muted: F.has(e.kind),
863
- onAccept: Ce,
864
- onSnooze: Te,
865
- onDismiss: G,
866
- onMuteKind: Oe
863
+ onAccept: G,
864
+ onSnooze: Se,
865
+ onDismiss: we,
866
+ onMuteKind: De
867
867
  }, e.id))
868
868
  }),
869
- Ne
869
+ $
870
870
  ]
871
- }), /* @__PURE__ */ H("div", { children: [X, Z] })]
872
- }) : /* @__PURE__ */ H("div", {
871
+ }), /* @__PURE__ */ U("div", { children: [Oe, X] })]
872
+ }) : /* @__PURE__ */ U("div", {
873
873
  className: "grid grid-cols-1 gap-6 lg:grid-cols-[minmax(0,1fr)_20rem]",
874
- children: [/* @__PURE__ */ H("div", { children: [/* @__PURE__ */ V(r, {
874
+ children: [/* @__PURE__ */ U("div", { children: [/* @__PURE__ */ H(r, {
875
875
  illustration: "empty-data",
876
876
  title: "No recommendations yet",
877
877
  description: "TimeCampus turns your real timeline into gentle, values-aware suggestions — like protecting a focus block or reclaiming a commute. Generate your first set to see what it notices.",
878
- action: Q
879
- }), Ne] }), /* @__PURE__ */ H("div", { children: [X, Z] })]
878
+ action: Z
879
+ }), $] }), /* @__PURE__ */ U("div", { children: [Oe, X] })]
880
880
  }),
881
- /* @__PURE__ */ H(c, {
882
- open: S !== null,
883
- onClose: () => C(null),
881
+ /* @__PURE__ */ U(c, {
882
+ open: x !== null,
883
+ onClose: () => S(null),
884
884
  title: "Dismiss this suggestion",
885
- description: S?.title,
885
+ description: x?.title,
886
886
  size: "sm",
887
- footer: /* @__PURE__ */ H(xe, { children: [/* @__PURE__ */ V("button", {
887
+ footer: /* @__PURE__ */ U(be, { children: [/* @__PURE__ */ H("button", {
888
888
  type: "button",
889
- onClick: () => C(null),
889
+ onClick: () => S(null),
890
890
  className: Y,
891
891
  children: "Cancel"
892
- }), /* @__PURE__ */ H("button", {
892
+ }), /* @__PURE__ */ U("button", {
893
893
  type: "button",
894
- onClick: () => void K(),
895
- disabled: b !== null,
896
- className: J,
897
- children: [/* @__PURE__ */ V(B, { className: "h-4 w-4" }), "Dismiss"]
894
+ onClick: () => void Te(),
895
+ disabled: y !== null,
896
+ className: ke,
897
+ children: [/* @__PURE__ */ H(V, { className: "h-4 w-4" }), "Dismiss"]
898
898
  })] }),
899
899
  children: [
900
- /* @__PURE__ */ H("label", {
900
+ /* @__PURE__ */ U("label", {
901
901
  htmlFor: "rec-dismiss-reason",
902
902
  className: "block text-sm font-medium text-text-primary",
903
903
  children: [
904
904
  "Why isn't this one for you?",
905
905
  " ",
906
- /* @__PURE__ */ V("span", {
906
+ /* @__PURE__ */ H("span", {
907
907
  className: "font-normal text-text-secondary",
908
908
  children: "(optional)"
909
909
  })
910
910
  ]
911
911
  }),
912
- /* @__PURE__ */ V("textarea", {
912
+ /* @__PURE__ */ H("textarea", {
913
913
  id: "rec-dismiss-reason",
914
914
  rows: 3,
915
- value: w,
916
- onChange: (e) => T(e.target.value),
915
+ value: C,
916
+ onChange: (e) => w(e.target.value),
917
917
  placeholder: "e.g. already handled, not the right week",
918
918
  className: "mt-1.5 w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary"
919
919
  }),
920
- /* @__PURE__ */ V("p", {
920
+ /* @__PURE__ */ H("p", {
921
921
  className: "mt-2 text-xs text-text-secondary",
922
922
  children: "Saved with the suggestion so you can see why you passed on it later. To stop this kind of suggestion entirely, use Mute this kind."
923
923
  })
924
924
  ]
925
925
  }),
926
- /* @__PURE__ */ V(l, {
926
+ /* @__PURE__ */ H(l, {
927
927
  toasts: a,
928
928
  onDismiss: d
929
929
  })