@burdenoff/microfe-timecampus 2026.1031.10 → 2026.1031.12

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 (108) hide show
  1. package/dist/generated/wspace-operations.d.ts +45 -0
  2. package/dist/generated/wspace-operations.d.ts.map +1 -1
  3. package/dist/generated/wspace-operations.js +710 -672
  4. package/dist/generated/wspace-operations.js.map +1 -1
  5. package/dist/generated/wspace-types.d.ts +731 -0
  6. package/dist/generated/wspace-types.d.ts.map +1 -1
  7. package/dist/generated/wspace-types.js +14 -12
  8. package/dist/generated/wspace-types.js.map +1 -1
  9. package/dist/index.js +7 -7
  10. package/dist/timecampus/TimeCampusRoot.d.ts.map +1 -1
  11. package/dist/timecampus/TimeCampusRoot.js +121 -80
  12. package/dist/timecampus/TimeCampusRoot.js.map +1 -1
  13. package/dist/timecampus/TimeCampusRoutes.d.ts.map +1 -1
  14. package/dist/timecampus/TimeCampusRoutes.js +24 -5
  15. package/dist/timecampus/TimeCampusRoutes.js.map +1 -1
  16. package/dist/timecampus/analytics/index.d.ts +3 -0
  17. package/dist/timecampus/analytics/index.d.ts.map +1 -0
  18. package/dist/timecampus/analytics/index.js +3 -0
  19. package/dist/timecampus/analytics/timecampusAnalytics.d.ts +83 -0
  20. package/dist/timecampus/analytics/timecampusAnalytics.d.ts.map +1 -0
  21. package/dist/timecampus/analytics/timecampusAnalytics.js +175 -0
  22. package/dist/timecampus/analytics/timecampusAnalytics.js.map +1 -0
  23. package/dist/timecampus/analytics/useTimeCampusAnalytics.d.ts +16 -0
  24. package/dist/timecampus/analytics/useTimeCampusAnalytics.d.ts.map +1 -0
  25. package/dist/timecampus/analytics/useTimeCampusAnalytics.js +48 -0
  26. package/dist/timecampus/analytics/useTimeCampusAnalytics.js.map +1 -0
  27. package/dist/timecampus/components/ActivationCard.d.ts +3 -0
  28. package/dist/timecampus/components/ActivationCard.d.ts.map +1 -0
  29. package/dist/timecampus/components/ActivationCard.js +156 -0
  30. package/dist/timecampus/components/ActivationCard.js.map +1 -0
  31. package/dist/timecampus/index.js +7 -7
  32. package/dist/timecampus/pages/HomePage.d.ts.map +1 -1
  33. package/dist/timecampus/pages/HomePage.js +142 -139
  34. package/dist/timecampus/pages/HomePage.js.map +1 -1
  35. package/dist/timecampus/pages/client-portal/ClientPortalPage.d.ts.map +1 -1
  36. package/dist/timecampus/pages/client-portal/ClientPortalPage.js +244 -228
  37. package/dist/timecampus/pages/client-portal/ClientPortalPage.js.map +1 -1
  38. package/dist/timecampus/pages/dashboard/AnalyticsPage.d.ts.map +1 -1
  39. package/dist/timecampus/pages/dashboard/AnalyticsPage.js +117 -112
  40. package/dist/timecampus/pages/dashboard/AnalyticsPage.js.map +1 -1
  41. package/dist/timecampus/pages/dashboard/ReportsPage.d.ts.map +1 -1
  42. package/dist/timecampus/pages/dashboard/ReportsPage.js +105 -102
  43. package/dist/timecampus/pages/dashboard/ReportsPage.js.map +1 -1
  44. package/dist/timecampus/pages/expense-tracking/ExpenseTrackingPage.d.ts.map +1 -1
  45. package/dist/timecampus/pages/expense-tracking/ExpenseTrackingPage.js +209 -192
  46. package/dist/timecampus/pages/expense-tracking/ExpenseTrackingPage.js.map +1 -1
  47. package/dist/timecampus/pages/focus-score/FocusScorePage.d.ts.map +1 -1
  48. package/dist/timecampus/pages/focus-score/FocusScorePage.js +71 -68
  49. package/dist/timecampus/pages/focus-score/FocusScorePage.js.map +1 -1
  50. package/dist/timecampus/pages/invoicing/InvoicingPage.d.ts.map +1 -1
  51. package/dist/timecampus/pages/invoicing/InvoicingPage.js +157 -150
  52. package/dist/timecampus/pages/invoicing/InvoicingPage.js.map +1 -1
  53. package/dist/timecampus/pages/lifetime/LifeBalancePage.d.ts.map +1 -1
  54. package/dist/timecampus/pages/lifetime/LifeBalancePage.js +34 -31
  55. package/dist/timecampus/pages/lifetime/LifeBalancePage.js.map +1 -1
  56. package/dist/timecampus/pages/meetings/MeetingCreatePage.d.ts.map +1 -1
  57. package/dist/timecampus/pages/meetings/MeetingCreatePage.js +58 -52
  58. package/dist/timecampus/pages/meetings/MeetingCreatePage.js.map +1 -1
  59. package/dist/timecampus/pages/meetings/MeetingsPage.d.ts.map +1 -1
  60. package/dist/timecampus/pages/meetings/MeetingsPage.js +51 -45
  61. package/dist/timecampus/pages/meetings/MeetingsPage.js.map +1 -1
  62. package/dist/timecampus/pages/mobile/MobileLifeBalancePage.d.ts +8 -0
  63. package/dist/timecampus/pages/mobile/MobileLifeBalancePage.d.ts.map +1 -0
  64. package/dist/timecampus/pages/mobile/MobileLifeBalancePage.js +224 -0
  65. package/dist/timecampus/pages/mobile/MobileLifeBalancePage.js.map +1 -0
  66. package/dist/timecampus/pages/mobile/MobileScreen.d.ts +32 -0
  67. package/dist/timecampus/pages/mobile/MobileScreen.d.ts.map +1 -0
  68. package/dist/timecampus/pages/mobile/MobileScreen.js +89 -0
  69. package/dist/timecampus/pages/mobile/MobileScreen.js.map +1 -0
  70. package/dist/timecampus/pages/mobile/MobileTimelinePage.d.ts +8 -0
  71. package/dist/timecampus/pages/mobile/MobileTimelinePage.d.ts.map +1 -0
  72. package/dist/timecampus/pages/mobile/MobileTimelinePage.js +341 -0
  73. package/dist/timecampus/pages/mobile/MobileTimelinePage.js.map +1 -0
  74. package/dist/timecampus/pages/mobile/MobileTimerPage.d.ts +8 -0
  75. package/dist/timecampus/pages/mobile/MobileTimerPage.d.ts.map +1 -0
  76. package/dist/timecampus/pages/mobile/MobileTimerPage.js +226 -0
  77. package/dist/timecampus/pages/mobile/MobileTimerPage.js.map +1 -0
  78. package/dist/timecampus/pages/mobile/mobileModel.d.ts +121 -0
  79. package/dist/timecampus/pages/mobile/mobileModel.d.ts.map +1 -0
  80. package/dist/timecampus/pages/mobile/mobileModel.js +127 -0
  81. package/dist/timecampus/pages/mobile/mobileModel.js.map +1 -0
  82. package/dist/timecampus/pages/pomodoro/PomodoroPage.d.ts.map +1 -1
  83. package/dist/timecampus/pages/pomodoro/PomodoroPage.js +57 -51
  84. package/dist/timecampus/pages/pomodoro/PomodoroPage.js.map +1 -1
  85. package/dist/timecampus/pages/projects/ProjectCreatePage.d.ts.map +1 -1
  86. package/dist/timecampus/pages/projects/ProjectCreatePage.js +59 -49
  87. package/dist/timecampus/pages/projects/ProjectCreatePage.js.map +1 -1
  88. package/dist/timecampus/pages/projects/ProjectsPage.d.ts.map +1 -1
  89. package/dist/timecampus/pages/projects/ProjectsPage.js +165 -155
  90. package/dist/timecampus/pages/projects/ProjectsPage.js.map +1 -1
  91. package/dist/timecampus/pages/time/TimeEntriesPage.d.ts.map +1 -1
  92. package/dist/timecampus/pages/time/TimeEntriesPage.js +194 -186
  93. package/dist/timecampus/pages/time/TimeEntriesPage.js.map +1 -1
  94. package/dist/timecampus/pages/time/TimeTrackingPage.d.ts.map +1 -1
  95. package/dist/timecampus/pages/time/TimeTrackingPage.js +139 -126
  96. package/dist/timecampus/pages/time/TimeTrackingPage.js.map +1 -1
  97. package/dist/timecampus/pages/time/TimerPage.d.ts.map +1 -1
  98. package/dist/timecampus/pages/time/TimerPage.js +54 -39
  99. package/dist/timecampus/pages/time/TimerPage.js.map +1 -1
  100. package/dist/timecampus/pages/time-approval/TimeApprovalPage.d.ts.map +1 -1
  101. package/dist/timecampus/pages/time-approval/TimeApprovalPage.js +60 -50
  102. package/dist/timecampus/pages/time-approval/TimeApprovalPage.js.map +1 -1
  103. package/dist/timecampus/pages/timeline/TimelinePage.d.ts.map +1 -1
  104. package/dist/timecampus/pages/timeline/TimelinePage.js +306 -297
  105. package/dist/timecampus/pages/timeline/TimelinePage.js.map +1 -1
  106. package/dist/timecampus/types/index.d.ts +5 -0
  107. package/dist/timecampus/types/index.d.ts.map +1 -1
  108. package/package.json +1 -1
@@ -1,41 +1,43 @@
1
1
  import { useTimeCampusNavigate as e } from "../../providers/TimeCampusProvider.js";
2
2
  import { formatHours as t, getStatusColor as n } from "../../utils/helpers.js";
3
- import { LoadingSkeleton as ee } from "../../components/LoadingSkeleton.js";
4
- import { EmptyState as r } from "../../components/EmptyState.js";
5
- import { useArchiveProjectMutation as i, useCreateProjectMutation as a, useDeleteProjectMutation as o, useListProjectsQuery as s, useUpdateProjectMutation as te } from "../../../generated/wspace-operations.js";
6
- import { PageLayout as c } from "../../components/PageLayout.js";
7
- import { Modal as l } from "../../components/Modal.js";
8
- import { useState as u } from "react";
9
- import { Archive as d, Pencil as f, Plus as p, Trash2 as m } from "lucide-react";
10
- import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
11
- import { useI18n as v } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
3
+ import { LoadingSkeleton as r } from "../../components/LoadingSkeleton.js";
4
+ import { EmptyState as i } from "../../components/EmptyState.js";
5
+ import { useArchiveProjectMutation as a, useCreateProjectMutation as o, useDeleteProjectMutation as ee, useListProjectsQuery as s, useUpdateProjectMutation as c } from "../../../generated/wspace-operations.js";
6
+ import { useTimeCampusAnalytics as l } from "../../analytics/useTimeCampusAnalytics.js";
7
+ import "../../analytics/index.js";
8
+ import { PageLayout as u } from "../../components/PageLayout.js";
9
+ import { Modal as d } from "../../components/Modal.js";
10
+ import { useState as f } from "react";
11
+ import { Archive as p, Pencil as m, Plus as h, Trash2 as te } from "lucide-react";
12
+ import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
13
+ import { useI18n as y } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
12
14
  //#region src/timecampus/pages/projects/ProjectsPage.tsx
13
- var y = 25, b = [
15
+ var b = 25, x = [
14
16
  "active",
15
17
  "on-hold",
16
18
  "completed",
17
19
  "archived"
18
- ], x = {
20
+ ], S = {
19
21
  name: "",
20
22
  clientId: "",
21
23
  description: "",
22
24
  status: "active",
23
25
  estimatedHours: "",
24
26
  hourlyRate: ""
25
- }, S = "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", C = "block text-sm font-medium text-text-primary";
26
- function w() {
27
- let { t: w } = v(), T = (e, t) => {
28
- let n = w(e);
27
+ }, 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";
28
+ function T() {
29
+ let { t: T } = y(), E = (e, t) => {
30
+ let n = T(e);
29
31
  return n === e ? t : n;
30
- }, E = e(), [D, O] = u(y), { data: k, loading: A, error: ne, refetch: j } = s({
32
+ }, D = e(), [ne, re] = f(b), { data: O, loading: k, error: A, refetch: j } = s({
31
33
  variables: { pagination: {
32
- limit: D,
34
+ limit: ne,
33
35
  offset: 0
34
36
  } },
35
37
  notifyOnNetworkStatusChange: !0
36
- }), M = k?.projects?.items ?? [], N = k?.projects?.hasMore ?? !1, [P, F] = u(!1), [I, L] = u(null), [R, z] = u(null), [B, V] = u(x), [H, { loading: U, error: W }] = a(), [G, { loading: K, error: q }] = te(), [J, { loading: Y }] = i(), [X, { loading: Z, error: re }] = o(), Q = () => {
37
- V(x), F(!0);
38
- }, ie = (e) => {
38
+ }), M = O?.projects?.items ?? [], N = O?.projects?.hasMore ?? !1, [P, F] = f(!1), [I, L] = f(null), [R, z] = f(null), [B, V] = f(S), [H, { loading: U, error: W }] = o(), G = l(), [K, { loading: q, error: J }] = c(), [Y, { loading: ie }] = a(), [ae, { loading: X, error: oe }] = ee(), Z = () => {
39
+ V(S), F(!0);
40
+ }, se = (e) => {
39
41
  V({
40
42
  name: e.name,
41
43
  clientId: e.clientId ?? "",
@@ -44,17 +46,25 @@ function w() {
44
46
  estimatedHours: e.estimatedHours == null ? "" : String(e.estimatedHours),
45
47
  hourlyRate: e.hourlyRate == null ? "" : String(e.hourlyRate)
46
48
  }), L(e);
47
- }, ae = async () => {
48
- B.name.trim() && (await H({ variables: { input: {
49
+ }, ce = async () => {
50
+ if (!B.name.trim()) return;
51
+ let e = {
49
52
  name: B.name.trim(),
50
53
  description: B.description.trim() || void 0,
51
54
  clientId: B.clientId.trim() || void 0,
52
55
  status: B.status,
53
56
  estimatedHours: B.estimatedHours ? Number(B.estimatedHours) : void 0,
54
57
  hourlyRate: B.hourlyRate ? Number(B.hourlyRate) : void 0
55
- } } }), F(!1), await j());
56
- }, oe = async () => {
57
- !I || !B.name.trim() || (await G({ variables: {
58
+ }, t = (await H({ variables: { input: e } })).data?.createTimeCampusProject;
59
+ t && (G.projectCreated({
60
+ projectId: t.id,
61
+ surface: "projects_page",
62
+ clientId: e.clientId,
63
+ estimatedHours: e.estimatedHours,
64
+ hourlyRate: e.hourlyRate
65
+ }), F(!1), await j());
66
+ }, le = async () => {
67
+ !I || !B.name.trim() || (await K({ variables: {
58
68
  id: I.id,
59
69
  input: {
60
70
  name: B.name.trim(),
@@ -65,17 +75,17 @@ function w() {
65
75
  hourlyRate: B.hourlyRate ? Number(B.hourlyRate) : void 0
66
76
  }
67
77
  } }), L(null), await j());
68
- }, se = async (e) => {
69
- await J({ variables: { id: e.id } }), await j();
70
- }, ce = async () => {
71
- R && (await X({ variables: { id: R.id } }), z(null), await j());
72
- }, $ = /* @__PURE__ */ _("div", {
78
+ }, ue = async (e) => {
79
+ await Y({ variables: { id: e.id } }), await j();
80
+ }, Q = async () => {
81
+ R && (await ae({ variables: { id: R.id } }), z(null), await j());
82
+ }, $ = /* @__PURE__ */ v("div", {
73
83
  className: "space-y-4",
74
84
  children: [
75
- /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
76
- className: C,
77
- children: T("timecampus.projects.form.name", "Project Name")
78
- }), /* @__PURE__ */ g("input", {
85
+ /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
86
+ className: w,
87
+ children: E("timecampus.projects.form.name", "Project Name")
88
+ }), /* @__PURE__ */ _("input", {
79
89
  type: "text",
80
90
  placeholder: "Enter project name",
81
91
  value: B.name,
@@ -83,14 +93,14 @@ function w() {
83
93
  ...B,
84
94
  name: e.target.value
85
95
  }),
86
- className: S
96
+ className: C
87
97
  })] }),
88
- /* @__PURE__ */ _("div", {
98
+ /* @__PURE__ */ v("div", {
89
99
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
90
- children: [/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
91
- className: C,
92
- children: T("timecampus.projects.form.client", "Client")
93
- }), /* @__PURE__ */ g("input", {
100
+ children: [/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
101
+ className: w,
102
+ children: E("timecampus.projects.form.client", "Client")
103
+ }), /* @__PURE__ */ _("input", {
94
104
  type: "text",
95
105
  placeholder: "Client name",
96
106
  value: B.clientId,
@@ -98,27 +108,27 @@ function w() {
98
108
  ...B,
99
109
  clientId: e.target.value
100
110
  }),
101
- className: S
102
- })] }), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
103
- className: C,
104
- children: T("timecampus.projects.form.status", "Status")
105
- }), /* @__PURE__ */ g("select", {
111
+ className: C
112
+ })] }), /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
113
+ className: w,
114
+ children: E("timecampus.projects.form.status", "Status")
115
+ }), /* @__PURE__ */ _("select", {
106
116
  value: B.status,
107
117
  onChange: (e) => V({
108
118
  ...B,
109
119
  status: e.target.value
110
120
  }),
111
- className: S,
112
- children: b.map((e) => /* @__PURE__ */ g("option", {
121
+ className: C,
122
+ children: x.map((e) => /* @__PURE__ */ _("option", {
113
123
  value: e,
114
124
  children: e
115
125
  }, e))
116
126
  })] })]
117
127
  }),
118
- /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
119
- className: C,
120
- children: T("timecampus.projects.form.description", "Description")
121
- }), /* @__PURE__ */ g("textarea", {
128
+ /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
129
+ className: w,
130
+ children: E("timecampus.projects.form.description", "Description")
131
+ }), /* @__PURE__ */ _("textarea", {
122
132
  placeholder: "Project description",
123
133
  rows: 3,
124
134
  value: B.description,
@@ -126,14 +136,14 @@ function w() {
126
136
  ...B,
127
137
  description: e.target.value
128
138
  }),
129
- className: S
139
+ className: C
130
140
  })] }),
131
- /* @__PURE__ */ _("div", {
141
+ /* @__PURE__ */ v("div", {
132
142
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
133
- children: [/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
134
- className: C,
135
- children: T("timecampus.projects.form.estimatedHours", "Estimated Hours")
136
- }), /* @__PURE__ */ g("input", {
143
+ children: [/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
144
+ className: w,
145
+ children: E("timecampus.projects.form.estimatedHours", "Estimated Hours")
146
+ }), /* @__PURE__ */ _("input", {
137
147
  type: "number",
138
148
  placeholder: "0",
139
149
  value: B.estimatedHours,
@@ -141,11 +151,11 @@ function w() {
141
151
  ...B,
142
152
  estimatedHours: e.target.value
143
153
  }),
144
- className: S
145
- })] }), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
146
- className: C,
147
- children: T("timecampus.projects.form.hourlyRate", "Hourly Rate")
148
- }), /* @__PURE__ */ g("input", {
154
+ className: C
155
+ })] }), /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
156
+ className: w,
157
+ children: E("timecampus.projects.form.hourlyRate", "Hourly Rate")
158
+ }), /* @__PURE__ */ _("input", {
149
159
  type: "number",
150
160
  placeholder: "0.00",
151
161
  value: B.hourlyRate,
@@ -153,207 +163,207 @@ function w() {
153
163
  ...B,
154
164
  hourlyRate: e.target.value
155
165
  }),
156
- className: S
166
+ className: C
157
167
  })] })]
158
168
  })
159
169
  ]
160
170
  });
161
- return ne ? /* @__PURE__ */ g(c, {
162
- title: T("timecampus.projects.title", "Projects"),
163
- description: T("timecampus.projects.description", "Manage and track project time"),
164
- children: /* @__PURE__ */ g("div", {
171
+ return A ? /* @__PURE__ */ _(u, {
172
+ title: E("timecampus.projects.title", "Projects"),
173
+ description: E("timecampus.projects.description", "Manage and track project time"),
174
+ children: /* @__PURE__ */ _("div", {
165
175
  className: "rounded-xl border border-status-error-bg/40 bg-status-error-bg p-6 text-sm text-status-error-text",
166
- children: T("timecampus.projects.error.loadFailed", "Failed to load projects. Please try again later.")
176
+ children: E("timecampus.projects.error.loadFailed", "Failed to load projects. Please try again later.")
167
177
  })
168
- }) : /* @__PURE__ */ _(c, {
169
- title: T("timecampus.projects.title", "Projects"),
170
- description: T("timecampus.projects.description", "Manage and track project time"),
171
- purpose: T("timecampus.projects.purpose", "Group your work into projects so every hour you track rolls up to the right client and budget — use it to estimate effort, watch progress against the plan, and bill accurately."),
172
- actions: /* @__PURE__ */ _("button", {
173
- onClick: Q,
178
+ }) : /* @__PURE__ */ v(u, {
179
+ title: E("timecampus.projects.title", "Projects"),
180
+ description: E("timecampus.projects.description", "Manage and track project time"),
181
+ purpose: E("timecampus.projects.purpose", "Group your work into projects so every hour you track rolls up to the right client and budget — use it to estimate effort, watch progress against the plan, and bill accurately."),
182
+ actions: /* @__PURE__ */ v("button", {
183
+ onClick: Z,
174
184
  className: "inline-flex items-center gap-1.5 rounded-md bg-action-primary-bg px-3 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
175
- children: [/* @__PURE__ */ g(p, { className: "h-4 w-4" }), T("timecampus.projects.actions.newProject", "New Project")]
185
+ children: [/* @__PURE__ */ _(h, { className: "h-4 w-4" }), E("timecampus.projects.actions.newProject", "New Project")]
176
186
  }),
177
187
  children: [
178
- A && M.length === 0 ? /* @__PURE__ */ g(ee, {
188
+ k && M.length === 0 ? /* @__PURE__ */ _(r, {
179
189
  variant: "card",
180
190
  count: 4
181
- }) : M.length === 0 ? /* @__PURE__ */ g(r, {
191
+ }) : M.length === 0 ? /* @__PURE__ */ _(i, {
182
192
  illustration: "empty-generic",
183
- title: T("timecampus.projects.empty.title", "No projects yet"),
184
- description: T("timecampus.projects.empty", "No projects yet. Create your first project to get started."),
185
- action: /* @__PURE__ */ _("button", {
186
- onClick: Q,
193
+ title: E("timecampus.projects.empty.title", "No projects yet"),
194
+ description: E("timecampus.projects.empty", "No projects yet. Create your first project to get started."),
195
+ action: /* @__PURE__ */ v("button", {
196
+ onClick: Z,
187
197
  className: "inline-flex items-center gap-1.5 rounded-md bg-action-primary-bg px-3 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
188
- children: [/* @__PURE__ */ g(p, { className: "h-4 w-4" }), T("timecampus.projects.actions.newProject", "New Project")]
198
+ children: [/* @__PURE__ */ _(h, { className: "h-4 w-4" }), E("timecampus.projects.actions.newProject", "New Project")]
189
199
  })
190
- }) : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g("div", {
200
+ }) : /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("div", {
191
201
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
192
- children: M.map((e) => /* @__PURE__ */ _("div", {
202
+ children: M.map((e) => /* @__PURE__ */ v("div", {
193
203
  role: "button",
194
204
  tabIndex: 0,
195
- onClick: () => E(`/projects/${e.id}`),
205
+ onClick: () => D(`/projects/${e.id}`),
196
206
  onKeyDown: (t) => {
197
- (t.key === "Enter" || t.key === " ") && (t.preventDefault(), E(`/projects/${e.id}`));
207
+ (t.key === "Enter" || t.key === " ") && (t.preventDefault(), D(`/projects/${e.id}`));
198
208
  },
199
209
  className: "rounded-xl border border-border-seam bg-gloss-card shadow-pop p-5 transition-colors hover:bg-bg-sunken/50 cursor-pointer",
200
210
  children: [
201
- /* @__PURE__ */ _("div", {
211
+ /* @__PURE__ */ v("div", {
202
212
  className: "flex items-start justify-between",
203
- children: [/* @__PURE__ */ _("div", {
213
+ children: [/* @__PURE__ */ v("div", {
204
214
  className: "flex items-center gap-3",
205
- children: [/* @__PURE__ */ g("div", {
215
+ children: [/* @__PURE__ */ _("div", {
206
216
  className: "h-3 w-3 rounded-full",
207
217
  style: { backgroundColor: e.color ?? "var(--color-accent-blue)" }
208
- }), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
218
+ }), /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
209
219
  className: "text-sm font-semibold text-text-primary",
210
220
  children: e.name
211
- }), /* @__PURE__ */ g("p", {
221
+ }), /* @__PURE__ */ _("p", {
212
222
  className: "text-xs text-text-secondary",
213
- children: e.clientId ?? T("timecampus.projects.card.noClient", "No client")
223
+ children: e.clientId ?? E("timecampus.projects.card.noClient", "No client")
214
224
  })] })]
215
- }), /* @__PURE__ */ g("span", {
225
+ }), /* @__PURE__ */ _("span", {
216
226
  className: `inline-flex rounded-full px-2 py-0.5 text-xs font-medium ${n(e.status)}`,
217
227
  children: e.status
218
228
  })]
219
229
  }),
220
- /* @__PURE__ */ _("div", {
230
+ /* @__PURE__ */ v("div", {
221
231
  className: "mt-4",
222
- children: [/* @__PURE__ */ _("div", {
232
+ children: [/* @__PURE__ */ v("div", {
223
233
  className: "flex items-center justify-between text-xs text-text-secondary",
224
- children: [/* @__PURE__ */ g("span", { children: T("timecampus.projects.card.progress", "Progress") }), /* @__PURE__ */ _("span", { children: [e.estimatedHours ? Math.round(e.trackedHours / e.estimatedHours * 100) : 0, "%"] })]
225
- }), /* @__PURE__ */ g("div", {
234
+ children: [/* @__PURE__ */ _("span", { children: E("timecampus.projects.card.progress", "Progress") }), /* @__PURE__ */ v("span", { children: [e.estimatedHours ? Math.round(e.trackedHours / e.estimatedHours * 100) : 0, "%"] })]
235
+ }), /* @__PURE__ */ _("div", {
226
236
  className: "mt-1 h-2 rounded-full bg-bg-sunken",
227
- children: /* @__PURE__ */ g("div", {
237
+ children: /* @__PURE__ */ _("div", {
228
238
  className: "h-2 rounded-full bg-action-primary-bg",
229
239
  style: { width: `${e.estimatedHours ? Math.min(Math.round(e.trackedHours / e.estimatedHours * 100), 100) : 0}%` }
230
240
  })
231
241
  })]
232
242
  }),
233
- /* @__PURE__ */ _("div", {
243
+ /* @__PURE__ */ v("div", {
234
244
  className: "mt-3 flex items-center justify-between text-xs text-text-secondary",
235
- children: [/* @__PURE__ */ _("span", { children: [
245
+ children: [/* @__PURE__ */ v("span", { children: [
236
246
  t(e.trackedHours),
237
247
  " /",
238
248
  " ",
239
249
  t(e.estimatedHours ?? 0)
240
- ] }), /* @__PURE__ */ _("span", { children: [
250
+ ] }), /* @__PURE__ */ v("span", { children: [
241
251
  e.tasks?.length ?? 0,
242
252
  " ",
243
- T("timecampus.projects.card.tasks", "tasks")
253
+ E("timecampus.projects.card.tasks", "tasks")
244
254
  ] })]
245
255
  }),
246
- /* @__PURE__ */ _("div", {
256
+ /* @__PURE__ */ v("div", {
247
257
  className: "mt-4 flex items-center justify-end gap-1 border-t border-border-subtle pt-3",
248
258
  children: [
249
- /* @__PURE__ */ _("button", {
259
+ /* @__PURE__ */ v("button", {
250
260
  onClick: (t) => {
251
- t.stopPropagation(), ie(e);
261
+ t.stopPropagation(), se(e);
252
262
  },
253
263
  className: "inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs font-medium text-text-secondary hover:bg-bg-sunken hover:text-text-primary",
254
- "aria-label": T("timecampus.projects.actions.edit", "Edit"),
255
- children: [/* @__PURE__ */ g(f, { className: "h-3.5 w-3.5" }), T("timecampus.projects.actions.edit", "Edit")]
264
+ "aria-label": E("timecampus.projects.actions.edit", "Edit"),
265
+ children: [/* @__PURE__ */ _(m, { className: "h-3.5 w-3.5" }), E("timecampus.projects.actions.edit", "Edit")]
256
266
  }),
257
- e.status !== "archived" && /* @__PURE__ */ _("button", {
267
+ e.status !== "archived" && /* @__PURE__ */ v("button", {
258
268
  onClick: (t) => {
259
- t.stopPropagation(), se(e);
269
+ t.stopPropagation(), ue(e);
260
270
  },
261
- disabled: Y,
271
+ disabled: ie,
262
272
  className: "inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs font-medium text-text-secondary hover:bg-bg-sunken hover:text-text-primary disabled:opacity-50",
263
- "aria-label": T("timecampus.projects.actions.archive", "Archive"),
264
- children: [/* @__PURE__ */ g(d, { className: "h-3.5 w-3.5" }), T("timecampus.projects.actions.archive", "Archive")]
273
+ "aria-label": E("timecampus.projects.actions.archive", "Archive"),
274
+ children: [/* @__PURE__ */ _(p, { className: "h-3.5 w-3.5" }), E("timecampus.projects.actions.archive", "Archive")]
265
275
  }),
266
- /* @__PURE__ */ _("button", {
276
+ /* @__PURE__ */ v("button", {
267
277
  onClick: (t) => {
268
278
  t.stopPropagation(), z(e);
269
279
  },
270
280
  className: "inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs font-medium text-status-error-text hover:bg-status-error-bg",
271
- "aria-label": T("timecampus.projects.actions.delete", "Delete"),
272
- children: [/* @__PURE__ */ g(m, { className: "h-3.5 w-3.5" }), T("timecampus.projects.actions.delete", "Delete")]
281
+ "aria-label": E("timecampus.projects.actions.delete", "Delete"),
282
+ children: [/* @__PURE__ */ _(te, { className: "h-3.5 w-3.5" }), E("timecampus.projects.actions.delete", "Delete")]
273
283
  })
274
284
  ]
275
285
  })
276
286
  ]
277
287
  }, e.id))
278
- }), N && /* @__PURE__ */ g("div", {
288
+ }), N && /* @__PURE__ */ _("div", {
279
289
  className: "mt-6 flex justify-center",
280
- children: /* @__PURE__ */ g("button", {
281
- onClick: () => O((e) => e + y),
282
- disabled: A,
290
+ children: /* @__PURE__ */ _("button", {
291
+ onClick: () => re((e) => e + b),
292
+ disabled: k,
283
293
  className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken/50 disabled:opacity-50",
284
- children: A ? T("timecampus.common.loading", "Loading…") : T("timecampus.common.loadMore", "Load more")
294
+ children: k ? E("timecampus.common.loading", "Loading…") : E("timecampus.common.loadMore", "Load more")
285
295
  })
286
296
  })] }),
287
- /* @__PURE__ */ _(l, {
297
+ /* @__PURE__ */ v(d, {
288
298
  open: P,
289
299
  onClose: () => F(!1),
290
- title: T("timecampus.projects.actions.newProject", "New Project"),
291
- description: T("timecampus.projects.form.createHint", "Define a new project for time tracking."),
300
+ title: E("timecampus.projects.actions.newProject", "New Project"),
301
+ description: E("timecampus.projects.form.createHint", "Define a new project for time tracking."),
292
302
  size: "xl",
293
- footer: /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g("button", {
303
+ footer: /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("button", {
294
304
  onClick: () => F(!1),
295
305
  className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken/50",
296
- children: T("timecampus.common.cancel", "Cancel")
297
- }), /* @__PURE__ */ g("button", {
298
- onClick: ae,
306
+ children: E("timecampus.common.cancel", "Cancel")
307
+ }), /* @__PURE__ */ _("button", {
308
+ onClick: ce,
299
309
  disabled: U || !B.name.trim(),
300
310
  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",
301
- children: U ? T("timecampus.common.creating", "Creating…") : T("timecampus.projects.actions.create", "Create Project")
311
+ children: U ? E("timecampus.common.creating", "Creating…") : E("timecampus.projects.actions.create", "Create Project")
302
312
  })] }),
303
- children: [W && /* @__PURE__ */ g("div", {
313
+ children: [W && /* @__PURE__ */ _("div", {
304
314
  className: "mb-4 rounded-lg border border-status-error-bg/40 bg-status-error-bg p-3 text-sm text-status-error-text",
305
- children: T("timecampus.projects.error.createFailed", "Failed to create project. Please try again.")
315
+ children: E("timecampus.projects.error.createFailed", "Failed to create project. Please try again.")
306
316
  }), $]
307
317
  }),
308
- /* @__PURE__ */ _(l, {
318
+ /* @__PURE__ */ v(d, {
309
319
  open: I !== null,
310
320
  onClose: () => L(null),
311
- title: T("timecampus.projects.actions.editProject", "Edit Project"),
321
+ title: E("timecampus.projects.actions.editProject", "Edit Project"),
312
322
  size: "xl",
313
- footer: /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g("button", {
323
+ footer: /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("button", {
314
324
  onClick: () => L(null),
315
325
  className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken/50",
316
- children: T("timecampus.common.cancel", "Cancel")
317
- }), /* @__PURE__ */ g("button", {
318
- onClick: oe,
319
- disabled: K || !B.name.trim(),
326
+ children: E("timecampus.common.cancel", "Cancel")
327
+ }), /* @__PURE__ */ _("button", {
328
+ onClick: le,
329
+ disabled: q || !B.name.trim(),
320
330
  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",
321
- children: K ? T("timecampus.common.saving", "Saving…") : T("timecampus.common.saveChanges", "Save Changes")
331
+ children: q ? E("timecampus.common.saving", "Saving…") : E("timecampus.common.saveChanges", "Save Changes")
322
332
  })] }),
323
- children: [q && /* @__PURE__ */ g("div", {
333
+ children: [J && /* @__PURE__ */ _("div", {
324
334
  className: "mb-4 rounded-lg border border-status-error-bg/40 bg-status-error-bg p-3 text-sm text-status-error-text",
325
- children: T("timecampus.projects.error.updateFailed", "Failed to update project. Please try again.")
335
+ children: E("timecampus.projects.error.updateFailed", "Failed to update project. Please try again.")
326
336
  }), $]
327
337
  }),
328
- /* @__PURE__ */ _(l, {
338
+ /* @__PURE__ */ v(d, {
329
339
  open: R !== null,
330
340
  onClose: () => z(null),
331
- title: T("timecampus.projects.actions.deleteProject", "Delete Project"),
341
+ title: E("timecampus.projects.actions.deleteProject", "Delete Project"),
332
342
  size: "sm",
333
- footer: /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g("button", {
343
+ footer: /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("button", {
334
344
  onClick: () => z(null),
335
345
  className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken/50",
336
- children: T("timecampus.common.cancel", "Cancel")
337
- }), /* @__PURE__ */ g("button", {
338
- onClick: ce,
339
- disabled: Z,
346
+ children: E("timecampus.common.cancel", "Cancel")
347
+ }), /* @__PURE__ */ _("button", {
348
+ onClick: Q,
349
+ disabled: X,
340
350
  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",
341
- children: Z ? T("timecampus.common.deleting", "Deleting…") : T("timecampus.common.delete", "Delete")
351
+ children: X ? E("timecampus.common.deleting", "Deleting…") : E("timecampus.common.delete", "Delete")
342
352
  })] }),
343
- children: [re && /* @__PURE__ */ g("div", {
353
+ children: [oe && /* @__PURE__ */ _("div", {
344
354
  className: "mb-4 rounded-lg border border-status-error-bg/40 bg-status-error-bg p-3 text-sm text-status-error-text",
345
- children: T("timecampus.projects.error.deleteFailed", "Failed to delete project. Please try again.")
346
- }), /* @__PURE__ */ _("p", {
355
+ children: E("timecampus.projects.error.deleteFailed", "Failed to delete project. Please try again.")
356
+ }), /* @__PURE__ */ v("p", {
347
357
  className: "text-sm text-text-secondary",
348
358
  children: [
349
- T("timecampus.projects.deleteConfirm", "Are you sure you want to delete"),
359
+ E("timecampus.projects.deleteConfirm", "Are you sure you want to delete"),
350
360
  " ",
351
- /* @__PURE__ */ g("span", {
361
+ /* @__PURE__ */ _("span", {
352
362
  className: "font-semibold text-text-primary",
353
363
  children: R?.name
354
364
  }),
355
365
  "? ",
356
- T("timecampus.common.cannotUndo", "This action cannot be undone.")
366
+ E("timecampus.common.cannotUndo", "This action cannot be undone.")
357
367
  ]
358
368
  })]
359
369
  })
@@ -361,6 +371,6 @@ function w() {
361
371
  });
362
372
  }
363
373
  //#endregion
364
- export { w as ProjectsPage };
374
+ export { T as ProjectsPage };
365
375
 
366
376
  //# sourceMappingURL=ProjectsPage.js.map