@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.
- package/dist/timecampus/components/EmptyState.d.ts +7 -0
- package/dist/timecampus/components/EmptyState.js +3 -2
- package/dist/timecampus/components/EmptyState.js.map +1 -1
- package/dist/timecampus/components/FilterBar.js +1 -0
- package/dist/timecampus/pages/admin/AdminPage.js +264 -264
- package/dist/timecampus/pages/admin/AdminPage.js.map +1 -1
- package/dist/timecampus/pages/application-usage/ApplicationUsagePage.js +78 -78
- package/dist/timecampus/pages/application-usage/ApplicationUsagePage.js.map +1 -1
- package/dist/timecampus/pages/dashboard/ServerReportExports.js +34 -34
- package/dist/timecampus/pages/dashboard/ServerReportExports.js.map +1 -1
- package/dist/timecampus/pages/expense-tracking/ExpenseTrackingPage.js +49 -48
- package/dist/timecampus/pages/expense-tracking/ExpenseTrackingPage.js.map +1 -1
- package/dist/timecampus/pages/extend/AppletDeveloperPage.js +107 -102
- package/dist/timecampus/pages/extend/AppletDeveloperPage.js.map +1 -1
- package/dist/timecampus/pages/extend/MarketplaceCertificationPage.js +129 -124
- package/dist/timecampus/pages/extend/MarketplaceCertificationPage.js.map +1 -1
- package/dist/timecampus/pages/extend/ThirdPartyAppletsSection.js +94 -94
- package/dist/timecampus/pages/extend/ThirdPartyAppletsSection.js.map +1 -1
- package/dist/timecampus/pages/extend/TimeTriggersPage.js +97 -97
- package/dist/timecampus/pages/extend/TimeTriggersPage.js.map +1 -1
- package/dist/timecampus/pages/focus/FocusProtectionPage.js +120 -120
- package/dist/timecampus/pages/focus/FocusProtectionPage.js.map +1 -1
- package/dist/timecampus/pages/geofencing/GeofencingPage.js +343 -343
- package/dist/timecampus/pages/geofencing/GeofencingPage.js.map +1 -1
- package/dist/timecampus/pages/lifetime/LifeTimelinePage.js +25 -25
- package/dist/timecampus/pages/lifetime/LifeTimelinePage.js.map +1 -1
- package/dist/timecampus/pages/lifetime/RecommendationsPage.js +296 -296
- package/dist/timecampus/pages/lifetime/RecommendationsPage.js.map +1 -1
- package/dist/timecampus/pages/lifetime/ValuesGoalsPage.js +189 -189
- package/dist/timecampus/pages/lifetime/ValuesGoalsPage.js.map +1 -1
- package/dist/timecampus/pages/meetings/ActionItemFormModal.js +47 -46
- package/dist/timecampus/pages/meetings/ActionItemFormModal.js.map +1 -1
- package/dist/timecampus/pages/meetings/MeetingDetailPage.js +206 -206
- package/dist/timecampus/pages/meetings/MeetingDetailPage.js.map +1 -1
- package/dist/timecampus/pages/meetings/MeetingFormModal.js +72 -71
- package/dist/timecampus/pages/meetings/MeetingFormModal.js.map +1 -1
- package/dist/timecampus/pages/meetings/ParticipantFormModal.js +32 -31
- package/dist/timecampus/pages/meetings/ParticipantFormModal.js.map +1 -1
- package/dist/timecampus/pages/pomodoro/PomodoroPage.js +34 -34
- package/dist/timecampus/pages/pomodoro/PomodoroPage.js.map +1 -1
- package/dist/timecampus/pages/projects/ProjectDetailPage.js +163 -163
- package/dist/timecampus/pages/projects/ProjectDetailPage.js.map +1 -1
- package/dist/timecampus/pages/projects/ProjectsPage.js +193 -192
- package/dist/timecampus/pages/projects/ProjectsPage.js.map +1 -1
- package/dist/timecampus/pages/projects/TasksPage.js +92 -92
- package/dist/timecampus/pages/projects/TasksPage.js.map +1 -1
- package/dist/timecampus/pages/resource-planning/ResourcePlanningPage.js +60 -60
- package/dist/timecampus/pages/resource-planning/ResourcePlanningPage.js.map +1 -1
- package/dist/timecampus/pages/settings/IdleDetectionCard.js +33 -33
- package/dist/timecampus/pages/settings/IdleDetectionCard.js.map +1 -1
- package/dist/timecampus/pages/settings/PrivacySettingsPage.js +32 -32
- package/dist/timecampus/pages/settings/PrivacySettingsPage.js.map +1 -1
- package/dist/timecampus/pages/time/TimeEntriesPage.js +163 -163
- package/dist/timecampus/pages/time/TimeEntriesPage.js.map +1 -1
- package/dist/timecampus/pages/time/TimeTrackingPage.js +32 -32
- package/dist/timecampus/pages/time/TimeTrackingPage.js.map +1 -1
- package/dist/timecampus/pages/time/TimerPage.js +84 -84
- package/dist/timecampus/pages/time/TimerPage.js.map +1 -1
- package/dist/timecampus/pages/timeline/TimelinePage.js +223 -223
- package/dist/timecampus/pages/timeline/TimelinePage.js.map +1 -1
- package/dist/timecampus/shared/hooks/useConfirmedAction.d.ts +10 -0
- package/dist/timecampus/shared/hooks/useConfirmedAction.js +14 -0
- package/dist/timecampus/shared/hooks/useConfirmedAction.js.map +1 -0
- 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
|
|
5
|
-
import { Modal as
|
|
6
|
-
import { useTimeCampusNavigate as
|
|
7
|
-
import { StatusBadge as
|
|
8
|
-
import { formatCurrency as
|
|
9
|
-
import { ChartCard as
|
|
10
|
-
import { BarsChart as
|
|
11
|
-
import { ProgressMeter as
|
|
12
|
-
import { useArchiveProjectMutation as
|
|
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
|
|
15
|
-
import { useParams as
|
|
16
|
-
import { Fragment as
|
|
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
|
|
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 } =
|
|
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:
|
|
29
|
+
}), { data: A, loading: j } = ne({
|
|
30
30
|
variables: { id: T },
|
|
31
31
|
skip: !T
|
|
32
|
-
}),
|
|
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
|
-
}), [
|
|
40
|
-
|
|
41
|
-
name:
|
|
42
|
-
clientId:
|
|
43
|
-
description:
|
|
44
|
-
status:
|
|
45
|
-
estimatedHours:
|
|
46
|
-
hourlyRate:
|
|
47
|
-
}),
|
|
48
|
-
},
|
|
49
|
-
T &&
|
|
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:
|
|
53
|
-
description:
|
|
54
|
-
clientId:
|
|
55
|
-
status:
|
|
56
|
-
estimatedHours:
|
|
57
|
-
hourlyRate:
|
|
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
|
-
} }),
|
|
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 } }),
|
|
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 (
|
|
65
|
+
if (O) return /* @__PURE__ */ y(e, {
|
|
66
66
|
title: "Project Details",
|
|
67
67
|
description: `Project ID: ${T}`,
|
|
68
|
-
children: /* @__PURE__ */
|
|
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 (
|
|
73
|
+
if (D || j) return /* @__PURE__ */ y(e, {
|
|
74
74
|
title: "Project Details",
|
|
75
75
|
description: `Project ID: ${T}`,
|
|
76
|
-
children: /* @__PURE__ */
|
|
76
|
+
children: /* @__PURE__ */ y(ee, { variant: "detail" })
|
|
77
77
|
});
|
|
78
|
-
let G =
|
|
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__ */
|
|
84
|
-
title:
|
|
85
|
-
description:
|
|
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__ */
|
|
87
|
+
actions: /* @__PURE__ */ b("div", {
|
|
88
88
|
className: "flex items-center gap-2",
|
|
89
89
|
children: [
|
|
90
|
-
/* @__PURE__ */
|
|
91
|
-
onClick:
|
|
92
|
-
disabled: !
|
|
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__ */
|
|
94
|
+
children: [/* @__PURE__ */ y(h, { className: "h-4 w-4" }), "Edit"]
|
|
95
95
|
}),
|
|
96
|
-
|
|
97
|
-
onClick: () => void
|
|
98
|
-
disabled: !
|
|
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__ */
|
|
100
|
+
children: [/* @__PURE__ */ y(ie, { className: "h-4 w-4" }), U ? "Archiving…" : "Archive"]
|
|
101
101
|
}),
|
|
102
|
-
/* @__PURE__ */
|
|
103
|
-
onClick: () =>
|
|
104
|
-
disabled: !
|
|
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__ */
|
|
106
|
+
children: [/* @__PURE__ */ y(g, { className: "h-4 w-4" }), "Delete"]
|
|
107
107
|
})
|
|
108
108
|
]
|
|
109
109
|
}),
|
|
110
110
|
children: [
|
|
111
|
-
/* @__PURE__ */
|
|
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__ */
|
|
135
|
+
/* @__PURE__ */ b("div", {
|
|
136
136
|
className: "space-y-6",
|
|
137
137
|
children: [
|
|
138
|
-
/* @__PURE__ */
|
|
138
|
+
/* @__PURE__ */ b("div", {
|
|
139
139
|
className: "flex flex-wrap items-center gap-2",
|
|
140
140
|
children: [
|
|
141
|
-
|
|
142
|
-
label:
|
|
143
|
-
status:
|
|
141
|
+
M?.status && /* @__PURE__ */ y(r, {
|
|
142
|
+
label: M.status,
|
|
143
|
+
status: M.status,
|
|
144
144
|
dot: !0
|
|
145
145
|
}),
|
|
146
|
-
|
|
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__ */
|
|
148
|
+
children: [/* @__PURE__ */ y(_, { className: "h-3.5 w-3.5" }), M.clientId]
|
|
149
149
|
}),
|
|
150
|
-
|
|
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 ",
|
|
152
|
+
children: ["Started ", a(M.createdAt)]
|
|
153
153
|
})
|
|
154
154
|
]
|
|
155
155
|
}),
|
|
156
|
-
/* @__PURE__ */
|
|
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__ */
|
|
159
|
+
/* @__PURE__ */ y(t, {
|
|
160
160
|
featured: !0,
|
|
161
161
|
title: "Tracked Hours",
|
|
162
|
-
value:
|
|
163
|
-
icon: /* @__PURE__ */
|
|
162
|
+
value: o(X),
|
|
163
|
+
icon: /* @__PURE__ */ y(ae, { className: "h-5 w-5" })
|
|
164
164
|
}),
|
|
165
|
-
/* @__PURE__ */
|
|
165
|
+
/* @__PURE__ */ y(t, {
|
|
166
166
|
title: "Tasks",
|
|
167
167
|
value: `${Z} / ${Q}`,
|
|
168
|
-
icon: /* @__PURE__ */
|
|
168
|
+
icon: /* @__PURE__ */ y(_, { className: "h-5 w-5" }),
|
|
169
169
|
description: "completed / total"
|
|
170
170
|
}),
|
|
171
|
-
/* @__PURE__ */
|
|
171
|
+
/* @__PURE__ */ y(t, {
|
|
172
172
|
title: "Progress",
|
|
173
173
|
value: Q ? `${Math.round(Z / Q * 100)}%` : "0%",
|
|
174
|
-
icon: /* @__PURE__ */
|
|
174
|
+
icon: /* @__PURE__ */ y(se, { className: "h-5 w-5" })
|
|
175
175
|
}),
|
|
176
|
-
/* @__PURE__ */
|
|
176
|
+
/* @__PURE__ */ y(t, {
|
|
177
177
|
title: "Budget Used",
|
|
178
|
-
value:
|
|
179
|
-
icon: /* @__PURE__ */
|
|
180
|
-
description:
|
|
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__ */
|
|
184
|
+
/* @__PURE__ */ b("div", {
|
|
185
185
|
className: "grid grid-cols-1 gap-6 lg:grid-cols-2",
|
|
186
|
-
children: [/* @__PURE__ */
|
|
186
|
+
children: [/* @__PURE__ */ y(s, {
|
|
187
187
|
title: "Budget & effort",
|
|
188
188
|
description: "Spend and hours against the plan",
|
|
189
|
-
children: /* @__PURE__ */
|
|
189
|
+
children: /* @__PURE__ */ b("div", {
|
|
190
190
|
className: "space-y-5",
|
|
191
191
|
children: [
|
|
192
|
-
/* @__PURE__ */
|
|
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) =>
|
|
196
|
+
format: (e) => i(e, G)
|
|
197
197
|
}),
|
|
198
|
-
/* @__PURE__ */
|
|
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) =>
|
|
202
|
+
format: (e) => o(e)
|
|
203
203
|
}),
|
|
204
|
-
/* @__PURE__ */
|
|
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__ */
|
|
213
|
+
}), /* @__PURE__ */ y(s, {
|
|
214
214
|
title: "Time distribution",
|
|
215
215
|
description: "Tracked vs estimated hours by task",
|
|
216
|
-
children: /* @__PURE__ */
|
|
217
|
-
data:
|
|
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:
|
|
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__ */
|
|
234
|
+
/* @__PURE__ */ y(s, {
|
|
235
235
|
title: "Tasks",
|
|
236
236
|
description: `${Z} of ${Q} complete`,
|
|
237
|
-
actions: /* @__PURE__ */
|
|
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__ */
|
|
240
|
+
children: ["View all", /* @__PURE__ */ y(m, { className: "h-3.5 w-3.5" })]
|
|
241
241
|
}),
|
|
242
|
-
children: $.length === 0 ? /* @__PURE__ */
|
|
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__ */
|
|
245
|
+
}) : /* @__PURE__ */ y("ul", {
|
|
246
246
|
className: "divide-y divide-border-seam",
|
|
247
|
-
children: $.map((e) => /* @__PURE__ */
|
|
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__ */
|
|
249
|
+
children: [/* @__PURE__ */ b("div", {
|
|
250
250
|
className: "min-w-0",
|
|
251
|
-
children: [/* @__PURE__ */
|
|
251
|
+
children: [/* @__PURE__ */ y("p", {
|
|
252
252
|
className: "truncate text-sm font-medium text-text-primary",
|
|
253
253
|
children: e.title
|
|
254
|
-
}), /* @__PURE__ */
|
|
254
|
+
}), /* @__PURE__ */ b("p", {
|
|
255
255
|
className: "mt-0.5 text-xs text-text-secondary",
|
|
256
256
|
children: [
|
|
257
|
-
|
|
257
|
+
o(e.trackedHours),
|
|
258
258
|
" tracked",
|
|
259
|
-
e.estimatedHours ? ` / ${
|
|
260
|
-
e.dueDate ? ` · due ${
|
|
259
|
+
e.estimatedHours ? ` / ${o(e.estimatedHours)} est` : "",
|
|
260
|
+
e.dueDate ? ` · due ${a(e.dueDate)}` : ""
|
|
261
261
|
]
|
|
262
262
|
})]
|
|
263
|
-
}), /* @__PURE__ */
|
|
263
|
+
}), /* @__PURE__ */ b("div", {
|
|
264
264
|
className: "flex flex-wrap items-center gap-2",
|
|
265
|
-
children: [/* @__PURE__ */
|
|
265
|
+
children: [/* @__PURE__ */ y(r, {
|
|
266
266
|
label: e.priority,
|
|
267
267
|
priority: e.priority
|
|
268
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
279
|
-
open:
|
|
280
|
-
onClose: () =>
|
|
278
|
+
/* @__PURE__ */ b(n, {
|
|
279
|
+
open: P,
|
|
280
|
+
onClose: () => F(!1),
|
|
281
281
|
title: "Edit Project",
|
|
282
282
|
size: "xl",
|
|
283
|
-
footer: /* @__PURE__ */
|
|
284
|
-
onClick: () =>
|
|
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__ */
|
|
288
|
-
onClick:
|
|
289
|
-
disabled:
|
|
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:
|
|
291
|
+
children: V ? "Saving…" : "Save Changes"
|
|
292
292
|
})] }),
|
|
293
|
-
children: [
|
|
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__ */
|
|
296
|
+
}), /* @__PURE__ */ b("div", {
|
|
297
297
|
className: "space-y-4",
|
|
298
298
|
children: [
|
|
299
|
-
/* @__PURE__ */
|
|
299
|
+
/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("label", {
|
|
300
300
|
className: w,
|
|
301
301
|
children: "Project Name"
|
|
302
|
-
}), /* @__PURE__ */
|
|
302
|
+
}), /* @__PURE__ */ y("input", {
|
|
303
303
|
type: "text",
|
|
304
|
-
value:
|
|
305
|
-
onChange: (e) =>
|
|
306
|
-
...
|
|
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__ */
|
|
311
|
+
/* @__PURE__ */ b("div", {
|
|
312
312
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
313
|
-
children: [/* @__PURE__ */
|
|
313
|
+
children: [/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("label", {
|
|
314
314
|
className: w,
|
|
315
315
|
children: "Client"
|
|
316
|
-
}), /* @__PURE__ */
|
|
316
|
+
}), /* @__PURE__ */ y("input", {
|
|
317
317
|
type: "text",
|
|
318
|
-
value:
|
|
319
|
-
onChange: (e) =>
|
|
320
|
-
...
|
|
318
|
+
value: R.clientId,
|
|
319
|
+
onChange: (e) => z({
|
|
320
|
+
...R,
|
|
321
321
|
clientId: e.target.value
|
|
322
322
|
}),
|
|
323
323
|
className: C
|
|
324
|
-
})] }), /* @__PURE__ */
|
|
324
|
+
})] }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("label", {
|
|
325
325
|
className: w,
|
|
326
326
|
children: "Status"
|
|
327
|
-
}), /* @__PURE__ */
|
|
328
|
-
value:
|
|
329
|
-
onChange: (e) =>
|
|
330
|
-
...
|
|
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:
|
|
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__ */
|
|
340
|
+
/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("label", {
|
|
341
341
|
className: w,
|
|
342
342
|
children: "Description"
|
|
343
|
-
}), /* @__PURE__ */
|
|
343
|
+
}), /* @__PURE__ */ y("textarea", {
|
|
344
344
|
rows: 3,
|
|
345
|
-
value:
|
|
346
|
-
onChange: (e) =>
|
|
347
|
-
...
|
|
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__ */
|
|
352
|
+
/* @__PURE__ */ b("div", {
|
|
353
353
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
354
|
-
children: [/* @__PURE__ */
|
|
354
|
+
children: [/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("label", {
|
|
355
355
|
className: w,
|
|
356
356
|
children: "Estimated Hours"
|
|
357
|
-
}), /* @__PURE__ */
|
|
357
|
+
}), /* @__PURE__ */ y("input", {
|
|
358
358
|
type: "number",
|
|
359
|
-
value:
|
|
360
|
-
onChange: (e) =>
|
|
361
|
-
...
|
|
359
|
+
value: R.estimatedHours,
|
|
360
|
+
onChange: (e) => z({
|
|
361
|
+
...R,
|
|
362
362
|
estimatedHours: e.target.value
|
|
363
363
|
}),
|
|
364
364
|
className: C
|
|
365
|
-
})] }), /* @__PURE__ */
|
|
365
|
+
})] }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("label", {
|
|
366
366
|
className: w,
|
|
367
367
|
children: "Hourly Rate"
|
|
368
|
-
}), /* @__PURE__ */
|
|
368
|
+
}), /* @__PURE__ */ y("input", {
|
|
369
369
|
type: "number",
|
|
370
|
-
value:
|
|
371
|
-
onChange: (e) =>
|
|
372
|
-
...
|
|
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__ */
|
|
382
|
-
open:
|
|
383
|
-
onClose: () =>
|
|
381
|
+
/* @__PURE__ */ b(n, {
|
|
382
|
+
open: I,
|
|
383
|
+
onClose: () => L(!1),
|
|
384
384
|
title: "Delete Project",
|
|
385
385
|
size: "sm",
|
|
386
|
-
footer: /* @__PURE__ */
|
|
387
|
-
onClick: () =>
|
|
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__ */
|
|
391
|
-
onClick:
|
|
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: [
|
|
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__ */
|
|
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__ */
|
|
404
|
+
/* @__PURE__ */ y("span", {
|
|
405
405
|
className: "font-semibold text-text-primary",
|
|
406
|
-
children:
|
|
406
|
+
children: M?.name
|
|
407
407
|
}),
|
|
408
408
|
"? This action cannot be undone."
|
|
409
409
|
]
|