@burdenoff/microfe-timecampus 2026.1206.1 → 2026.1206.2
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/DateFields.d.ts +53 -0
- package/dist/timecampus/components/DateFields.js +87 -0
- package/dist/timecampus/components/DateFields.js.map +1 -0
- package/dist/timecampus/components/dateFieldValues.d.ts +39 -0
- package/dist/timecampus/components/dateFieldValues.js +49 -0
- package/dist/timecampus/components/dateFieldValues.js.map +1 -0
- package/dist/timecampus/pages/email-tracking/EmailTrackingPage.js +112 -111
- package/dist/timecampus/pages/email-tracking/EmailTrackingPage.js.map +1 -1
- package/dist/timecampus/pages/expense-tracking/ExpenseTrackingPage.js +65 -65
- package/dist/timecampus/pages/expense-tracking/ExpenseTrackingPage.js.map +1 -1
- package/dist/timecampus/pages/focus/FocusProtectionPage.js +250 -253
- package/dist/timecampus/pages/focus/FocusProtectionPage.js.map +1 -1
- package/dist/timecampus/pages/invoicing/InvoicingPage.js +259 -258
- package/dist/timecampus/pages/invoicing/InvoicingPage.js.map +1 -1
- package/dist/timecampus/pages/lifetime/FiniteLifePage.js +103 -103
- package/dist/timecampus/pages/lifetime/FiniteLifePage.js.map +1 -1
- package/dist/timecampus/pages/lifetime/LifeTimelinePage.js +38 -38
- package/dist/timecampus/pages/lifetime/LifeTimelinePage.js.map +1 -1
- package/dist/timecampus/pages/location-tracking/LocationTrackingPage.js +218 -216
- package/dist/timecampus/pages/location-tracking/LocationTrackingPage.js.map +1 -1
- package/dist/timecampus/pages/meetings/ActionItemFormModal.js +64 -63
- package/dist/timecampus/pages/meetings/ActionItemFormModal.js.map +1 -1
- package/dist/timecampus/pages/meetings/MeetingCreatePage.js +54 -54
- package/dist/timecampus/pages/meetings/MeetingCreatePage.js.map +1 -1
- package/dist/timecampus/pages/meetings/MeetingFormModal.js +98 -96
- package/dist/timecampus/pages/meetings/MeetingFormModal.js.map +1 -1
- package/dist/timecampus/pages/pomodoro/PomodoroPage.js +150 -149
- package/dist/timecampus/pages/pomodoro/PomodoroPage.js.map +1 -1
- package/dist/timecampus/pages/projects/TasksPage.js +183 -182
- package/dist/timecampus/pages/projects/TasksPage.js.map +1 -1
- package/dist/timecampus/pages/resource-planning/ResourcePlanningPage.js +346 -351
- package/dist/timecampus/pages/resource-planning/ResourcePlanningPage.js.map +1 -1
- package/dist/timecampus/pages/time/TimeEntriesPage.js +129 -127
- package/dist/timecampus/pages/time/TimeEntriesPage.js.map +1 -1
- package/dist/timecampus/pages/time-approval/SubmitTimesheetModal.js +46 -47
- package/dist/timecampus/pages/time-approval/SubmitTimesheetModal.js.map +1 -1
- package/dist/timecampus/pages/timeline/TimelinePage.js +231 -231
- package/dist/timecampus/pages/timeline/TimelinePage.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,143 +5,144 @@ import { Modal as r } from "../../components/Modal.js";
|
|
|
5
5
|
import { formatRelativeTime as i, getInitials as a, getPriorityColor as o, getStatusColor as s } from "../../utils/helpers.js";
|
|
6
6
|
import { useTimeCampus as c } from "../../providers/TimeCampusProvider.js";
|
|
7
7
|
import { useCreateEmailTimeEntryMutation as l, useDeleteEmailTimeEntryMutation as u, useListEmailTimeEntriesQuery as d, useUpdateEmailTimeEntryMutation as f } from "../../../generated/wspace-operations.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
8
|
+
import { DateTimeField as p } from "../../components/DateFields.js";
|
|
9
|
+
import { useState as m } from "react";
|
|
10
|
+
import { Filter as h, Mail as g, Pencil as _, Plus as v, Trash2 as y } from "lucide-react";
|
|
11
|
+
import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
12
|
+
import { GlassCard as C } from "@burdenoff/fe-libs/ui";
|
|
12
13
|
// src/timecampus/pages/email-tracking/EmailTrackingPage.tsx
|
|
13
|
-
var
|
|
14
|
+
var w = 25, T = {
|
|
14
15
|
success: "bg-status-success-bgSubtle text-status-success-text",
|
|
15
16
|
warning: "bg-status-warning-bgSubtle text-status-warning-text",
|
|
16
17
|
error: "bg-status-error-bgSubtle text-status-error-text",
|
|
17
18
|
info: "bg-status-info-bgSubtle text-status-info-text",
|
|
18
19
|
default: "bg-bg-sunken text-text-secondary",
|
|
19
20
|
muted: "bg-bg-sunken text-text-secondary"
|
|
20
|
-
},
|
|
21
|
-
function
|
|
21
|
+
}, E = "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", D = "block text-sm font-medium text-text-primary";
|
|
22
|
+
function O(e) {
|
|
22
23
|
let t = new Date(e);
|
|
23
24
|
return Number.isNaN(t.getTime()) ? "" : (/* @__PURE__ */ new Date(t.getTime() - t.getTimezoneOffset() * 6e4)).toISOString().slice(0, 16);
|
|
24
25
|
}
|
|
25
|
-
function
|
|
26
|
+
function k() {
|
|
26
27
|
let e = /* @__PURE__ */ new Date();
|
|
27
28
|
return (/* @__PURE__ */ new Date(e.getTime() - e.getTimezoneOffset() * 6e4)).toISOString().slice(0, 16);
|
|
28
29
|
}
|
|
29
|
-
function
|
|
30
|
+
function A(e) {
|
|
30
31
|
return {
|
|
31
32
|
subject: e?.subject ?? "",
|
|
32
33
|
sender: e?.sender ?? "",
|
|
33
34
|
recipients: e?.recipients ?? "",
|
|
34
35
|
category: e?.category ?? "",
|
|
35
|
-
date: e?.date ?
|
|
36
|
+
date: e?.date ? O(e.date) : k(),
|
|
36
37
|
duration: e?.duration == null ? "" : String(e.duration),
|
|
37
38
|
responseTime: e?.responseTime == null ? "" : String(e.responseTime),
|
|
38
39
|
isImportant: e?.isImportant ?? !1,
|
|
39
40
|
threadId: e?.threadId ?? ""
|
|
40
41
|
};
|
|
41
42
|
}
|
|
42
|
-
function
|
|
43
|
+
function j({ value: e, onChange: t }) {
|
|
43
44
|
let n = (n, r) => t({
|
|
44
45
|
...e,
|
|
45
46
|
[n]: r
|
|
46
47
|
});
|
|
47
|
-
return /* @__PURE__ */
|
|
48
|
+
return /* @__PURE__ */ S("div", {
|
|
48
49
|
className: "space-y-4",
|
|
49
50
|
children: [
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
className:
|
|
51
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
52
|
+
className: D,
|
|
52
53
|
children: "Subject"
|
|
53
|
-
}), /* @__PURE__ */
|
|
54
|
+
}), /* @__PURE__ */ x("input", {
|
|
54
55
|
type: "text",
|
|
55
56
|
placeholder: "Email subject",
|
|
56
57
|
value: e.subject,
|
|
57
58
|
onChange: (e) => n("subject", e.target.value),
|
|
58
|
-
className:
|
|
59
|
+
className: E
|
|
59
60
|
})] }),
|
|
60
|
-
/* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ S("div", {
|
|
61
62
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
62
|
-
children: [/* @__PURE__ */
|
|
63
|
-
className:
|
|
63
|
+
children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
64
|
+
className: D,
|
|
64
65
|
children: "Sender"
|
|
65
|
-
}), /* @__PURE__ */
|
|
66
|
+
}), /* @__PURE__ */ x("input", {
|
|
66
67
|
type: "text",
|
|
67
68
|
placeholder: "sender@example.com",
|
|
68
69
|
value: e.sender,
|
|
69
70
|
onChange: (e) => n("sender", e.target.value),
|
|
70
|
-
className:
|
|
71
|
-
})] }), /* @__PURE__ */
|
|
72
|
-
className:
|
|
71
|
+
className: E
|
|
72
|
+
})] }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
73
|
+
className: D,
|
|
73
74
|
children: "Recipients"
|
|
74
|
-
}), /* @__PURE__ */
|
|
75
|
+
}), /* @__PURE__ */ x("input", {
|
|
75
76
|
type: "text",
|
|
76
77
|
placeholder: "recipient@example.com",
|
|
77
78
|
value: e.recipients,
|
|
78
79
|
onChange: (e) => n("recipients", e.target.value),
|
|
79
|
-
className:
|
|
80
|
+
className: E
|
|
80
81
|
})] })]
|
|
81
82
|
}),
|
|
82
|
-
/* @__PURE__ */
|
|
83
|
+
/* @__PURE__ */ S("div", {
|
|
83
84
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
84
|
-
children: [/* @__PURE__ */
|
|
85
|
-
className:
|
|
85
|
+
children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
86
|
+
className: D,
|
|
86
87
|
children: "Category"
|
|
87
|
-
}), /* @__PURE__ */
|
|
88
|
+
}), /* @__PURE__ */ x("input", {
|
|
88
89
|
type: "text",
|
|
89
90
|
placeholder: "e.g. work, newsletter",
|
|
90
91
|
value: e.category,
|
|
91
92
|
onChange: (e) => n("category", e.target.value),
|
|
92
|
-
className:
|
|
93
|
-
})] }), /* @__PURE__ */
|
|
94
|
-
className:
|
|
93
|
+
className: E
|
|
94
|
+
})] }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
95
|
+
className: D,
|
|
95
96
|
children: "Date & Time"
|
|
96
|
-
}), /* @__PURE__ */
|
|
97
|
-
type: "datetime-local",
|
|
97
|
+
}), /* @__PURE__ */ x(p, {
|
|
98
98
|
value: e.date,
|
|
99
|
-
onChange: (e) => n("date", e
|
|
100
|
-
|
|
99
|
+
onChange: (e) => n("date", e),
|
|
100
|
+
label: "Date and time",
|
|
101
|
+
step: 5
|
|
101
102
|
})] })]
|
|
102
103
|
}),
|
|
103
|
-
/* @__PURE__ */
|
|
104
|
+
/* @__PURE__ */ S("div", {
|
|
104
105
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
105
|
-
children: [/* @__PURE__ */
|
|
106
|
-
className:
|
|
106
|
+
children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
107
|
+
className: D,
|
|
107
108
|
children: "Duration (minutes)"
|
|
108
|
-
}), /* @__PURE__ */
|
|
109
|
+
}), /* @__PURE__ */ x("input", {
|
|
109
110
|
type: "number",
|
|
110
111
|
min: "0",
|
|
111
112
|
placeholder: "0",
|
|
112
113
|
value: e.duration,
|
|
113
114
|
onChange: (e) => n("duration", e.target.value),
|
|
114
|
-
className:
|
|
115
|
-
})] }), /* @__PURE__ */
|
|
116
|
-
className:
|
|
115
|
+
className: E
|
|
116
|
+
})] }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
117
|
+
className: D,
|
|
117
118
|
children: "Response Time (minutes)"
|
|
118
|
-
}), /* @__PURE__ */
|
|
119
|
+
}), /* @__PURE__ */ x("input", {
|
|
119
120
|
type: "number",
|
|
120
121
|
min: "0",
|
|
121
122
|
placeholder: "0",
|
|
122
123
|
value: e.responseTime,
|
|
123
124
|
onChange: (e) => n("responseTime", e.target.value),
|
|
124
|
-
className:
|
|
125
|
+
className: E
|
|
125
126
|
})] })]
|
|
126
127
|
}),
|
|
127
|
-
/* @__PURE__ */
|
|
128
|
-
className:
|
|
128
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
129
|
+
className: D,
|
|
129
130
|
children: "Thread ID"
|
|
130
|
-
}), /* @__PURE__ */
|
|
131
|
+
}), /* @__PURE__ */ x("input", {
|
|
131
132
|
type: "text",
|
|
132
133
|
placeholder: "Optional thread identifier",
|
|
133
134
|
value: e.threadId,
|
|
134
135
|
onChange: (e) => n("threadId", e.target.value),
|
|
135
|
-
className:
|
|
136
|
+
className: E
|
|
136
137
|
})] }),
|
|
137
|
-
/* @__PURE__ */
|
|
138
|
+
/* @__PURE__ */ S("label", {
|
|
138
139
|
className: "flex items-center gap-2",
|
|
139
|
-
children: [/* @__PURE__ */
|
|
140
|
+
children: [/* @__PURE__ */ x("input", {
|
|
140
141
|
type: "checkbox",
|
|
141
142
|
checked: e.isImportant,
|
|
142
143
|
onChange: (e) => n("isImportant", e.target.checked),
|
|
143
144
|
className: "h-4 w-4 rounded border-border-subtle"
|
|
144
|
-
}), /* @__PURE__ */
|
|
145
|
+
}), /* @__PURE__ */ x("span", {
|
|
145
146
|
className: "text-sm font-medium text-text-primary",
|
|
146
147
|
children: "Mark as important"
|
|
147
148
|
})]
|
|
@@ -149,18 +150,18 @@ function A({ value: e, onChange: t }) {
|
|
|
149
150
|
]
|
|
150
151
|
});
|
|
151
152
|
}
|
|
152
|
-
function
|
|
153
|
-
let { workspaceId:
|
|
153
|
+
function M() {
|
|
154
|
+
let { workspaceId: p = "" } = c(), [E, D] = m(!1), [O, k] = m(!1), { data: M, loading: ee, error: te, fetchMore: ne, refetch: N } = d({
|
|
154
155
|
variables: {
|
|
155
156
|
pagination: {
|
|
156
|
-
limit:
|
|
157
|
+
limit: w,
|
|
157
158
|
offset: 0
|
|
158
159
|
},
|
|
159
160
|
filter: E ? { isImportant: !0 } : void 0
|
|
160
161
|
},
|
|
161
|
-
skip: !
|
|
162
|
+
skip: !p,
|
|
162
163
|
notifyOnNetworkStatusChange: !0
|
|
163
|
-
}), P = M?.emailTimeEntries ?? [], F = P.length > 0 && P.length %
|
|
164
|
+
}), P = M?.emailTimeEntries ?? [], F = P.length > 0 && P.length % w === 0, [I, L] = m(!1), [R, z] = m(null), [B, V] = m(null), [H, U] = m(A()), [W, G] = m(A()), [K, { loading: q, error: J }] = l(), [Y, { loading: X, error: re }] = f(), [ie, { loading: Z, error: ae }] = u(), Q = (e) => ({
|
|
164
165
|
subject: e.subject.trim() || void 0,
|
|
165
166
|
sender: e.sender.trim() || void 0,
|
|
166
167
|
recipients: e.recipients.trim() || void 0,
|
|
@@ -171,63 +172,63 @@ function j() {
|
|
|
171
172
|
isImportant: e.isImportant,
|
|
172
173
|
threadId: e.threadId.trim() || void 0
|
|
173
174
|
}), $ = () => {
|
|
174
|
-
U(
|
|
175
|
+
U(A()), L(!0);
|
|
175
176
|
}, oe = async () => {
|
|
176
177
|
await K({ variables: { input: Q(H) } }), L(!1), await N();
|
|
177
178
|
}, se = (e) => {
|
|
178
|
-
G(
|
|
179
|
+
G(A(e)), z(e);
|
|
179
180
|
};
|
|
180
|
-
return /* @__PURE__ */
|
|
181
|
+
return /* @__PURE__ */ S(e, {
|
|
181
182
|
title: "Email Tracking",
|
|
182
183
|
description: "Track time spent on emails",
|
|
183
184
|
purpose: "Surface the hidden hours email steals from your day — every message linked to the time it took and the project it belonged to — so inbox work finally shows up in your timesheets and reports.",
|
|
184
|
-
actions: /* @__PURE__ */
|
|
185
|
+
actions: /* @__PURE__ */ S("div", {
|
|
185
186
|
className: "flex items-center gap-2",
|
|
186
|
-
children: [/* @__PURE__ */
|
|
187
|
+
children: [/* @__PURE__ */ S("button", {
|
|
187
188
|
onClick: () => D((e) => !e),
|
|
188
189
|
className: `inline-flex items-center gap-1.5 rounded-md border px-3 py-2 text-sm font-medium ${E ? "border-action-primary-bg bg-action-primary-bg/10 text-action-primary-bg" : "border-border-subtle text-text-primary hover:bg-bg-sunken/50"}`,
|
|
189
|
-
children: [/* @__PURE__ */
|
|
190
|
-
}), /* @__PURE__ */
|
|
190
|
+
children: [/* @__PURE__ */ x(h, { className: "h-4 w-4" }), E ? "Important only" : "Filter"]
|
|
191
|
+
}), /* @__PURE__ */ S("button", {
|
|
191
192
|
onClick: $,
|
|
192
193
|
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",
|
|
193
|
-
children: [/* @__PURE__ */
|
|
194
|
+
children: [/* @__PURE__ */ x(v, { className: "h-4 w-4" }), "Add Entry"]
|
|
194
195
|
})]
|
|
195
196
|
}),
|
|
196
197
|
children: [
|
|
197
|
-
ee && P.length === 0 ? /* @__PURE__ */
|
|
198
|
+
ee && P.length === 0 ? /* @__PURE__ */ x(n, {
|
|
198
199
|
variant: "list",
|
|
199
200
|
count: 4
|
|
200
|
-
}) : te ? /* @__PURE__ */
|
|
201
|
+
}) : te ? /* @__PURE__ */ x("div", {
|
|
201
202
|
className: "rounded-xl border border-status-error-border/50 bg-status-error-bg/10 p-4 text-sm text-status-error-text",
|
|
202
203
|
children: "Failed to load email entries. Please try again later."
|
|
203
|
-
}) : P.length === 0 ? /* @__PURE__ */
|
|
204
|
+
}) : P.length === 0 ? /* @__PURE__ */ x(t, {
|
|
204
205
|
illustration: "empty-notifications",
|
|
205
206
|
title: "No email entries found",
|
|
206
207
|
description: "Log the time you spend in your inbox — or connect email tracking — and entries will appear here.",
|
|
207
|
-
action: /* @__PURE__ */
|
|
208
|
+
action: /* @__PURE__ */ S("button", {
|
|
208
209
|
onClick: $,
|
|
209
210
|
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",
|
|
210
|
-
children: [/* @__PURE__ */
|
|
211
|
+
children: [/* @__PURE__ */ x(v, { className: "h-4 w-4" }), "Add Entry"]
|
|
211
212
|
})
|
|
212
|
-
}) : /* @__PURE__ */
|
|
213
|
+
}) : /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(C, {
|
|
213
214
|
treatment: "glass",
|
|
214
215
|
glow: !0,
|
|
215
216
|
className: "overflow-hidden",
|
|
216
|
-
children: /* @__PURE__ */
|
|
217
|
+
children: /* @__PURE__ */ x("div", {
|
|
217
218
|
className: "divide-y divide-border",
|
|
218
|
-
children: P.map((e) => /* @__PURE__ */
|
|
219
|
+
children: P.map((e) => /* @__PURE__ */ S("div", {
|
|
219
220
|
className: "flex items-center justify-between gap-3 p-4 transition-colors hover:bg-bg-sunken/50",
|
|
220
|
-
children: [/* @__PURE__ */
|
|
221
|
+
children: [/* @__PURE__ */ S("div", {
|
|
221
222
|
className: "flex min-w-0 items-center gap-3",
|
|
222
|
-
children: [/* @__PURE__ */
|
|
223
|
+
children: [/* @__PURE__ */ x("div", {
|
|
223
224
|
className: `relative flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-action-primary-bg/10 text-xs font-semibold text-primary ${e.isImportant ? "ring-2 ring-action-primary-bg/40" : ""}`,
|
|
224
|
-
children: e.sender ? a(e.sender) : /* @__PURE__ */
|
|
225
|
-
}), /* @__PURE__ */
|
|
225
|
+
children: e.sender ? a(e.sender) : /* @__PURE__ */ x(g, { className: "h-4 w-4" })
|
|
226
|
+
}), /* @__PURE__ */ S("div", {
|
|
226
227
|
className: "min-w-0",
|
|
227
|
-
children: [/* @__PURE__ */
|
|
228
|
+
children: [/* @__PURE__ */ x("p", {
|
|
228
229
|
className: `truncate text-sm text-text-primary ${e.isImportant ? "font-semibold" : "font-medium"}`,
|
|
229
230
|
children: e.subject ?? "(No subject)"
|
|
230
|
-
}), /* @__PURE__ */
|
|
231
|
+
}), /* @__PURE__ */ S("p", {
|
|
231
232
|
className: "truncate text-xs text-text-secondary",
|
|
232
233
|
children: [
|
|
233
234
|
e.sender ?? "Unknown",
|
|
@@ -237,10 +238,10 @@ function j() {
|
|
|
237
238
|
]
|
|
238
239
|
})]
|
|
239
240
|
})]
|
|
240
|
-
}), /* @__PURE__ */
|
|
241
|
+
}), /* @__PURE__ */ S("div", {
|
|
241
242
|
className: "flex shrink-0 items-center gap-2",
|
|
242
243
|
children: [
|
|
243
|
-
/* @__PURE__ */
|
|
244
|
+
/* @__PURE__ */ S("span", {
|
|
244
245
|
className: "hidden rounded-full bg-bg-sunken px-2 py-0.5 font-mono text-xs tabular-nums text-text-secondary md:inline-flex",
|
|
245
246
|
children: [
|
|
246
247
|
"~",
|
|
@@ -248,39 +249,39 @@ function j() {
|
|
|
248
249
|
"min"
|
|
249
250
|
]
|
|
250
251
|
}),
|
|
251
|
-
/* @__PURE__ */
|
|
252
|
-
className: `hidden rounded-full px-2 py-0.5 text-xs font-medium sm:inline-flex ${
|
|
252
|
+
/* @__PURE__ */ x("span", {
|
|
253
|
+
className: `hidden rounded-full px-2 py-0.5 text-xs font-medium sm:inline-flex ${T[o(e.isImportant ? "high" : "low")]}`,
|
|
253
254
|
children: e.isImportant ? "high" : "normal"
|
|
254
255
|
}),
|
|
255
|
-
/* @__PURE__ */
|
|
256
|
-
className: `hidden rounded-full px-2 py-0.5 text-xs font-medium sm:inline-flex ${
|
|
256
|
+
/* @__PURE__ */ x("span", {
|
|
257
|
+
className: `hidden rounded-full px-2 py-0.5 text-xs font-medium sm:inline-flex ${T[s(e.category ?? "active")]}`,
|
|
257
258
|
children: e.category ?? "uncategorized"
|
|
258
259
|
}),
|
|
259
|
-
/* @__PURE__ */
|
|
260
|
+
/* @__PURE__ */ x("button", {
|
|
260
261
|
onClick: () => se(e),
|
|
261
262
|
className: "rounded-md p-1.5 text-text-secondary hover:bg-bg-sunken hover:text-text-primary",
|
|
262
263
|
"aria-label": "Edit entry",
|
|
263
|
-
children: /* @__PURE__ */
|
|
264
|
+
children: /* @__PURE__ */ x(_, { className: "h-4 w-4" })
|
|
264
265
|
}),
|
|
265
|
-
/* @__PURE__ */
|
|
266
|
+
/* @__PURE__ */ x("button", {
|
|
266
267
|
onClick: () => V(e),
|
|
267
268
|
className: "rounded-md p-1.5 text-text-secondary hover:bg-status-error-bgSubtle hover:text-status-error-text",
|
|
268
269
|
"aria-label": "Delete entry",
|
|
269
|
-
children: /* @__PURE__ */
|
|
270
|
+
children: /* @__PURE__ */ x(y, { className: "h-4 w-4" })
|
|
270
271
|
})
|
|
271
272
|
]
|
|
272
273
|
})]
|
|
273
274
|
}, e.id))
|
|
274
275
|
})
|
|
275
|
-
}), F && /* @__PURE__ */
|
|
276
|
+
}), F && /* @__PURE__ */ x("div", {
|
|
276
277
|
className: "mt-4 flex justify-center",
|
|
277
|
-
children: /* @__PURE__ */
|
|
278
|
+
children: /* @__PURE__ */ x("button", {
|
|
278
279
|
onClick: async () => {
|
|
279
|
-
|
|
280
|
+
k(!0);
|
|
280
281
|
try {
|
|
281
282
|
await ne({
|
|
282
283
|
variables: { pagination: {
|
|
283
|
-
limit:
|
|
284
|
+
limit: w,
|
|
284
285
|
offset: P.length
|
|
285
286
|
} },
|
|
286
287
|
updateQuery: (e, { fetchMoreResult: t }) => t ? {
|
|
@@ -289,7 +290,7 @@ function j() {
|
|
|
289
290
|
} : e
|
|
290
291
|
});
|
|
291
292
|
} finally {
|
|
292
|
-
|
|
293
|
+
k(!1);
|
|
293
294
|
}
|
|
294
295
|
},
|
|
295
296
|
disabled: O,
|
|
@@ -297,41 +298,41 @@ function j() {
|
|
|
297
298
|
children: O ? "Loading..." : "Load more"
|
|
298
299
|
})
|
|
299
300
|
})] }),
|
|
300
|
-
/* @__PURE__ */
|
|
301
|
+
/* @__PURE__ */ S(r, {
|
|
301
302
|
open: I,
|
|
302
303
|
onClose: () => L(!1),
|
|
303
304
|
title: "Add Email Entry",
|
|
304
305
|
description: "Log time spent on an email",
|
|
305
306
|
size: "xl",
|
|
306
|
-
footer: /* @__PURE__ */
|
|
307
|
+
footer: /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("button", {
|
|
307
308
|
onClick: () => L(!1),
|
|
308
309
|
className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken/50",
|
|
309
310
|
children: "Cancel"
|
|
310
|
-
}), /* @__PURE__ */
|
|
311
|
+
}), /* @__PURE__ */ x("button", {
|
|
311
312
|
onClick: oe,
|
|
312
313
|
disabled: q || !H.date,
|
|
313
314
|
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",
|
|
314
315
|
children: q ? "Saving..." : "Add Entry"
|
|
315
316
|
})] }),
|
|
316
|
-
children: [J && /* @__PURE__ */
|
|
317
|
+
children: [J && /* @__PURE__ */ x("div", {
|
|
317
318
|
className: "mb-4 rounded-lg border border-status-error-border bg-status-error-bgSubtle p-3 text-sm text-status-error-text",
|
|
318
319
|
children: "Failed to add entry. Please try again."
|
|
319
|
-
}), /* @__PURE__ */
|
|
320
|
+
}), /* @__PURE__ */ x(j, {
|
|
320
321
|
value: H,
|
|
321
322
|
onChange: U
|
|
322
323
|
})]
|
|
323
324
|
}),
|
|
324
|
-
/* @__PURE__ */
|
|
325
|
+
/* @__PURE__ */ S(r, {
|
|
325
326
|
open: R !== null,
|
|
326
327
|
onClose: () => z(null),
|
|
327
328
|
title: "Edit Email Entry",
|
|
328
329
|
description: "Update this email time entry",
|
|
329
330
|
size: "xl",
|
|
330
|
-
footer: /* @__PURE__ */
|
|
331
|
+
footer: /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("button", {
|
|
331
332
|
onClick: () => z(null),
|
|
332
333
|
className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken/50",
|
|
333
334
|
children: "Cancel"
|
|
334
|
-
}), /* @__PURE__ */
|
|
335
|
+
}), /* @__PURE__ */ x("button", {
|
|
335
336
|
onClick: async () => {
|
|
336
337
|
R && (await Y({ variables: {
|
|
337
338
|
id: R.id,
|
|
@@ -342,24 +343,24 @@ function j() {
|
|
|
342
343
|
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",
|
|
343
344
|
children: X ? "Saving..." : "Save Changes"
|
|
344
345
|
})] }),
|
|
345
|
-
children: [re && /* @__PURE__ */
|
|
346
|
+
children: [re && /* @__PURE__ */ x("div", {
|
|
346
347
|
className: "mb-4 rounded-lg border border-status-error-border bg-status-error-bgSubtle p-3 text-sm text-status-error-text",
|
|
347
348
|
children: "Failed to update entry. Please try again."
|
|
348
|
-
}), /* @__PURE__ */
|
|
349
|
+
}), /* @__PURE__ */ x(j, {
|
|
349
350
|
value: W,
|
|
350
351
|
onChange: G
|
|
351
352
|
})]
|
|
352
353
|
}),
|
|
353
|
-
/* @__PURE__ */
|
|
354
|
+
/* @__PURE__ */ S(r, {
|
|
354
355
|
open: B !== null,
|
|
355
356
|
onClose: () => V(null),
|
|
356
357
|
title: "Delete Email Entry",
|
|
357
358
|
size: "sm",
|
|
358
|
-
footer: /* @__PURE__ */
|
|
359
|
+
footer: /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("button", {
|
|
359
360
|
onClick: () => V(null),
|
|
360
361
|
className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken/50",
|
|
361
362
|
children: "Cancel"
|
|
362
|
-
}), /* @__PURE__ */
|
|
363
|
+
}), /* @__PURE__ */ x("button", {
|
|
363
364
|
onClick: async () => {
|
|
364
365
|
B && (await ie({ variables: { id: B.id } }), V(null), await N());
|
|
365
366
|
},
|
|
@@ -367,15 +368,15 @@ function j() {
|
|
|
367
368
|
className: "rounded-md bg-status-error-bgSubtle px-4 py-2 text-sm font-medium text-status-error-text hover:bg-status-error-bgSubtle/70 disabled:opacity-50",
|
|
368
369
|
children: Z ? "Deleting..." : "Delete"
|
|
369
370
|
})] }),
|
|
370
|
-
children: [ae && /* @__PURE__ */
|
|
371
|
+
children: [ae && /* @__PURE__ */ x("div", {
|
|
371
372
|
className: "mb-4 rounded-lg border border-status-error-border bg-status-error-bgSubtle p-3 text-sm text-status-error-text",
|
|
372
373
|
children: "Failed to delete entry. Please try again."
|
|
373
|
-
}), /* @__PURE__ */
|
|
374
|
+
}), /* @__PURE__ */ S("p", {
|
|
374
375
|
className: "text-sm text-text-secondary",
|
|
375
376
|
children: [
|
|
376
377
|
"Are you sure you want to delete the entry",
|
|
377
378
|
" ",
|
|
378
|
-
/* @__PURE__ */
|
|
379
|
+
/* @__PURE__ */ S("span", {
|
|
379
380
|
className: "font-medium text-text-primary",
|
|
380
381
|
children: [
|
|
381
382
|
"“",
|
|
@@ -390,6 +391,6 @@ function j() {
|
|
|
390
391
|
]
|
|
391
392
|
});
|
|
392
393
|
}
|
|
393
|
-
export {
|
|
394
|
+
export { M as EmailTrackingPage };
|
|
394
395
|
|
|
395
396
|
//# sourceMappingURL=EmailTrackingPage.js.map
|