@burdenoff/microfe-timecampus 2026.1203.2 → 2026.1205.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
@@ -1,114 +1,114 @@
1
1
  import { PageLayout as e } from "../../components/PageLayout.js";
2
2
  import { StatCard as t } from "../../components/StatCard.js";
3
3
  import "../../components/index.js";
4
- import { LoadingSkeleton as n } from "../../components/LoadingSkeleton.js";
5
- import { Modal as r } from "../../components/Modal.js";
6
- import { useTimeCampusNavigate as ee } from "../../providers/TimeCampusProvider.js";
7
- import { StatusBadge as i } from "../../components/StatusBadge.js";
8
- import { formatCurrency as a, formatDate as o, formatHours as s } from "../../utils/helpers.js";
9
- import { ChartCard as c } from "../../components/ChartCard.js";
10
- import { BarsChart as l } from "../../components/charts/BarsChart.js";
11
- import { ProgressMeter as u } from "../../components/charts/ProgressMeter.js";
12
- import { useArchiveProjectMutation as te, useDeleteProjectMutation as ne, useGetProjectQuery as re, useGetProjectStatsQuery as d, useUpdateProjectMutation as f } from "../../../generated/wspace-operations.js";
4
+ import { LoadingSkeleton as ee } from "../../components/LoadingSkeleton.js";
5
+ import { Modal as n } from "../../components/Modal.js";
6
+ import { useTimeCampusNavigate as te } from "../../providers/TimeCampusProvider.js";
7
+ import { StatusBadge as r } from "../../components/StatusBadge.js";
8
+ import { formatCurrency as i, formatDate as a, formatHours as o } from "../../utils/helpers.js";
9
+ import { ChartCard as s } from "../../components/ChartCard.js";
10
+ import { BarsChart as c } from "../../components/charts/BarsChart.js";
11
+ import { ProgressMeter as l } from "../../components/charts/ProgressMeter.js";
12
+ import { useArchiveProjectMutation as u, useDeleteProjectMutation as d, useGetProjectQuery as f, useGetProjectStatsQuery as ne, useUpdateProjectMutation as re } from "../../../generated/wspace-operations.js";
13
13
  import { useState as p } from "react";
14
- import { Archive as m, ArrowRight as h, Clock as g, FolderOpen as _, Pencil as ie, Trash2 as ae, TrendingUp as oe, Users as v } from "lucide-react";
15
- import { useParams as se } from "react-router";
16
- import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
17
- import { NextSteps as S } from "@burdenoff/fe-libs/ui";
14
+ import { Archive as ie, ArrowRight as m, Clock as ae, FolderOpen as oe, Pencil as h, Trash2 as g, TrendingUp as se, Users as _ } from "lucide-react";
15
+ import { useParams as ce } from "react-router";
16
+ import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
17
+ import { NextSteps as x, ThemedSelect as S } from "@burdenoff/fe-libs/ui";
18
18
  // src/timecampus/pages/projects/ProjectDetailPage.tsx
19
- var ce = [
19
+ var le = [
20
20
  "active",
21
21
  "on-hold",
22
22
  "completed",
23
23
  "archived"
24
24
  ], C = "mt-1 w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary", w = "block text-sm font-medium text-text-primary";
25
25
  function T() {
26
- let { projectId: T } = se(), E = ee(), { data: le, loading: ue, error: D, refetch: O } = re({
26
+ let { projectId: T } = ce(), E = te(), { data: ue, loading: D, error: O, refetch: k } = f({
27
27
  variables: { id: T },
28
28
  skip: !T
29
- }), { data: k, loading: A } = d({
29
+ }), { data: A, loading: j } = ne({
30
30
  variables: { id: T },
31
31
  skip: !T
32
- }), j = le?.project, M = k?.projectStats, [N, P] = p(!1), [F, I] = p(!1), [L, R] = p({
32
+ }), M = ue?.project, N = A?.projectStats, [P, F] = p(!1), [I, L] = p(!1), [R, z] = p({
33
33
  name: "",
34
34
  clientId: "",
35
35
  description: "",
36
36
  status: "active",
37
37
  estimatedHours: "",
38
38
  hourlyRate: ""
39
- }), [z, { loading: B, error: V }] = f(), [H, { loading: U }] = te(), [de, { loading: W, error: fe }] = ne(), pe = () => {
40
- j && (R({
41
- name: j.name,
42
- clientId: j.clientId ?? "",
43
- description: j.description ?? "",
44
- status: j.status,
45
- estimatedHours: j.estimatedHours == null ? "" : String(j.estimatedHours),
46
- hourlyRate: j.hourlyRate == null ? "" : String(j.hourlyRate)
47
- }), P(!0));
48
- }, me = async () => {
49
- T && L.name.trim() && (await z({ variables: {
39
+ }), [B, { loading: V, error: H }] = re(), [de, { loading: U }] = u(), [fe, { loading: W, error: pe }] = d(), me = () => {
40
+ M && (z({
41
+ name: M.name,
42
+ clientId: M.clientId ?? "",
43
+ description: M.description ?? "",
44
+ status: M.status,
45
+ estimatedHours: M.estimatedHours == null ? "" : String(M.estimatedHours),
46
+ hourlyRate: M.hourlyRate == null ? "" : String(M.hourlyRate)
47
+ }), F(!0));
48
+ }, he = async () => {
49
+ T && R.name.trim() && (await B({ variables: {
50
50
  id: T,
51
51
  input: {
52
- name: L.name.trim(),
53
- description: L.description.trim() || void 0,
54
- clientId: L.clientId.trim() || void 0,
55
- status: L.status,
56
- estimatedHours: L.estimatedHours ? Number(L.estimatedHours) : void 0,
57
- hourlyRate: L.hourlyRate ? Number(L.hourlyRate) : void 0
52
+ name: R.name.trim(),
53
+ description: R.description.trim() || void 0,
54
+ clientId: R.clientId.trim() || void 0,
55
+ status: R.status,
56
+ estimatedHours: R.estimatedHours ? Number(R.estimatedHours) : void 0,
57
+ hourlyRate: R.hourlyRate ? Number(R.hourlyRate) : void 0
58
58
  }
59
- } }), P(!1), await O());
60
- }, he = async () => {
61
- T && (await H({ variables: { id: T } }), await O());
59
+ } }), F(!1), await k());
62
60
  }, ge = async () => {
63
- T && (await de({ variables: { id: T } }), I(!1), E("/projects"));
61
+ T && (await de({ variables: { id: T } }), await k());
62
+ }, _e = async () => {
63
+ T && (await fe({ variables: { id: T } }), L(!1), E("/projects"));
64
64
  };
65
- if (D) return /* @__PURE__ */ b(e, {
65
+ if (O) return /* @__PURE__ */ y(e, {
66
66
  title: "Project Details",
67
67
  description: `Project ID: ${T}`,
68
- children: /* @__PURE__ */ b("div", {
68
+ children: /* @__PURE__ */ y("div", {
69
69
  className: "rounded-xl border border-status-error-bg/40 bg-status-error-bg p-6 text-sm text-status-error-text",
70
70
  children: "Failed to load project details. Please try again later."
71
71
  })
72
72
  });
73
- if (ue || A) return /* @__PURE__ */ b(e, {
73
+ if (D || j) return /* @__PURE__ */ y(e, {
74
74
  title: "Project Details",
75
75
  description: `Project ID: ${T}`,
76
- children: /* @__PURE__ */ b(n, { variant: "detail" })
76
+ children: /* @__PURE__ */ y(ee, { variant: "detail" })
77
77
  });
78
- let G = j?.currency ?? "USD", K = j?.tasks ?? [], q = M?.budgetUsed ?? 0, J = j?.budget ?? (M?.budgetUsed ?? 0) + (M?.budgetRemaining ?? 0), Y = j?.estimatedHours ?? 0, X = M?.totalHours ?? j?.trackedHours ?? 0, Z = M?.completedTasks ?? 0, Q = M?.totalTasks ?? K.length, _e = (e) => `${Math.round(e)}h`, ve = K.filter((e) => e.trackedHours > 0 || (e.estimatedHours ?? 0) > 0).sort((e, t) => t.trackedHours - e.trackedHours).slice(0, 8).map((e) => ({
78
+ let G = M?.currency ?? "USD", K = M?.tasks ?? [], q = N?.budgetUsed ?? 0, J = M?.budget ?? (N?.budgetUsed ?? 0) + (N?.budgetRemaining ?? 0), Y = M?.estimatedHours ?? 0, X = N?.totalHours ?? M?.trackedHours ?? 0, Z = N?.completedTasks ?? 0, Q = N?.totalTasks ?? K.length, ve = (e) => `${Math.round(e)}h`, ye = K.filter((e) => e.trackedHours > 0 || (e.estimatedHours ?? 0) > 0).sort((e, t) => t.trackedHours - e.trackedHours).slice(0, 8).map((e) => ({
79
79
  task: e.title,
80
80
  tracked: e.trackedHours,
81
81
  estimated: e.estimatedHours ?? 0
82
82
  })), $ = [...K].sort((e, t) => e.order - t.order).slice(0, 8);
83
- return /* @__PURE__ */ x(e, {
84
- title: j?.name ?? "Project Details",
85
- description: j?.description ?? `Project ID: ${T}`,
83
+ return /* @__PURE__ */ b(e, {
84
+ title: M?.name ?? "Project Details",
85
+ description: M?.description ?? `Project ID: ${T}`,
86
86
  purpose: "See everything happening on this project in one place — logged hours, task progress and budget burn — so you know whether it's on track and where the time is going before it overruns.",
87
- actions: /* @__PURE__ */ x("div", {
87
+ actions: /* @__PURE__ */ b("div", {
88
88
  className: "flex items-center gap-2",
89
89
  children: [
90
- /* @__PURE__ */ x("button", {
91
- onClick: pe,
92
- disabled: !j,
90
+ /* @__PURE__ */ b("button", {
91
+ onClick: me,
92
+ disabled: !M,
93
93
  className: "inline-flex items-center gap-1.5 rounded-md border border-border-subtle px-3 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken/50 disabled:opacity-50",
94
- children: [/* @__PURE__ */ b(ie, { className: "h-4 w-4" }), "Edit"]
94
+ children: [/* @__PURE__ */ y(h, { className: "h-4 w-4" }), "Edit"]
95
95
  }),
96
- j?.status !== "archived" && /* @__PURE__ */ x("button", {
97
- onClick: () => void he(),
98
- disabled: !j || U,
96
+ M?.status !== "archived" && /* @__PURE__ */ b("button", {
97
+ onClick: () => void ge(),
98
+ disabled: !M || U,
99
99
  className: "inline-flex items-center gap-1.5 rounded-md border border-border-subtle px-3 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken/50 disabled:opacity-50",
100
- children: [/* @__PURE__ */ b(m, { className: "h-4 w-4" }), U ? "Archiving…" : "Archive"]
100
+ children: [/* @__PURE__ */ y(ie, { className: "h-4 w-4" }), U ? "Archiving…" : "Archive"]
101
101
  }),
102
- /* @__PURE__ */ x("button", {
103
- onClick: () => I(!0),
104
- disabled: !j,
102
+ /* @__PURE__ */ b("button", {
103
+ onClick: () => L(!0),
104
+ disabled: !M,
105
105
  className: "inline-flex items-center gap-1.5 rounded-md border border-status-error-bg/40 px-3 py-2 text-sm font-medium text-status-error-text hover:bg-status-error-bg disabled:opacity-50",
106
- children: [/* @__PURE__ */ b(ae, { className: "h-4 w-4" }), "Delete"]
106
+ children: [/* @__PURE__ */ y(g, { className: "h-4 w-4" }), "Delete"]
107
107
  })
108
108
  ]
109
109
  }),
110
110
  children: [
111
- /* @__PURE__ */ b(S, {
111
+ /* @__PURE__ */ y(x, {
112
112
  storageKey: "timecampus-project-detail",
113
113
  className: "mb-6",
114
114
  steps: [
@@ -132,76 +132,76 @@ function T() {
132
132
  }
133
133
  ]
134
134
  }),
135
- /* @__PURE__ */ x("div", {
135
+ /* @__PURE__ */ b("div", {
136
136
  className: "space-y-6",
137
137
  children: [
138
- /* @__PURE__ */ x("div", {
138
+ /* @__PURE__ */ b("div", {
139
139
  className: "flex flex-wrap items-center gap-2",
140
140
  children: [
141
- j?.status && /* @__PURE__ */ b(i, {
142
- label: j.status,
143
- status: j.status,
141
+ M?.status && /* @__PURE__ */ y(r, {
142
+ label: M.status,
143
+ status: M.status,
144
144
  dot: !0
145
145
  }),
146
- j?.clientId && /* @__PURE__ */ x("span", {
146
+ M?.clientId && /* @__PURE__ */ b("span", {
147
147
  className: "inline-flex items-center gap-1.5 rounded-full bg-bg-sunken px-2.5 py-0.5 text-xs font-medium text-text-secondary",
148
- children: [/* @__PURE__ */ b(v, { className: "h-3.5 w-3.5" }), j.clientId]
148
+ children: [/* @__PURE__ */ y(_, { className: "h-3.5 w-3.5" }), M.clientId]
149
149
  }),
150
- j?.createdAt && /* @__PURE__ */ x("span", {
150
+ M?.createdAt && /* @__PURE__ */ b("span", {
151
151
  className: "inline-flex items-center gap-1.5 rounded-full bg-bg-sunken px-2.5 py-0.5 text-xs font-medium text-text-secondary",
152
- children: ["Started ", o(j.createdAt)]
152
+ children: ["Started ", a(M.createdAt)]
153
153
  })
154
154
  ]
155
155
  }),
156
- /* @__PURE__ */ x("div", {
156
+ /* @__PURE__ */ b("div", {
157
157
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
158
158
  children: [
159
- /* @__PURE__ */ b(t, {
159
+ /* @__PURE__ */ y(t, {
160
160
  featured: !0,
161
161
  title: "Tracked Hours",
162
- value: s(X),
163
- icon: /* @__PURE__ */ b(g, { className: "h-5 w-5" })
162
+ value: o(X),
163
+ icon: /* @__PURE__ */ y(ae, { className: "h-5 w-5" })
164
164
  }),
165
- /* @__PURE__ */ b(t, {
165
+ /* @__PURE__ */ y(t, {
166
166
  title: "Tasks",
167
167
  value: `${Z} / ${Q}`,
168
- icon: /* @__PURE__ */ b(v, { className: "h-5 w-5" }),
168
+ icon: /* @__PURE__ */ y(_, { className: "h-5 w-5" }),
169
169
  description: "completed / total"
170
170
  }),
171
- /* @__PURE__ */ b(t, {
171
+ /* @__PURE__ */ y(t, {
172
172
  title: "Progress",
173
173
  value: Q ? `${Math.round(Z / Q * 100)}%` : "0%",
174
- icon: /* @__PURE__ */ b(oe, { className: "h-5 w-5" })
174
+ icon: /* @__PURE__ */ y(se, { className: "h-5 w-5" })
175
175
  }),
176
- /* @__PURE__ */ b(t, {
176
+ /* @__PURE__ */ y(t, {
177
177
  title: "Budget Used",
178
- value: a(q, G),
179
- icon: /* @__PURE__ */ b(_, { className: "h-5 w-5" }),
180
- description: M?.budgetRemaining == null ? void 0 : `${a(M.budgetRemaining, G)} remaining`
178
+ value: i(q, G),
179
+ icon: /* @__PURE__ */ y(oe, { className: "h-5 w-5" }),
180
+ description: N?.budgetRemaining == null ? void 0 : `${i(N.budgetRemaining, G)} remaining`
181
181
  })
182
182
  ]
183
183
  }),
184
- /* @__PURE__ */ x("div", {
184
+ /* @__PURE__ */ b("div", {
185
185
  className: "grid grid-cols-1 gap-6 lg:grid-cols-2",
186
- children: [/* @__PURE__ */ b(c, {
186
+ children: [/* @__PURE__ */ y(s, {
187
187
  title: "Budget & effort",
188
188
  description: "Spend and hours against the plan",
189
- children: /* @__PURE__ */ x("div", {
189
+ children: /* @__PURE__ */ b("div", {
190
190
  className: "space-y-5",
191
191
  children: [
192
- /* @__PURE__ */ b(u, {
192
+ /* @__PURE__ */ y(l, {
193
193
  label: "Budget spent",
194
194
  value: q,
195
195
  max: J > 0 ? J : Math.max(q, 1),
196
- format: (e) => a(e, G)
196
+ format: (e) => i(e, G)
197
197
  }),
198
- /* @__PURE__ */ b(u, {
198
+ /* @__PURE__ */ y(l, {
199
199
  label: "Hours tracked",
200
200
  value: X,
201
201
  max: Y > 0 ? Y : Math.max(X, 1),
202
- format: (e) => s(e)
202
+ format: (e) => o(e)
203
203
  }),
204
- /* @__PURE__ */ b(u, {
204
+ /* @__PURE__ */ y(l, {
205
205
  label: "Tasks completed",
206
206
  higherIsWorse: !1,
207
207
  value: Z,
@@ -210,16 +210,16 @@ function T() {
210
210
  })
211
211
  ]
212
212
  })
213
- }), /* @__PURE__ */ b(c, {
213
+ }), /* @__PURE__ */ y(s, {
214
214
  title: "Time distribution",
215
215
  description: "Tracked vs estimated hours by task",
216
- children: /* @__PURE__ */ b(l, {
217
- data: ve,
216
+ children: /* @__PURE__ */ y(c, {
217
+ data: ye,
218
218
  xKey: "task",
219
219
  orientation: "horizontal",
220
220
  height: 280,
221
221
  categoryWidth: 120,
222
- valueFormat: _e,
222
+ valueFormat: ve,
223
223
  series: [{
224
224
  key: "tracked",
225
225
  label: "Tracked"
@@ -231,41 +231,41 @@ function T() {
231
231
  })
232
232
  })]
233
233
  }),
234
- /* @__PURE__ */ b(c, {
234
+ /* @__PURE__ */ y(s, {
235
235
  title: "Tasks",
236
236
  description: `${Z} of ${Q} complete`,
237
- actions: /* @__PURE__ */ x("button", {
237
+ actions: /* @__PURE__ */ b("button", {
238
238
  onClick: () => E(`/projects/${T ?? ""}/tasks`),
239
239
  className: "inline-flex items-center gap-1 rounded-md border border-border-subtle px-2.5 py-1.5 text-xs font-medium text-text-primary hover:bg-bg-sunken/50",
240
- children: ["View all", /* @__PURE__ */ b(h, { className: "h-3.5 w-3.5" })]
240
+ children: ["View all", /* @__PURE__ */ y(m, { className: "h-3.5 w-3.5" })]
241
241
  }),
242
- children: $.length === 0 ? /* @__PURE__ */ b("p", {
242
+ children: $.length === 0 ? /* @__PURE__ */ y("p", {
243
243
  className: "text-sm text-text-secondary",
244
244
  children: "No tasks yet. Break this project into trackable tasks to see progress here."
245
- }) : /* @__PURE__ */ b("ul", {
245
+ }) : /* @__PURE__ */ y("ul", {
246
246
  className: "divide-y divide-border-seam",
247
- children: $.map((e) => /* @__PURE__ */ x("li", {
247
+ children: $.map((e) => /* @__PURE__ */ b("li", {
248
248
  className: "flex flex-col gap-2 py-3 first:pt-0 last:pb-0 sm:flex-row sm:items-center sm:justify-between",
249
- children: [/* @__PURE__ */ x("div", {
249
+ children: [/* @__PURE__ */ b("div", {
250
250
  className: "min-w-0",
251
- children: [/* @__PURE__ */ b("p", {
251
+ children: [/* @__PURE__ */ y("p", {
252
252
  className: "truncate text-sm font-medium text-text-primary",
253
253
  children: e.title
254
- }), /* @__PURE__ */ x("p", {
254
+ }), /* @__PURE__ */ b("p", {
255
255
  className: "mt-0.5 text-xs text-text-secondary",
256
256
  children: [
257
- s(e.trackedHours),
257
+ o(e.trackedHours),
258
258
  " tracked",
259
- e.estimatedHours ? ` / ${s(e.estimatedHours)} est` : "",
260
- e.dueDate ? ` · due ${o(e.dueDate)}` : ""
259
+ e.estimatedHours ? ` / ${o(e.estimatedHours)} est` : "",
260
+ e.dueDate ? ` · due ${a(e.dueDate)}` : ""
261
261
  ]
262
262
  })]
263
- }), /* @__PURE__ */ x("div", {
263
+ }), /* @__PURE__ */ b("div", {
264
264
  className: "flex flex-wrap items-center gap-2",
265
- children: [/* @__PURE__ */ b(i, {
265
+ children: [/* @__PURE__ */ y(r, {
266
266
  label: e.priority,
267
267
  priority: e.priority
268
- }), /* @__PURE__ */ b(i, {
268
+ }), /* @__PURE__ */ y(r, {
269
269
  label: e.status,
270
270
  status: e.status
271
271
  })]
@@ -275,101 +275,101 @@ function T() {
275
275
  })
276
276
  ]
277
277
  }),
278
- /* @__PURE__ */ x(r, {
279
- open: N,
280
- onClose: () => P(!1),
278
+ /* @__PURE__ */ b(n, {
279
+ open: P,
280
+ onClose: () => F(!1),
281
281
  title: "Edit Project",
282
282
  size: "xl",
283
- footer: /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("button", {
284
- onClick: () => P(!1),
283
+ footer: /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y("button", {
284
+ onClick: () => F(!1),
285
285
  className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken/50",
286
286
  children: "Cancel"
287
- }), /* @__PURE__ */ b("button", {
288
- onClick: me,
289
- disabled: B || !L.name.trim(),
287
+ }), /* @__PURE__ */ y("button", {
288
+ onClick: he,
289
+ disabled: V || !R.name.trim(),
290
290
  className: "rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 disabled:opacity-50",
291
- children: B ? "Saving…" : "Save Changes"
291
+ children: V ? "Saving…" : "Save Changes"
292
292
  })] }),
293
- children: [V && /* @__PURE__ */ b("div", {
293
+ children: [H && /* @__PURE__ */ y("div", {
294
294
  className: "mb-4 rounded-lg border border-status-error-bg/40 bg-status-error-bg p-3 text-sm text-status-error-text",
295
295
  children: "Failed to update project. Please try again."
296
- }), /* @__PURE__ */ x("div", {
296
+ }), /* @__PURE__ */ b("div", {
297
297
  className: "space-y-4",
298
298
  children: [
299
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
299
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("label", {
300
300
  className: w,
301
301
  children: "Project Name"
302
- }), /* @__PURE__ */ b("input", {
302
+ }), /* @__PURE__ */ y("input", {
303
303
  type: "text",
304
- value: L.name,
305
- onChange: (e) => R({
306
- ...L,
304
+ value: R.name,
305
+ onChange: (e) => z({
306
+ ...R,
307
307
  name: e.target.value
308
308
  }),
309
309
  className: C
310
310
  })] }),
311
- /* @__PURE__ */ x("div", {
311
+ /* @__PURE__ */ b("div", {
312
312
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
313
- children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
313
+ children: [/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("label", {
314
314
  className: w,
315
315
  children: "Client"
316
- }), /* @__PURE__ */ b("input", {
316
+ }), /* @__PURE__ */ y("input", {
317
317
  type: "text",
318
- value: L.clientId,
319
- onChange: (e) => R({
320
- ...L,
318
+ value: R.clientId,
319
+ onChange: (e) => z({
320
+ ...R,
321
321
  clientId: e.target.value
322
322
  }),
323
323
  className: C
324
- })] }), /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
324
+ })] }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("label", {
325
325
  className: w,
326
326
  children: "Status"
327
- }), /* @__PURE__ */ b("select", {
328
- value: L.status,
329
- onChange: (e) => R({
330
- ...L,
327
+ }), /* @__PURE__ */ y(S, {
328
+ value: R.status,
329
+ onChange: (e) => z({
330
+ ...R,
331
331
  status: e.target.value
332
332
  }),
333
333
  className: C,
334
- children: ce.map((e) => /* @__PURE__ */ b("option", {
334
+ children: le.map((e) => /* @__PURE__ */ y("option", {
335
335
  value: e,
336
336
  children: e
337
337
  }, e))
338
338
  })] })]
339
339
  }),
340
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
340
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("label", {
341
341
  className: w,
342
342
  children: "Description"
343
- }), /* @__PURE__ */ b("textarea", {
343
+ }), /* @__PURE__ */ y("textarea", {
344
344
  rows: 3,
345
- value: L.description,
346
- onChange: (e) => R({
347
- ...L,
345
+ value: R.description,
346
+ onChange: (e) => z({
347
+ ...R,
348
348
  description: e.target.value
349
349
  }),
350
350
  className: C
351
351
  })] }),
352
- /* @__PURE__ */ x("div", {
352
+ /* @__PURE__ */ b("div", {
353
353
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
354
- children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
354
+ children: [/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("label", {
355
355
  className: w,
356
356
  children: "Estimated Hours"
357
- }), /* @__PURE__ */ b("input", {
357
+ }), /* @__PURE__ */ y("input", {
358
358
  type: "number",
359
- value: L.estimatedHours,
360
- onChange: (e) => R({
361
- ...L,
359
+ value: R.estimatedHours,
360
+ onChange: (e) => z({
361
+ ...R,
362
362
  estimatedHours: e.target.value
363
363
  }),
364
364
  className: C
365
- })] }), /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
365
+ })] }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("label", {
366
366
  className: w,
367
367
  children: "Hourly Rate"
368
- }), /* @__PURE__ */ b("input", {
368
+ }), /* @__PURE__ */ y("input", {
369
369
  type: "number",
370
- value: L.hourlyRate,
371
- onChange: (e) => R({
372
- ...L,
370
+ value: R.hourlyRate,
371
+ onChange: (e) => z({
372
+ ...R,
373
373
  hourlyRate: e.target.value
374
374
  }),
375
375
  className: C
@@ -378,32 +378,32 @@ function T() {
378
378
  ]
379
379
  })]
380
380
  }),
381
- /* @__PURE__ */ x(r, {
382
- open: F,
383
- onClose: () => I(!1),
381
+ /* @__PURE__ */ b(n, {
382
+ open: I,
383
+ onClose: () => L(!1),
384
384
  title: "Delete Project",
385
385
  size: "sm",
386
- footer: /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("button", {
387
- onClick: () => I(!1),
386
+ footer: /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y("button", {
387
+ onClick: () => L(!1),
388
388
  className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken/50",
389
389
  children: "Cancel"
390
- }), /* @__PURE__ */ b("button", {
391
- onClick: ge,
390
+ }), /* @__PURE__ */ y("button", {
391
+ onClick: _e,
392
392
  disabled: W,
393
393
  className: "rounded-md bg-status-error-bg px-4 py-2 text-sm font-medium text-status-error-text hover:bg-status-error-bg/90 disabled:opacity-50",
394
394
  children: W ? "Deleting…" : "Delete"
395
395
  })] }),
396
- children: [fe && /* @__PURE__ */ b("div", {
396
+ children: [pe && /* @__PURE__ */ y("div", {
397
397
  className: "mb-4 rounded-lg border border-status-error-bg/40 bg-status-error-bg p-3 text-sm text-status-error-text",
398
398
  children: "Failed to delete project. Please try again."
399
- }), /* @__PURE__ */ x("p", {
399
+ }), /* @__PURE__ */ b("p", {
400
400
  className: "text-sm text-text-secondary",
401
401
  children: [
402
402
  "Are you sure you want to delete",
403
403
  " ",
404
- /* @__PURE__ */ b("span", {
404
+ /* @__PURE__ */ y("span", {
405
405
  className: "font-semibold text-text-primary",
406
- children: j?.name
406
+ children: M?.name
407
407
  }),
408
408
  "? This action cannot be undone."
409
409
  ]