@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
|
@@ -4,184 +4,184 @@ import { StatusBadge as ee } from "../../components/StatusBadge.js";
|
|
|
4
4
|
import { EmptyState as n } from "../../components/EmptyState.js";
|
|
5
5
|
import { LoadingSkeleton as te } from "../../components/LoadingSkeleton.js";
|
|
6
6
|
import { Modal as r } from "../../components/Modal.js";
|
|
7
|
-
import { cn as ne, formatCurrency as
|
|
8
|
-
import { useTimeCampus as
|
|
9
|
-
import { useAddParticipantMutation as
|
|
10
|
-
import { MeetingActionItemStatus as
|
|
11
|
-
import { MeetingFormModal as
|
|
12
|
-
import { ParticipantFormModal as
|
|
13
|
-
import { ActionItemFormModal as
|
|
14
|
-
import { useState as
|
|
15
|
-
import { CalendarDays as
|
|
16
|
-
import { Link as
|
|
17
|
-
import { Fragment as
|
|
18
|
-
import { NextSteps as
|
|
7
|
+
import { cn as ne, formatCurrency as re } from "../../utils/helpers.js";
|
|
8
|
+
import { useTimeCampus as ie, useTimeCampusNavigate as i } from "../../providers/TimeCampusProvider.js";
|
|
9
|
+
import { useAddParticipantMutation as a, useCompleteActionItemMutation as o, useCreateActionItemMutation as s, useDeleteActionItemMutation as c, useDeleteMeetingMutation as l, useGetMeetingQuery as u, useRateMeetingMutation as d, useRemoveParticipantMutation as f, useUpdateActionItemMutation as p, useUpdateMeetingMutation as ae, useUpdateParticipantStatusMutation as oe } from "../../../generated/wspace-operations.js";
|
|
10
|
+
import { MeetingActionItemStatus as m, MeetingParticipantStatus as h } from "../../../generated/wspace-types.js";
|
|
11
|
+
import { MeetingFormModal as se } from "./MeetingFormModal.js";
|
|
12
|
+
import { ParticipantFormModal as ce } from "./ParticipantFormModal.js";
|
|
13
|
+
import { ActionItemFormModal as le } from "./ActionItemFormModal.js";
|
|
14
|
+
import { useState as g } from "react";
|
|
15
|
+
import { CalendarDays as ue, Check as de, Clock as fe, Pencil as _, Plus as v, Star as y, Trash2 as b, UserMinus as x, Users as S } from "lucide-react";
|
|
16
|
+
import { Link as C, useParams as w } from "react-router";
|
|
17
|
+
import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
18
|
+
import { NextSteps as O, ThemedSelect as k } from "@burdenoff/fe-libs/ui";
|
|
19
19
|
// src/timecampus/pages/meetings/MeetingDetailPage.tsx
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
],
|
|
26
|
-
[
|
|
27
|
-
[
|
|
28
|
-
[
|
|
29
|
-
[
|
|
20
|
+
var A = [
|
|
21
|
+
h.Pending,
|
|
22
|
+
h.Accepted,
|
|
23
|
+
h.Tentative,
|
|
24
|
+
h.Declined
|
|
25
|
+
], j = {
|
|
26
|
+
[m.Completed]: "success",
|
|
27
|
+
[m.InProgress]: "info",
|
|
28
|
+
[m.Pending]: "warning",
|
|
29
|
+
[m.Cancelled]: "muted"
|
|
30
30
|
};
|
|
31
|
-
function
|
|
31
|
+
function M(e) {
|
|
32
32
|
return e.replace(/[^a-zA-Z0-9]/g, "").slice(0, 2).toUpperCase() || "?";
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function N(e) {
|
|
35
35
|
let t = e.replace(/_/g, " ").toLowerCase();
|
|
36
36
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
let { id:
|
|
38
|
+
function P() {
|
|
39
|
+
let { id: h } = w(), { workspaceId: P = "", currentUser: F } = ie(), I = i(), L = h ?? "", { data: R, loading: z, error: B, refetch: V } = u({
|
|
40
40
|
variables: {
|
|
41
|
-
id:
|
|
42
|
-
workspaceId:
|
|
41
|
+
id: L,
|
|
42
|
+
workspaceId: P
|
|
43
43
|
},
|
|
44
|
-
skip: !
|
|
45
|
-
}), [
|
|
46
|
-
if (
|
|
44
|
+
skip: !P || !h
|
|
45
|
+
}), [pe, { loading: me, error: he }] = ae(), [ge, { loading: H }] = l(), [_e, { loading: ve }] = d(), [ye, { loading: be, error: xe }] = a(), [Se] = f(), [Ce] = oe(), [we, { loading: Te, error: Ee }] = s(), [De, { loading: Oe, error: ke }] = p(), [Ae] = o(), [je] = c(), [Me, U] = g(!1), [Ne, W] = g(!1), [Pe, G] = g(!1), [K, q] = g(null), [J, Y] = g(null), [X, Z] = g(null), Q = R?.meeting;
|
|
46
|
+
if (z) return /* @__PURE__ */ E(e, {
|
|
47
47
|
title: "Meeting Details",
|
|
48
|
-
description: `Meeting ID: ${
|
|
49
|
-
children: /* @__PURE__ */
|
|
48
|
+
description: `Meeting ID: ${h}`,
|
|
49
|
+
children: /* @__PURE__ */ E(te, { variant: "detail" })
|
|
50
50
|
});
|
|
51
|
-
if (
|
|
51
|
+
if (B || !Q) return /* @__PURE__ */ E(e, {
|
|
52
52
|
title: "Meeting Details",
|
|
53
|
-
description: `Meeting ID: ${
|
|
54
|
-
children: /* @__PURE__ */
|
|
53
|
+
description: `Meeting ID: ${h}`,
|
|
54
|
+
children: /* @__PURE__ */ E("div", {
|
|
55
55
|
className: "rounded-lg border border-status-error-bg/40 bg-status-error-bg p-4 text-sm text-status-error-text",
|
|
56
|
-
children:
|
|
56
|
+
children: B ? "Failed to load meeting details. Please try again later." : "Meeting not found."
|
|
57
57
|
})
|
|
58
58
|
});
|
|
59
|
-
let Fe =
|
|
60
|
-
await
|
|
61
|
-
id:
|
|
62
|
-
workspaceId:
|
|
59
|
+
let Fe = Q.actionItems.filter((e) => e.status !== "COMPLETED").length, $ = Q.rating ?? 0, Ie = async (e) => {
|
|
60
|
+
await pe({ variables: {
|
|
61
|
+
id: L,
|
|
62
|
+
workspaceId: P,
|
|
63
63
|
input: e
|
|
64
|
-
} }), await
|
|
64
|
+
} }), await V(), U(!1);
|
|
65
65
|
}, Le = async () => {
|
|
66
66
|
await ge({ variables: {
|
|
67
|
-
id:
|
|
68
|
-
workspaceId:
|
|
69
|
-
} }),
|
|
67
|
+
id: L,
|
|
68
|
+
workspaceId: P
|
|
69
|
+
} }), W(!1), I("/meetings");
|
|
70
70
|
}, Re = async (e) => {
|
|
71
71
|
await _e({ variables: {
|
|
72
|
-
id:
|
|
73
|
-
workspaceId:
|
|
72
|
+
id: L,
|
|
73
|
+
workspaceId: P,
|
|
74
74
|
rating: e
|
|
75
|
-
} }), await
|
|
75
|
+
} }), await V();
|
|
76
76
|
}, ze = async (e) => {
|
|
77
77
|
await ye({ variables: {
|
|
78
|
-
meetingId:
|
|
79
|
-
workspaceId:
|
|
78
|
+
meetingId: L,
|
|
79
|
+
workspaceId: P,
|
|
80
80
|
input: e
|
|
81
|
-
} }), await
|
|
82
|
-
},
|
|
83
|
-
|
|
84
|
-
meetingId:
|
|
85
|
-
participantId:
|
|
86
|
-
workspaceId:
|
|
87
|
-
} }),
|
|
88
|
-
},
|
|
81
|
+
} }), await V(), G(!1);
|
|
82
|
+
}, Be = async () => {
|
|
83
|
+
K && (await Se({ variables: {
|
|
84
|
+
meetingId: L,
|
|
85
|
+
participantId: K.id,
|
|
86
|
+
workspaceId: P
|
|
87
|
+
} }), q(null), await V());
|
|
88
|
+
}, Ve = async (e, t) => {
|
|
89
89
|
await Ce({ variables: {
|
|
90
|
-
meetingId:
|
|
90
|
+
meetingId: L,
|
|
91
91
|
participantId: e,
|
|
92
|
-
workspaceId:
|
|
92
|
+
workspaceId: P,
|
|
93
93
|
status: t
|
|
94
|
-
} }), await
|
|
95
|
-
},
|
|
94
|
+
} }), await V();
|
|
95
|
+
}, He = async (e) => {
|
|
96
96
|
await we({ variables: {
|
|
97
|
-
meetingId:
|
|
98
|
-
workspaceId:
|
|
97
|
+
meetingId: L,
|
|
98
|
+
workspaceId: P,
|
|
99
99
|
input: e
|
|
100
|
-
} }), await
|
|
101
|
-
},
|
|
100
|
+
} }), await V(), Y(null);
|
|
101
|
+
}, Ue = async (e, t) => {
|
|
102
102
|
await De({ variables: {
|
|
103
103
|
id: e,
|
|
104
|
-
workspaceId:
|
|
104
|
+
workspaceId: P,
|
|
105
105
|
input: t
|
|
106
|
-
} }), await
|
|
107
|
-
},
|
|
106
|
+
} }), await V(), Y(null);
|
|
107
|
+
}, We = async (e) => {
|
|
108
108
|
await Ae({ variables: {
|
|
109
109
|
id: e,
|
|
110
|
-
workspaceId:
|
|
111
|
-
} }), await
|
|
110
|
+
workspaceId: P
|
|
111
|
+
} }), await V();
|
|
112
112
|
};
|
|
113
|
-
return /* @__PURE__ */
|
|
113
|
+
return /* @__PURE__ */ D(e, {
|
|
114
114
|
title: "Meeting Details",
|
|
115
|
-
description:
|
|
115
|
+
description: Q.title,
|
|
116
116
|
purpose: "The full record of one meeting — who attended, what it cost in people's time, and the action items it produced — so you can follow up on commitments and judge whether the meeting was worth it.",
|
|
117
|
-
actions: /* @__PURE__ */
|
|
118
|
-
onClick: () => H(!0),
|
|
119
|
-
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",
|
|
120
|
-
children: [/* @__PURE__ */ T(g, { className: "h-4 w-4" }), "Edit"]
|
|
121
|
-
}), /* @__PURE__ */ E("button", {
|
|
117
|
+
actions: /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ D("button", {
|
|
122
118
|
onClick: () => U(!0),
|
|
119
|
+
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",
|
|
120
|
+
children: [/* @__PURE__ */ E(_, { className: "h-4 w-4" }), "Edit"]
|
|
121
|
+
}), /* @__PURE__ */ D("button", {
|
|
122
|
+
onClick: () => W(!0),
|
|
123
123
|
className: "inline-flex items-center gap-1.5 rounded-md border border-border-subtle px-3 py-2 text-sm font-medium text-status-error-text hover:bg-status-error-bg/40",
|
|
124
|
-
children: [/* @__PURE__ */
|
|
124
|
+
children: [/* @__PURE__ */ E(b, { className: "h-4 w-4" }), "Delete"]
|
|
125
125
|
})] }),
|
|
126
126
|
children: [
|
|
127
|
-
/* @__PURE__ */
|
|
127
|
+
/* @__PURE__ */ E(O, {
|
|
128
128
|
storageKey: "timecampus-meeting-detail",
|
|
129
129
|
className: "mb-6",
|
|
130
130
|
steps: [{
|
|
131
131
|
id: "all-meetings",
|
|
132
132
|
label: "Back to all meetings",
|
|
133
133
|
description: "Browse and schedule other meetings.",
|
|
134
|
-
onClick: () =>
|
|
134
|
+
onClick: () => I("/meetings")
|
|
135
135
|
}, {
|
|
136
136
|
id: "analytics",
|
|
137
137
|
label: "See meeting analytics",
|
|
138
138
|
description: "Understand your overall meeting load and cost.",
|
|
139
|
-
onClick: () =>
|
|
139
|
+
onClick: () => I("/meetings/analytics")
|
|
140
140
|
}]
|
|
141
141
|
}),
|
|
142
|
-
/* @__PURE__ */
|
|
142
|
+
/* @__PURE__ */ D("div", {
|
|
143
143
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
|
|
144
144
|
children: [
|
|
145
|
-
/* @__PURE__ */
|
|
145
|
+
/* @__PURE__ */ E(t, {
|
|
146
146
|
featured: !0,
|
|
147
147
|
title: "Duration",
|
|
148
|
-
value: `${
|
|
149
|
-
icon: /* @__PURE__ */
|
|
148
|
+
value: `${Q.duration ?? 0} min`,
|
|
149
|
+
icon: /* @__PURE__ */ E(fe, { className: "h-5 w-5" })
|
|
150
150
|
}),
|
|
151
|
-
/* @__PURE__ */
|
|
151
|
+
/* @__PURE__ */ E(t, {
|
|
152
152
|
title: "Participants",
|
|
153
|
-
value: String(
|
|
154
|
-
icon: /* @__PURE__ */
|
|
153
|
+
value: String(Q.participants.length),
|
|
154
|
+
icon: /* @__PURE__ */ E(S, { className: "h-5 w-5" })
|
|
155
155
|
}),
|
|
156
|
-
/* @__PURE__ */
|
|
156
|
+
/* @__PURE__ */ E(t, {
|
|
157
157
|
title: "Cost",
|
|
158
|
-
value:
|
|
158
|
+
value: Q.cost == null ? "N/A" : re(Q.cost),
|
|
159
159
|
description: "Based on participant rates"
|
|
160
160
|
}),
|
|
161
|
-
/* @__PURE__ */
|
|
161
|
+
/* @__PURE__ */ E(t, {
|
|
162
162
|
title: "Action Items",
|
|
163
|
-
value: String(
|
|
163
|
+
value: String(Q.actionItems.length),
|
|
164
164
|
description: `${Fe} pending`
|
|
165
165
|
})
|
|
166
166
|
]
|
|
167
167
|
}),
|
|
168
|
-
|
|
169
|
-
to: `/calendar/event/${
|
|
168
|
+
Q.calendarEventId && /* @__PURE__ */ D(C, {
|
|
169
|
+
to: `/calendar/event/${Q.calendarEventId}`,
|
|
170
170
|
className: "inline-flex w-fit items-center gap-1.5 rounded-full border border-border-subtle bg-bg-surface px-3 py-1.5 text-xs font-medium text-text-secondary hover:bg-bg-sunken/50 hover:text-text-primary",
|
|
171
|
-
children: [/* @__PURE__ */
|
|
171
|
+
children: [/* @__PURE__ */ E(ue, { className: "h-3.5 w-3.5" }), "View in Calendar"]
|
|
172
172
|
}),
|
|
173
|
-
/* @__PURE__ */
|
|
173
|
+
/* @__PURE__ */ D("div", {
|
|
174
174
|
className: "rounded-xl border border-border-seam bg-gloss-card shadow-pop p-6",
|
|
175
175
|
children: [
|
|
176
|
-
/* @__PURE__ */
|
|
176
|
+
/* @__PURE__ */ E("h3", {
|
|
177
177
|
className: "mb-1 text-sm font-semibold text-text-primary",
|
|
178
178
|
children: "Rate this meeting"
|
|
179
179
|
}),
|
|
180
|
-
/* @__PURE__ */
|
|
180
|
+
/* @__PURE__ */ E("p", {
|
|
181
181
|
className: "mb-3 text-xs text-text-secondary",
|
|
182
182
|
children: "Was it worth the time? Your rating feeds meeting analytics."
|
|
183
183
|
}),
|
|
184
|
-
/* @__PURE__ */
|
|
184
|
+
/* @__PURE__ */ D("div", {
|
|
185
185
|
className: "flex items-center gap-1",
|
|
186
186
|
children: [[
|
|
187
187
|
1,
|
|
@@ -189,258 +189,258 @@ function M() {
|
|
|
189
189
|
3,
|
|
190
190
|
4,
|
|
191
191
|
5
|
|
192
|
-
].map((e) => /* @__PURE__ */
|
|
192
|
+
].map((e) => /* @__PURE__ */ E("button", {
|
|
193
193
|
onClick: () => Re(e),
|
|
194
194
|
disabled: ve,
|
|
195
195
|
"aria-label": `Rate ${e} star${e > 1 ? "s" : ""}`,
|
|
196
196
|
className: "rounded-md p-1 text-text-secondary hover:bg-bg-sunken disabled:opacity-50",
|
|
197
|
-
children: /* @__PURE__ */
|
|
198
|
-
}, e)),
|
|
197
|
+
children: /* @__PURE__ */ E(y, { className: ne("h-6 w-6", e <= $ ? "fill-status-warning-text text-status-warning-text" : "text-text-secondary") })
|
|
198
|
+
}, e)), $ > 0 && /* @__PURE__ */ D("span", {
|
|
199
199
|
className: "ms-2 text-sm text-text-secondary",
|
|
200
|
-
children: [
|
|
200
|
+
children: [$, " / 5"]
|
|
201
201
|
})]
|
|
202
202
|
})
|
|
203
203
|
]
|
|
204
204
|
}),
|
|
205
|
-
/* @__PURE__ */
|
|
205
|
+
/* @__PURE__ */ D("div", {
|
|
206
206
|
className: "grid grid-cols-1 gap-6 lg:grid-cols-2",
|
|
207
|
-
children: [/* @__PURE__ */
|
|
207
|
+
children: [/* @__PURE__ */ D("div", {
|
|
208
208
|
className: "rounded-xl border border-border-seam bg-gloss-card shadow-pop p-6",
|
|
209
|
-
children: [/* @__PURE__ */
|
|
209
|
+
children: [/* @__PURE__ */ D("div", {
|
|
210
210
|
className: "mb-4 flex items-center justify-between",
|
|
211
|
-
children: [/* @__PURE__ */
|
|
211
|
+
children: [/* @__PURE__ */ E("h3", {
|
|
212
212
|
className: "text-sm font-semibold text-text-primary",
|
|
213
213
|
children: "Participants"
|
|
214
|
-
}), /* @__PURE__ */
|
|
215
|
-
onClick: () =>
|
|
214
|
+
}), /* @__PURE__ */ D("button", {
|
|
215
|
+
onClick: () => G(!0),
|
|
216
216
|
className: "inline-flex items-center gap-1 rounded-md bg-action-primary-bg px-2.5 py-1.5 text-xs font-medium text-action-primary-text hover:bg-action-primary-bg/90",
|
|
217
|
-
children: [/* @__PURE__ */
|
|
217
|
+
children: [/* @__PURE__ */ E(v, { className: "h-3.5 w-3.5" }), "Add"]
|
|
218
218
|
})]
|
|
219
|
-
}),
|
|
219
|
+
}), Q.participants.length > 0 ? /* @__PURE__ */ E("div", {
|
|
220
220
|
className: "space-y-2",
|
|
221
|
-
children:
|
|
221
|
+
children: Q.participants.map((e) => /* @__PURE__ */ D("div", {
|
|
222
222
|
className: "flex items-center justify-between gap-2 rounded-lg border border-border-subtle px-3 py-2",
|
|
223
|
-
children: [/* @__PURE__ */
|
|
223
|
+
children: [/* @__PURE__ */ D("div", {
|
|
224
224
|
className: "flex min-w-0 items-center gap-2.5",
|
|
225
|
-
children: [/* @__PURE__ */
|
|
225
|
+
children: [/* @__PURE__ */ E("span", {
|
|
226
226
|
className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-action-primary-bg/10 text-[11px] font-semibold text-primary",
|
|
227
|
-
children:
|
|
228
|
-
}), /* @__PURE__ */
|
|
227
|
+
children: M(e.userId)
|
|
228
|
+
}), /* @__PURE__ */ D("div", {
|
|
229
229
|
className: "min-w-0",
|
|
230
|
-
children: [/* @__PURE__ */
|
|
230
|
+
children: [/* @__PURE__ */ E("p", {
|
|
231
231
|
className: "truncate text-sm text-text-primary",
|
|
232
232
|
children: e.userId
|
|
233
|
-
}), /* @__PURE__ */
|
|
233
|
+
}), /* @__PURE__ */ E("p", {
|
|
234
234
|
className: "text-xs text-text-secondary",
|
|
235
235
|
children: e.role
|
|
236
236
|
})]
|
|
237
237
|
})]
|
|
238
|
-
}), /* @__PURE__ */
|
|
238
|
+
}), /* @__PURE__ */ D("div", {
|
|
239
239
|
className: "flex items-center gap-2",
|
|
240
|
-
children: [/* @__PURE__ */
|
|
240
|
+
children: [/* @__PURE__ */ E(k, {
|
|
241
241
|
value: e.status,
|
|
242
|
-
onChange: (t) =>
|
|
242
|
+
onChange: (t) => Ve(e.id, t.target.value),
|
|
243
243
|
className: "rounded-md border border-border-subtle bg-bg-surface px-2 py-1 text-xs text-text-primary",
|
|
244
244
|
"aria-label": "Participant status",
|
|
245
|
-
children:
|
|
245
|
+
children: A.map((e) => /* @__PURE__ */ E("option", {
|
|
246
246
|
value: e,
|
|
247
247
|
children: e
|
|
248
248
|
}, e))
|
|
249
|
-
}), /* @__PURE__ */
|
|
250
|
-
onClick: () =>
|
|
249
|
+
}), /* @__PURE__ */ E("button", {
|
|
250
|
+
onClick: () => q(e),
|
|
251
251
|
className: "rounded-md p-1 text-text-secondary hover:bg-status-error-bg hover:text-status-error-text",
|
|
252
252
|
"aria-label": "Remove participant",
|
|
253
|
-
children: /* @__PURE__ */
|
|
253
|
+
children: /* @__PURE__ */ E(x, { className: "h-4 w-4" })
|
|
254
254
|
})]
|
|
255
255
|
})]
|
|
256
256
|
}, e.id))
|
|
257
|
-
}) : /* @__PURE__ */
|
|
257
|
+
}) : /* @__PURE__ */ E(n, {
|
|
258
258
|
illustration: "empty-people",
|
|
259
259
|
title: "No participants added",
|
|
260
260
|
description: "Add attendees to capture who was in the room and what it cost.",
|
|
261
|
-
action: /* @__PURE__ */
|
|
262
|
-
onClick: () =>
|
|
261
|
+
action: /* @__PURE__ */ D("button", {
|
|
262
|
+
onClick: () => G(!0),
|
|
263
263
|
className: "inline-flex items-center gap-1 rounded-md bg-action-primary-bg px-3 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
|
|
264
|
-
children: [/* @__PURE__ */
|
|
264
|
+
children: [/* @__PURE__ */ E(v, { className: "h-4 w-4" }), "Add participant"]
|
|
265
265
|
})
|
|
266
266
|
})]
|
|
267
|
-
}), /* @__PURE__ */
|
|
267
|
+
}), /* @__PURE__ */ D("div", {
|
|
268
268
|
className: "rounded-xl border border-border-seam bg-gloss-card shadow-pop p-6",
|
|
269
|
-
children: [/* @__PURE__ */
|
|
269
|
+
children: [/* @__PURE__ */ D("div", {
|
|
270
270
|
className: "mb-4 flex items-center justify-between",
|
|
271
|
-
children: [/* @__PURE__ */
|
|
271
|
+
children: [/* @__PURE__ */ E("h3", {
|
|
272
272
|
className: "text-sm font-semibold text-text-primary",
|
|
273
273
|
children: "Action Items"
|
|
274
|
-
}), /* @__PURE__ */
|
|
275
|
-
onClick: () =>
|
|
274
|
+
}), /* @__PURE__ */ D("button", {
|
|
275
|
+
onClick: () => Y({ mode: "create" }),
|
|
276
276
|
className: "inline-flex items-center gap-1 rounded-md bg-action-primary-bg px-2.5 py-1.5 text-xs font-medium text-action-primary-text hover:bg-action-primary-bg/90",
|
|
277
|
-
children: [/* @__PURE__ */
|
|
277
|
+
children: [/* @__PURE__ */ E(v, { className: "h-3.5 w-3.5" }), "Add"]
|
|
278
278
|
})]
|
|
279
|
-
}),
|
|
279
|
+
}), Q.actionItems.length > 0 ? /* @__PURE__ */ E("div", {
|
|
280
280
|
className: "space-y-2",
|
|
281
|
-
children:
|
|
281
|
+
children: Q.actionItems.map((e) => /* @__PURE__ */ D("div", {
|
|
282
282
|
className: "flex items-center justify-between gap-2 rounded-lg border border-border-subtle px-3 py-2",
|
|
283
|
-
children: [/* @__PURE__ */
|
|
283
|
+
children: [/* @__PURE__ */ D("div", {
|
|
284
284
|
className: "min-w-0",
|
|
285
|
-
children: [/* @__PURE__ */
|
|
285
|
+
children: [/* @__PURE__ */ E("p", {
|
|
286
286
|
className: "truncate text-sm text-text-primary",
|
|
287
287
|
children: e.title
|
|
288
|
-
}), /* @__PURE__ */
|
|
288
|
+
}), /* @__PURE__ */ E("div", {
|
|
289
289
|
className: "mt-1",
|
|
290
|
-
children: /* @__PURE__ */
|
|
291
|
-
label:
|
|
292
|
-
variant:
|
|
290
|
+
children: /* @__PURE__ */ E(ee, {
|
|
291
|
+
label: N(e.status),
|
|
292
|
+
variant: j[e.status]
|
|
293
293
|
})
|
|
294
294
|
})]
|
|
295
|
-
}), /* @__PURE__ */
|
|
295
|
+
}), /* @__PURE__ */ D("div", {
|
|
296
296
|
className: "flex items-center gap-1",
|
|
297
297
|
children: [
|
|
298
|
-
e.status !==
|
|
299
|
-
onClick: () =>
|
|
298
|
+
e.status !== m.Completed && /* @__PURE__ */ E("button", {
|
|
299
|
+
onClick: () => We(e.id),
|
|
300
300
|
className: "rounded-md p-1 text-text-secondary hover:bg-status-success-bg hover:text-status-success-text",
|
|
301
301
|
"aria-label": "Complete action item",
|
|
302
|
-
children: /* @__PURE__ */
|
|
302
|
+
children: /* @__PURE__ */ E(de, { className: "h-4 w-4" })
|
|
303
303
|
}),
|
|
304
|
-
/* @__PURE__ */
|
|
305
|
-
onClick: () =>
|
|
304
|
+
/* @__PURE__ */ E("button", {
|
|
305
|
+
onClick: () => Y({
|
|
306
306
|
mode: "edit",
|
|
307
307
|
item: e
|
|
308
308
|
}),
|
|
309
309
|
className: "rounded-md p-1 text-text-secondary hover:bg-bg-sunken hover:text-text-primary",
|
|
310
310
|
"aria-label": "Edit action item",
|
|
311
|
-
children: /* @__PURE__ */
|
|
311
|
+
children: /* @__PURE__ */ E(_, { className: "h-4 w-4" })
|
|
312
312
|
}),
|
|
313
|
-
/* @__PURE__ */
|
|
314
|
-
onClick: () =>
|
|
313
|
+
/* @__PURE__ */ E("button", {
|
|
314
|
+
onClick: () => Z(e),
|
|
315
315
|
className: "rounded-md p-1 text-text-secondary hover:bg-status-error-bg hover:text-status-error-text",
|
|
316
316
|
"aria-label": "Delete action item",
|
|
317
|
-
children: /* @__PURE__ */
|
|
317
|
+
children: /* @__PURE__ */ E(b, { className: "h-4 w-4" })
|
|
318
318
|
})
|
|
319
319
|
]
|
|
320
320
|
})]
|
|
321
321
|
}, e.id))
|
|
322
|
-
}) : /* @__PURE__ */
|
|
322
|
+
}) : /* @__PURE__ */ E(n, {
|
|
323
323
|
illustration: "empty-generic",
|
|
324
324
|
title: "No action items",
|
|
325
325
|
description: "Capture follow-ups here so commitments from the meeting don't get lost.",
|
|
326
|
-
action: /* @__PURE__ */
|
|
327
|
-
onClick: () =>
|
|
326
|
+
action: /* @__PURE__ */ D("button", {
|
|
327
|
+
onClick: () => Y({ mode: "create" }),
|
|
328
328
|
className: "inline-flex items-center gap-1 rounded-md bg-action-primary-bg px-3 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
|
|
329
|
-
children: [/* @__PURE__ */
|
|
329
|
+
children: [/* @__PURE__ */ E(v, { className: "h-4 w-4" }), "Add action item"]
|
|
330
330
|
})
|
|
331
331
|
})]
|
|
332
332
|
})]
|
|
333
333
|
}),
|
|
334
|
-
Me && /* @__PURE__ */
|
|
334
|
+
Me && /* @__PURE__ */ E(se, {
|
|
335
335
|
open: !0,
|
|
336
|
-
onClose: () =>
|
|
337
|
-
workspaceId:
|
|
338
|
-
meeting:
|
|
336
|
+
onClose: () => U(!1),
|
|
337
|
+
workspaceId: P,
|
|
338
|
+
meeting: Q,
|
|
339
339
|
submitting: me,
|
|
340
340
|
error: !!he,
|
|
341
341
|
onUpdate: Ie
|
|
342
342
|
}),
|
|
343
|
-
/* @__PURE__ */
|
|
343
|
+
/* @__PURE__ */ E(r, {
|
|
344
344
|
open: Ne,
|
|
345
|
-
onClose: () =>
|
|
345
|
+
onClose: () => W(!1),
|
|
346
346
|
title: "Delete meeting",
|
|
347
347
|
description: "This permanently removes the meeting and its analytics.",
|
|
348
348
|
size: "sm",
|
|
349
|
-
footer: /* @__PURE__ */
|
|
350
|
-
onClick: () =>
|
|
349
|
+
footer: /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("button", {
|
|
350
|
+
onClick: () => W(!1),
|
|
351
351
|
className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken/50",
|
|
352
352
|
children: "Cancel"
|
|
353
|
-
}), /* @__PURE__ */
|
|
353
|
+
}), /* @__PURE__ */ E("button", {
|
|
354
354
|
onClick: Le,
|
|
355
|
-
disabled:
|
|
355
|
+
disabled: H,
|
|
356
356
|
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",
|
|
357
|
-
children:
|
|
357
|
+
children: H ? "Deleting..." : "Delete"
|
|
358
358
|
})] }),
|
|
359
|
-
children: /* @__PURE__ */
|
|
359
|
+
children: /* @__PURE__ */ D("p", {
|
|
360
360
|
className: "text-sm text-text-secondary",
|
|
361
361
|
children: [
|
|
362
362
|
"Are you sure you want to delete",
|
|
363
363
|
" ",
|
|
364
|
-
/* @__PURE__ */
|
|
364
|
+
/* @__PURE__ */ E("span", {
|
|
365
365
|
className: "font-medium text-text-primary",
|
|
366
|
-
children:
|
|
366
|
+
children: Q.title
|
|
367
367
|
}),
|
|
368
368
|
"? This action cannot be undone."
|
|
369
369
|
]
|
|
370
370
|
})
|
|
371
371
|
}),
|
|
372
|
-
Pe && /* @__PURE__ */
|
|
372
|
+
Pe && /* @__PURE__ */ E(ce, {
|
|
373
373
|
open: !0,
|
|
374
|
-
onClose: () =>
|
|
375
|
-
defaultUserId:
|
|
374
|
+
onClose: () => G(!1),
|
|
375
|
+
defaultUserId: F?.id,
|
|
376
376
|
submitting: be,
|
|
377
377
|
error: !!xe,
|
|
378
378
|
onSubmit: ze
|
|
379
379
|
}),
|
|
380
|
-
/* @__PURE__ */
|
|
381
|
-
open: !!
|
|
382
|
-
onClose: () =>
|
|
380
|
+
/* @__PURE__ */ E(r, {
|
|
381
|
+
open: !!K,
|
|
382
|
+
onClose: () => q(null),
|
|
383
383
|
title: "Remove participant",
|
|
384
384
|
size: "sm",
|
|
385
|
-
footer: /* @__PURE__ */
|
|
386
|
-
onClick: () =>
|
|
385
|
+
footer: /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("button", {
|
|
386
|
+
onClick: () => q(null),
|
|
387
387
|
className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken/50",
|
|
388
388
|
children: "Cancel"
|
|
389
|
-
}), /* @__PURE__ */
|
|
390
|
-
onClick:
|
|
389
|
+
}), /* @__PURE__ */ E("button", {
|
|
390
|
+
onClick: Be,
|
|
391
391
|
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",
|
|
392
392
|
children: "Remove"
|
|
393
393
|
})] }),
|
|
394
|
-
children: /* @__PURE__ */
|
|
394
|
+
children: /* @__PURE__ */ D("p", {
|
|
395
395
|
className: "text-sm text-text-secondary",
|
|
396
396
|
children: [
|
|
397
397
|
"Remove",
|
|
398
398
|
" ",
|
|
399
|
-
/* @__PURE__ */
|
|
399
|
+
/* @__PURE__ */ E("span", {
|
|
400
400
|
className: "font-medium text-text-primary",
|
|
401
|
-
children:
|
|
401
|
+
children: K?.userId
|
|
402
402
|
}),
|
|
403
403
|
" ",
|
|
404
404
|
"from this meeting?"
|
|
405
405
|
]
|
|
406
406
|
})
|
|
407
407
|
}),
|
|
408
|
-
|
|
408
|
+
J && /* @__PURE__ */ E(le, {
|
|
409
409
|
open: !0,
|
|
410
|
-
onClose: () =>
|
|
411
|
-
item:
|
|
412
|
-
submitting:
|
|
413
|
-
error: !!(
|
|
414
|
-
onCreate:
|
|
415
|
-
onUpdate:
|
|
410
|
+
onClose: () => Y(null),
|
|
411
|
+
item: J.mode === "edit" ? J.item : void 0,
|
|
412
|
+
submitting: J.mode === "edit" ? Oe : Te,
|
|
413
|
+
error: !!(J.mode === "edit" ? ke : Ee),
|
|
414
|
+
onCreate: He,
|
|
415
|
+
onUpdate: J.mode === "edit" ? (e) => Ue(J.item.id, e) : void 0
|
|
416
416
|
}),
|
|
417
|
-
/* @__PURE__ */
|
|
418
|
-
open: !!
|
|
419
|
-
onClose: () =>
|
|
417
|
+
/* @__PURE__ */ E(r, {
|
|
418
|
+
open: !!X,
|
|
419
|
+
onClose: () => Z(null),
|
|
420
420
|
title: "Delete action item",
|
|
421
421
|
size: "sm",
|
|
422
|
-
footer: /* @__PURE__ */
|
|
423
|
-
onClick: () =>
|
|
422
|
+
footer: /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("button", {
|
|
423
|
+
onClick: () => Z(null),
|
|
424
424
|
className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken/50",
|
|
425
425
|
children: "Cancel"
|
|
426
|
-
}), /* @__PURE__ */
|
|
426
|
+
}), /* @__PURE__ */ E("button", {
|
|
427
427
|
onClick: async () => {
|
|
428
|
-
|
|
429
|
-
id:
|
|
430
|
-
workspaceId:
|
|
431
|
-
} }),
|
|
428
|
+
X && (await je({ variables: {
|
|
429
|
+
id: X.id,
|
|
430
|
+
workspaceId: P
|
|
431
|
+
} }), Z(null), await V());
|
|
432
432
|
},
|
|
433
433
|
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",
|
|
434
434
|
children: "Delete"
|
|
435
435
|
})] }),
|
|
436
|
-
children: /* @__PURE__ */
|
|
436
|
+
children: /* @__PURE__ */ D("p", {
|
|
437
437
|
className: "text-sm text-text-secondary",
|
|
438
438
|
children: [
|
|
439
439
|
"Delete action item",
|
|
440
440
|
" ",
|
|
441
|
-
/* @__PURE__ */
|
|
441
|
+
/* @__PURE__ */ E("span", {
|
|
442
442
|
className: "font-medium text-text-primary",
|
|
443
|
-
children:
|
|
443
|
+
children: X?.title
|
|
444
444
|
}),
|
|
445
445
|
"?"
|
|
446
446
|
]
|
|
@@ -449,6 +449,6 @@ function M() {
|
|
|
449
449
|
]
|
|
450
450
|
});
|
|
451
451
|
}
|
|
452
|
-
export {
|
|
452
|
+
export { P as MeetingDetailPage };
|
|
453
453
|
|
|
454
454
|
//# sourceMappingURL=MeetingDetailPage.js.map
|