@burdenoff/microfe-timecampus 2026.1203.2 → 2026.1205.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,16 +4,16 @@ import { LoadingSkeleton as n } from "../../components/LoadingSkeleton.js";
|
|
|
4
4
|
import { ErrorBoundary as r } from "../../components/ErrorBoundary.js";
|
|
5
5
|
import { ADMIN_MARKETPLACE_CERTIFICATION_PATH as i } from "../../adminPaths.js";
|
|
6
6
|
import { useTimeCampus as a, useTimeCampusNavigate as o } from "../../providers/TimeCampusProvider.js";
|
|
7
|
-
import { useExportTimeCampusUserDataMutation as s, useOverrideTimeCampusWorkspaceQuotaMutation as c, useRecordTimeCampusImpersonationAuditMutation as ee, useRemoveTimeCampusFeatureFlagOverrideMutation as te, useRequestTimeCampusUserDataErasureMutation as ne, useSetTimeCampusFeatureFlagOverrideMutation as re, useTimeCampusDataErasureRequestsQuery as ie, useTimeCampusImpersonationAuditQuery as ae, useTimeCampusWorkspaceQuotaOverviewQuery as
|
|
8
|
-
import { useState as
|
|
9
|
-
import { Activity as
|
|
10
|
-
import { gql as
|
|
11
|
-
import { useMutation as
|
|
12
|
-
import { jsx as
|
|
13
|
-
import { GlassCard as E } from "@burdenoff/fe-libs/ui";
|
|
14
|
-
import { useSafePermissions as
|
|
7
|
+
import { useExportTimeCampusUserDataMutation as s, useOverrideTimeCampusWorkspaceQuotaMutation as c, useRecordTimeCampusImpersonationAuditMutation as ee, useRemoveTimeCampusFeatureFlagOverrideMutation as te, useRequestTimeCampusUserDataErasureMutation as ne, useSetTimeCampusFeatureFlagOverrideMutation as re, useTimeCampusDataErasureRequestsQuery as ie, useTimeCampusImpersonationAuditQuery as ae, useTimeCampusWorkspaceQuotaOverviewQuery as oe } from "../../../generated/wspace-operations.js";
|
|
8
|
+
import { useState as l } from "react";
|
|
9
|
+
import { Activity as u, BadgeCheck as d, FileDown as f, Flag as p, Gauge as m, RefreshCw as h, RotateCcw as g, ShieldAlert as _, Trash2 as v, UserCog as y, Users as se } from "lucide-react";
|
|
10
|
+
import { gql as b } from "@apollo/client";
|
|
11
|
+
import { useMutation as x, useQuery as S } from "@apollo/client/react";
|
|
12
|
+
import { jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
13
|
+
import { GlassCard as T, ThemedSelect as E, useConfirm as D } from "@burdenoff/fe-libs/ui";
|
|
14
|
+
import { useSafePermissions as O } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
15
15
|
// src/timecampus/pages/admin/AdminPage.tsx
|
|
16
|
-
var
|
|
16
|
+
var k = b`
|
|
17
17
|
query TimeCampusAdminWorkspaceState($workspaceId: ID!) {
|
|
18
18
|
timeCampusAdminWorkspaceState(workspaceId: $workspaceId) {
|
|
19
19
|
workspaceId
|
|
@@ -31,7 +31,7 @@ var O = x`
|
|
|
31
31
|
generatedAt
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
`,
|
|
34
|
+
`, A = b`
|
|
35
35
|
query TimeCampusFeatureFlags($workspaceId: ID!) {
|
|
36
36
|
timeCampusFeatureFlags(workspaceId: $workspaceId) {
|
|
37
37
|
workspaceId
|
|
@@ -43,14 +43,14 @@ var O = x`
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
`,
|
|
46
|
+
`, j = b`
|
|
47
47
|
mutation ReprocessTimeCampusTimeline($workspaceId: ID!) {
|
|
48
48
|
reprocessTimeCampusTimeline(workspaceId: $workspaceId) {
|
|
49
49
|
success
|
|
50
50
|
message
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
`,
|
|
53
|
+
`, M = b`
|
|
54
54
|
mutation ResetTimeCampusDemoData($workspaceId: ID!) {
|
|
55
55
|
resetTimeCampusDemoData(workspaceId: $workspaceId) {
|
|
56
56
|
success
|
|
@@ -58,67 +58,67 @@ var O = x`
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
`;
|
|
61
|
-
function
|
|
61
|
+
function N(e) {
|
|
62
62
|
return e == null ? "—" : e.toLocaleString();
|
|
63
63
|
}
|
|
64
|
-
var
|
|
65
|
-
let { workspaceId:
|
|
66
|
-
variables: { workspaceId:
|
|
67
|
-
skip: !
|
|
68
|
-
}), { data:
|
|
69
|
-
variables: { workspaceId:
|
|
70
|
-
skip: !
|
|
71
|
-
}), { data:
|
|
72
|
-
variables: { workspaceId:
|
|
73
|
-
skip: !
|
|
74
|
-
}), { data:
|
|
75
|
-
variables: { workspaceId:
|
|
76
|
-
skip: !
|
|
77
|
-
}), { data:
|
|
78
|
-
variables: { workspaceId:
|
|
79
|
-
skip: !
|
|
80
|
-
}), [
|
|
81
|
-
if (!
|
|
64
|
+
var P = () => {
|
|
65
|
+
let r = D(), { workspaceId: b = "" } = a(), P = o(), F = O()?.isSuperAdmin ?? !1, [I, L] = l(null), [R, z] = l(""), [B, V] = l("timecampus.operations"), [H, U] = l(!0), [W, G] = l("timecampus.projects.count"), [K, ce] = l("100"), [q, le] = l("support"), { data: ue, loading: de, error: fe, refetch: pe } = S(k, {
|
|
66
|
+
variables: { workspaceId: b },
|
|
67
|
+
skip: !b
|
|
68
|
+
}), { data: me, loading: he, error: ge } = S(A, {
|
|
69
|
+
variables: { workspaceId: b },
|
|
70
|
+
skip: !b
|
|
71
|
+
}), { data: _e, loading: ve, error: ye, refetch: be } = oe({
|
|
72
|
+
variables: { workspaceId: b },
|
|
73
|
+
skip: !b
|
|
74
|
+
}), { data: xe, loading: Se, error: Ce, refetch: we } = ie({
|
|
75
|
+
variables: { workspaceId: b },
|
|
76
|
+
skip: !b
|
|
77
|
+
}), { data: Te, loading: Ee, error: De, refetch: Oe } = ae({
|
|
78
|
+
variables: { workspaceId: b },
|
|
79
|
+
skip: !b
|
|
80
|
+
}), [ke, { loading: Ae }] = x(j), [je, { loading: Me }] = x(M), [Ne, { loading: Pe }] = re(), [Fe, { loading: Ie }] = te(), [Le, { loading: Re }] = c(), [ze, { loading: Be }] = s(), [Ve, { loading: He }] = ne(), [Ue, { loading: We }] = ee();
|
|
81
|
+
if (!b) return /* @__PURE__ */ w("div", {
|
|
82
82
|
className: "flex min-h-[40vh] items-center justify-center text-text-secondary",
|
|
83
|
-
children: [/* @__PURE__ */
|
|
83
|
+
children: [/* @__PURE__ */ C(_, { className: "me-2 h-5 w-5" }), "Workspace context is required."]
|
|
84
84
|
});
|
|
85
|
-
let
|
|
86
|
-
if (!
|
|
87
|
-
let e = await
|
|
88
|
-
|
|
89
|
-
}, Ue = async () => {
|
|
90
|
-
if (!window.confirm("Reset demo data for this workspace? This cannot be undone.")) return;
|
|
91
|
-
let e = await De({ variables: { workspaceId: r } });
|
|
92
|
-
F(e.data?.resetTimeCampusDemoData?.message ?? "Done"), await le();
|
|
93
|
-
}, We = async () => {
|
|
94
|
-
let e = await ke({ variables: { input: {
|
|
95
|
-
workspaceId: r,
|
|
96
|
-
key: R,
|
|
97
|
-
enabled: B
|
|
98
|
-
} } });
|
|
99
|
-
F(e.data ? `Feature flag ${R} set to ${String(B)}` : "Done");
|
|
100
|
-
}, Ge = async () => {
|
|
101
|
-
let e = await je({ variables: {
|
|
102
|
-
workspaceId: r,
|
|
103
|
-
key: R
|
|
104
|
-
} });
|
|
105
|
-
F(`Removed override for ${R}: ${String(e.data)}`);
|
|
85
|
+
let J = ue?.timeCampusAdminWorkspaceState, Ge = me?.timeCampusFeatureFlags?.items ?? [], Y = _e?.data?.timeCampusWorkspaceQuotaOverview?.assignments ?? [], X = xe?.data?.timeCampusDataErasureRequests ?? [], Z = Te?.data?.timeCampusImpersonationAudit ?? [], Q = async () => {
|
|
86
|
+
if (!await r("Reprocess timeline categorization for this workspace?")) return;
|
|
87
|
+
let e = await ke({ variables: { workspaceId: b } });
|
|
88
|
+
L(e.data?.reprocessTimeCampusTimeline?.message ?? "Done");
|
|
106
89
|
}, Ke = async () => {
|
|
90
|
+
if (!await r("Reset demo data for this workspace? This cannot be undone.")) return;
|
|
91
|
+
let e = await je({ variables: { workspaceId: b } });
|
|
92
|
+
L(e.data?.resetTimeCampusDemoData?.message ?? "Done"), await pe();
|
|
93
|
+
}, qe = async () => {
|
|
107
94
|
let e = await Ne({ variables: { input: {
|
|
108
|
-
workspaceId:
|
|
109
|
-
|
|
95
|
+
workspaceId: b,
|
|
96
|
+
key: B,
|
|
97
|
+
enabled: H
|
|
98
|
+
} } });
|
|
99
|
+
L(e.data ? `Feature flag ${B} set to ${String(H)}` : "Done");
|
|
100
|
+
}, Je = async () => {
|
|
101
|
+
let e = await Fe({ variables: {
|
|
102
|
+
workspaceId: b,
|
|
103
|
+
key: B
|
|
104
|
+
} });
|
|
105
|
+
L(`Removed override for ${B}: ${String(e.data)}`);
|
|
106
|
+
}, Ye = async () => {
|
|
107
|
+
let e = await Le({ variables: { input: {
|
|
108
|
+
workspaceId: b,
|
|
109
|
+
quotaName: W,
|
|
110
110
|
productId: "timecampus",
|
|
111
|
-
limit:
|
|
111
|
+
limit: K ? Number(K) : null
|
|
112
112
|
} } });
|
|
113
|
-
|
|
114
|
-
},
|
|
115
|
-
if (!
|
|
116
|
-
|
|
113
|
+
L(e.data ? `Quota ${W} overridden to ${K || "unlimited"}` : "Done"), await be();
|
|
114
|
+
}, Xe = async () => {
|
|
115
|
+
if (!R) {
|
|
116
|
+
L("Enter a target user ID");
|
|
117
117
|
return;
|
|
118
118
|
}
|
|
119
|
-
let e = await
|
|
120
|
-
workspaceId:
|
|
121
|
-
userId:
|
|
119
|
+
let e = await ze({ variables: { input: {
|
|
120
|
+
workspaceId: b,
|
|
121
|
+
userId: R,
|
|
122
122
|
entityTypes: [
|
|
123
123
|
"timeEntry",
|
|
124
124
|
"project",
|
|
@@ -127,167 +127,167 @@ var N = () => {
|
|
|
127
127
|
],
|
|
128
128
|
format: "JSON"
|
|
129
129
|
} } });
|
|
130
|
-
|
|
131
|
-
},
|
|
132
|
-
if (!
|
|
133
|
-
|
|
130
|
+
L(e.data ? `Export job ${e.data.exportTimeCampusUserData.id} created` : "Done");
|
|
131
|
+
}, Ze = async () => {
|
|
132
|
+
if (!R) {
|
|
133
|
+
L("Enter a target user ID");
|
|
134
134
|
return;
|
|
135
135
|
}
|
|
136
|
-
if (!
|
|
137
|
-
let e = await
|
|
138
|
-
workspaceId:
|
|
139
|
-
userId:
|
|
136
|
+
if (!await r(`Request TimeCampus data erasure for user ${R}?`)) return;
|
|
137
|
+
let e = await Ve({ variables: {
|
|
138
|
+
workspaceId: b,
|
|
139
|
+
userId: R
|
|
140
140
|
} });
|
|
141
|
-
|
|
142
|
-
},
|
|
143
|
-
if (!
|
|
144
|
-
|
|
141
|
+
L(e.data ? `Erasure request ${e.data.requestTimeCampusUserDataErasure.id} created` : "Done"), await we();
|
|
142
|
+
}, Qe = async () => {
|
|
143
|
+
if (!R) {
|
|
144
|
+
L("Enter a target user ID");
|
|
145
145
|
return;
|
|
146
146
|
}
|
|
147
|
-
let e = await
|
|
148
|
-
workspaceId:
|
|
149
|
-
targetUserId:
|
|
150
|
-
reason:
|
|
147
|
+
let e = await Ue({ variables: { input: {
|
|
148
|
+
workspaceId: b,
|
|
149
|
+
targetUserId: R,
|
|
150
|
+
reason: q
|
|
151
151
|
} } });
|
|
152
|
-
|
|
152
|
+
L(e.data ? `Impersonation session ${e.data.recordTimeCampusImpersonationAudit.id} recorded` : "Done"), await Oe();
|
|
153
153
|
}, $ = [
|
|
154
|
-
ce,
|
|
155
154
|
fe,
|
|
156
|
-
|
|
155
|
+
ge,
|
|
157
156
|
ye,
|
|
158
|
-
Ce
|
|
157
|
+
Ce,
|
|
158
|
+
De
|
|
159
159
|
].filter(Boolean);
|
|
160
|
-
return /* @__PURE__ */
|
|
160
|
+
return /* @__PURE__ */ w(e, {
|
|
161
161
|
title: "TimeCampus Admin",
|
|
162
162
|
description: "Workspace state, feature flags, quotas, compliance, and super-admin maintenance actions.",
|
|
163
|
-
actions:
|
|
163
|
+
actions: F ? /* @__PURE__ */ w("button", {
|
|
164
164
|
type: "button",
|
|
165
|
-
onClick: () =>
|
|
165
|
+
onClick: () => P(`/${i}`),
|
|
166
166
|
className: "inline-flex items-center gap-1.5 rounded-md border border-border-subtle bg-bg-surface px-3 py-1.5 text-sm font-medium text-text-primary hover:bg-bg-surface-hover",
|
|
167
167
|
"data-testid": "timecampus-admin-open-certification",
|
|
168
|
-
children: [/* @__PURE__ */
|
|
168
|
+
children: [/* @__PURE__ */ C(d, {
|
|
169
169
|
className: "h-4 w-4",
|
|
170
170
|
"aria-hidden": "true"
|
|
171
171
|
}), "Marketplace Certification"]
|
|
172
172
|
}) : void 0,
|
|
173
173
|
children: [
|
|
174
|
-
|
|
174
|
+
I && /* @__PURE__ */ w("div", {
|
|
175
175
|
className: "mb-4 rounded-md bg-status-info-bg px-4 py-3 text-sm text-status-info-text",
|
|
176
|
-
children: [
|
|
176
|
+
children: [I, /* @__PURE__ */ C("button", {
|
|
177
177
|
type: "button",
|
|
178
|
-
onClick: () =>
|
|
178
|
+
onClick: () => L(null),
|
|
179
179
|
className: "ms-4 underline",
|
|
180
180
|
children: "Dismiss"
|
|
181
181
|
})]
|
|
182
182
|
}),
|
|
183
|
-
$.length > 0 && /* @__PURE__ */
|
|
183
|
+
$.length > 0 && /* @__PURE__ */ w("div", {
|
|
184
184
|
className: "mb-4 rounded-md bg-status-error-bg px-4 py-3 text-sm text-status-error-text",
|
|
185
185
|
children: ["Failed to load admin data. ", $.map((e) => e?.message).join("; ")]
|
|
186
186
|
}),
|
|
187
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ w("section", {
|
|
188
188
|
className: "mb-8",
|
|
189
|
-
children: [/* @__PURE__ */
|
|
189
|
+
children: [/* @__PURE__ */ w("h2", {
|
|
190
190
|
className: "mb-4 flex items-center gap-2 text-lg font-semibold text-text-primary",
|
|
191
|
-
children: [/* @__PURE__ */
|
|
192
|
-
}),
|
|
191
|
+
children: [/* @__PURE__ */ C(u, { className: "h-5 w-5" }), "Workspace State"]
|
|
192
|
+
}), de ? /* @__PURE__ */ C(n, {}) : /* @__PURE__ */ w("div", {
|
|
193
193
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
|
|
194
194
|
children: [
|
|
195
|
-
/* @__PURE__ */
|
|
195
|
+
/* @__PURE__ */ C(t, {
|
|
196
196
|
title: "Time Entries",
|
|
197
|
-
value:
|
|
197
|
+
value: J?.timeEntryCount ?? 0
|
|
198
198
|
}),
|
|
199
|
-
/* @__PURE__ */
|
|
199
|
+
/* @__PURE__ */ C(t, {
|
|
200
200
|
title: "Projects",
|
|
201
|
-
value:
|
|
201
|
+
value: J?.projectCount ?? 0
|
|
202
202
|
}),
|
|
203
|
-
/* @__PURE__ */
|
|
203
|
+
/* @__PURE__ */ C(t, {
|
|
204
204
|
title: "Tasks",
|
|
205
|
-
value:
|
|
205
|
+
value: J?.taskCount ?? 0
|
|
206
206
|
}),
|
|
207
|
-
/* @__PURE__ */
|
|
207
|
+
/* @__PURE__ */ C(t, {
|
|
208
208
|
title: "Pomodoro Sessions",
|
|
209
|
-
value:
|
|
209
|
+
value: J?.pomodoroSessionCount ?? 0
|
|
210
210
|
}),
|
|
211
|
-
/* @__PURE__ */
|
|
211
|
+
/* @__PURE__ */ C(t, {
|
|
212
212
|
title: "Meetings",
|
|
213
|
-
value:
|
|
213
|
+
value: J?.meetingCount ?? 0
|
|
214
214
|
}),
|
|
215
|
-
/* @__PURE__ */
|
|
215
|
+
/* @__PURE__ */ C(t, {
|
|
216
216
|
title: "Expenses",
|
|
217
|
-
value:
|
|
217
|
+
value: J?.expenseCount ?? 0
|
|
218
218
|
}),
|
|
219
|
-
/* @__PURE__ */
|
|
219
|
+
/* @__PURE__ */ C(t, {
|
|
220
220
|
title: "Invoices",
|
|
221
|
-
value:
|
|
221
|
+
value: J?.invoiceCount ?? 0
|
|
222
222
|
}),
|
|
223
|
-
/* @__PURE__ */
|
|
223
|
+
/* @__PURE__ */ C(t, {
|
|
224
224
|
title: "Pending Approvals",
|
|
225
|
-
value:
|
|
225
|
+
value: J?.pendingApprovalCount ?? 0
|
|
226
226
|
}),
|
|
227
|
-
/* @__PURE__ */
|
|
227
|
+
/* @__PURE__ */ C(t, {
|
|
228
228
|
title: "Location Entries",
|
|
229
|
-
value:
|
|
229
|
+
value: J?.locationEntryCount ?? 0
|
|
230
230
|
}),
|
|
231
|
-
/* @__PURE__ */
|
|
231
|
+
/* @__PURE__ */ C(t, {
|
|
232
232
|
title: "Focus Scores",
|
|
233
|
-
value:
|
|
233
|
+
value: J?.focusScoreCount ?? 0
|
|
234
234
|
}),
|
|
235
|
-
/* @__PURE__ */
|
|
235
|
+
/* @__PURE__ */ C(t, {
|
|
236
236
|
title: "App Usage Records",
|
|
237
|
-
value:
|
|
237
|
+
value: J?.applicationUsageCount ?? 0
|
|
238
238
|
})
|
|
239
239
|
]
|
|
240
240
|
})]
|
|
241
241
|
}),
|
|
242
|
-
/* @__PURE__ */
|
|
242
|
+
/* @__PURE__ */ w("section", {
|
|
243
243
|
className: "mb-8",
|
|
244
244
|
children: [
|
|
245
|
-
/* @__PURE__ */
|
|
245
|
+
/* @__PURE__ */ w("h2", {
|
|
246
246
|
className: "mb-4 flex items-center gap-2 text-lg font-semibold text-text-primary",
|
|
247
|
-
children: [/* @__PURE__ */
|
|
247
|
+
children: [/* @__PURE__ */ C(p, { className: "h-5 w-5" }), "Feature Flags"]
|
|
248
248
|
}),
|
|
249
|
-
|
|
249
|
+
he ? /* @__PURE__ */ C(n, {}) : /* @__PURE__ */ C(T, {
|
|
250
250
|
className: "mb-4 overflow-hidden",
|
|
251
|
-
children: /* @__PURE__ */
|
|
251
|
+
children: /* @__PURE__ */ w("table", {
|
|
252
252
|
className: "w-full text-sm",
|
|
253
|
-
children: [/* @__PURE__ */
|
|
253
|
+
children: [/* @__PURE__ */ C("thead", {
|
|
254
254
|
className: "bg-bg-subtle",
|
|
255
|
-
children: /* @__PURE__ */
|
|
256
|
-
/* @__PURE__ */
|
|
255
|
+
children: /* @__PURE__ */ w("tr", { children: [
|
|
256
|
+
/* @__PURE__ */ C("th", {
|
|
257
257
|
className: "px-4 py-3 text-start font-medium text-text-secondary",
|
|
258
258
|
children: "Key"
|
|
259
259
|
}),
|
|
260
|
-
/* @__PURE__ */
|
|
260
|
+
/* @__PURE__ */ C("th", {
|
|
261
261
|
className: "px-4 py-3 text-start font-medium text-text-secondary",
|
|
262
262
|
children: "Category"
|
|
263
263
|
}),
|
|
264
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ C("th", {
|
|
265
265
|
className: "px-4 py-3 text-start font-medium text-text-secondary",
|
|
266
266
|
children: "Default"
|
|
267
267
|
}),
|
|
268
|
-
/* @__PURE__ */
|
|
268
|
+
/* @__PURE__ */ C("th", {
|
|
269
269
|
className: "px-4 py-3 text-start font-medium text-text-secondary",
|
|
270
270
|
children: "Current"
|
|
271
271
|
})
|
|
272
272
|
] })
|
|
273
|
-
}), /* @__PURE__ */
|
|
273
|
+
}), /* @__PURE__ */ C("tbody", { children: Ge.map((e) => /* @__PURE__ */ w("tr", {
|
|
274
274
|
className: "border-t border-border-subtle",
|
|
275
275
|
children: [
|
|
276
|
-
/* @__PURE__ */
|
|
276
|
+
/* @__PURE__ */ C("td", {
|
|
277
277
|
className: "px-4 py-3 font-mono text-text-primary",
|
|
278
278
|
children: e.key
|
|
279
279
|
}),
|
|
280
|
-
/* @__PURE__ */
|
|
280
|
+
/* @__PURE__ */ C("td", {
|
|
281
281
|
className: "px-4 py-3 text-text-secondary",
|
|
282
282
|
children: e.category
|
|
283
283
|
}),
|
|
284
|
-
/* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ C("td", {
|
|
285
285
|
className: "px-4 py-3 text-text-secondary",
|
|
286
286
|
children: String(e.defaultValue)
|
|
287
287
|
}),
|
|
288
|
-
/* @__PURE__ */
|
|
288
|
+
/* @__PURE__ */ C("td", {
|
|
289
289
|
className: "px-4 py-3",
|
|
290
|
-
children: /* @__PURE__ */
|
|
290
|
+
children: /* @__PURE__ */ C("span", {
|
|
291
291
|
className: `inline-flex rounded-full px-2 py-1 text-xs font-medium ${e.value ? "bg-status-success-bg text-status-success-text" : "bg-status-error-bg text-status-error-text"}`,
|
|
292
292
|
children: e.value ? "Enabled" : "Disabled"
|
|
293
293
|
})
|
|
@@ -296,253 +296,253 @@ var N = () => {
|
|
|
296
296
|
}, e.key)) })]
|
|
297
297
|
})
|
|
298
298
|
}),
|
|
299
|
-
/* @__PURE__ */ T
|
|
299
|
+
/* @__PURE__ */ w(T, {
|
|
300
300
|
className: "flex flex-wrap items-end gap-4 p-4",
|
|
301
301
|
children: [
|
|
302
|
-
/* @__PURE__ */
|
|
302
|
+
/* @__PURE__ */ w("div", {
|
|
303
303
|
className: "flex flex-col gap-1",
|
|
304
|
-
children: [/* @__PURE__ */
|
|
304
|
+
children: [/* @__PURE__ */ C("label", {
|
|
305
305
|
className: "text-xs font-medium text-text-secondary",
|
|
306
306
|
children: "Flag key"
|
|
307
|
-
}), /* @__PURE__ */
|
|
307
|
+
}), /* @__PURE__ */ C("input", {
|
|
308
308
|
type: "text",
|
|
309
|
-
value:
|
|
310
|
-
onChange: (e) =>
|
|
309
|
+
value: B,
|
|
310
|
+
onChange: (e) => V(e.target.value),
|
|
311
311
|
className: "rounded-md border border-border-subtle bg-bg-subtle px-3 py-2 text-sm text-text-primary"
|
|
312
312
|
})]
|
|
313
313
|
}),
|
|
314
|
-
/* @__PURE__ */
|
|
314
|
+
/* @__PURE__ */ w("div", {
|
|
315
315
|
className: "flex flex-col gap-1",
|
|
316
|
-
children: [/* @__PURE__ */
|
|
316
|
+
children: [/* @__PURE__ */ C("label", {
|
|
317
317
|
className: "text-xs font-medium text-text-secondary",
|
|
318
318
|
children: "Enabled"
|
|
319
|
-
}), /* @__PURE__ */
|
|
320
|
-
value: String(
|
|
321
|
-
onChange: (e) =>
|
|
319
|
+
}), /* @__PURE__ */ w(E, {
|
|
320
|
+
value: String(H),
|
|
321
|
+
onChange: (e) => U(e.target.value === "true"),
|
|
322
322
|
className: "rounded-md border border-border-subtle bg-bg-subtle px-3 py-2 text-sm text-text-primary",
|
|
323
|
-
children: [/* @__PURE__ */
|
|
323
|
+
children: [/* @__PURE__ */ C("option", {
|
|
324
324
|
value: "true",
|
|
325
325
|
children: "true"
|
|
326
|
-
}), /* @__PURE__ */
|
|
326
|
+
}), /* @__PURE__ */ C("option", {
|
|
327
327
|
value: "false",
|
|
328
328
|
children: "false"
|
|
329
329
|
})]
|
|
330
330
|
})]
|
|
331
331
|
}),
|
|
332
|
-
/* @__PURE__ */
|
|
332
|
+
/* @__PURE__ */ w("button", {
|
|
333
333
|
type: "button",
|
|
334
|
-
onClick:
|
|
335
|
-
disabled:
|
|
334
|
+
onClick: qe,
|
|
335
|
+
disabled: Pe,
|
|
336
336
|
className: "inline-flex items-center gap-2 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",
|
|
337
|
-
children: [/* @__PURE__ */
|
|
337
|
+
children: [/* @__PURE__ */ C(p, { className: "h-4 w-4" }), "Set Override"]
|
|
338
338
|
}),
|
|
339
|
-
/* @__PURE__ */
|
|
339
|
+
/* @__PURE__ */ w("button", {
|
|
340
340
|
type: "button",
|
|
341
|
-
onClick:
|
|
342
|
-
disabled:
|
|
341
|
+
onClick: Je,
|
|
342
|
+
disabled: Ie,
|
|
343
343
|
className: "inline-flex items-center gap-2 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",
|
|
344
|
-
children: [/* @__PURE__ */
|
|
344
|
+
children: [/* @__PURE__ */ C(g, { className: "h-4 w-4" }), "Remove Override"]
|
|
345
345
|
})
|
|
346
346
|
]
|
|
347
347
|
})
|
|
348
348
|
]
|
|
349
349
|
}),
|
|
350
|
-
/* @__PURE__ */
|
|
350
|
+
/* @__PURE__ */ w("section", {
|
|
351
351
|
className: "mb-8",
|
|
352
352
|
children: [
|
|
353
|
-
/* @__PURE__ */
|
|
353
|
+
/* @__PURE__ */ w("h2", {
|
|
354
354
|
className: "mb-4 flex items-center gap-2 text-lg font-semibold text-text-primary",
|
|
355
|
-
children: [/* @__PURE__ */
|
|
355
|
+
children: [/* @__PURE__ */ C(m, { className: "h-5 w-5" }), "Workspace Quotas"]
|
|
356
356
|
}),
|
|
357
|
-
|
|
357
|
+
ve ? /* @__PURE__ */ C(n, {}) : /* @__PURE__ */ C(T, {
|
|
358
358
|
className: "mb-4 overflow-hidden",
|
|
359
|
-
children: /* @__PURE__ */
|
|
359
|
+
children: /* @__PURE__ */ w("table", {
|
|
360
360
|
className: "w-full text-sm",
|
|
361
|
-
children: [/* @__PURE__ */
|
|
361
|
+
children: [/* @__PURE__ */ C("thead", {
|
|
362
362
|
className: "bg-bg-subtle",
|
|
363
|
-
children: /* @__PURE__ */
|
|
364
|
-
/* @__PURE__ */
|
|
363
|
+
children: /* @__PURE__ */ w("tr", { children: [
|
|
364
|
+
/* @__PURE__ */ C("th", {
|
|
365
365
|
className: "px-4 py-3 text-start font-medium text-text-secondary",
|
|
366
366
|
children: "Quota"
|
|
367
367
|
}),
|
|
368
|
-
/* @__PURE__ */
|
|
368
|
+
/* @__PURE__ */ C("th", {
|
|
369
369
|
className: "px-4 py-3 text-start font-medium text-text-secondary",
|
|
370
370
|
children: "Product"
|
|
371
371
|
}),
|
|
372
|
-
/* @__PURE__ */
|
|
372
|
+
/* @__PURE__ */ C("th", {
|
|
373
373
|
className: "px-4 py-3 text-start font-medium text-text-secondary",
|
|
374
374
|
children: "Limit"
|
|
375
375
|
}),
|
|
376
|
-
/* @__PURE__ */
|
|
376
|
+
/* @__PURE__ */ C("th", {
|
|
377
377
|
className: "px-4 py-3 text-start font-medium text-text-secondary",
|
|
378
378
|
children: "Used"
|
|
379
379
|
}),
|
|
380
|
-
/* @__PURE__ */
|
|
380
|
+
/* @__PURE__ */ C("th", {
|
|
381
381
|
className: "px-4 py-3 text-start font-medium text-text-secondary",
|
|
382
382
|
children: "Reset"
|
|
383
383
|
}),
|
|
384
|
-
/* @__PURE__ */
|
|
384
|
+
/* @__PURE__ */ C("th", {
|
|
385
385
|
className: "px-4 py-3 text-start font-medium text-text-secondary",
|
|
386
386
|
children: "Active"
|
|
387
387
|
})
|
|
388
388
|
] })
|
|
389
|
-
}), /* @__PURE__ */
|
|
389
|
+
}), /* @__PURE__ */ w("tbody", { children: [Y.map((e) => /* @__PURE__ */ w("tr", {
|
|
390
390
|
className: "border-t border-border-subtle",
|
|
391
391
|
children: [
|
|
392
|
-
/* @__PURE__ */
|
|
392
|
+
/* @__PURE__ */ C("td", {
|
|
393
393
|
className: "px-4 py-3 font-mono text-text-primary",
|
|
394
394
|
children: e.quotaName
|
|
395
395
|
}),
|
|
396
|
-
/* @__PURE__ */
|
|
396
|
+
/* @__PURE__ */ C("td", {
|
|
397
397
|
className: "px-4 py-3 text-text-secondary",
|
|
398
398
|
children: e.productId
|
|
399
399
|
}),
|
|
400
|
-
/* @__PURE__ */
|
|
400
|
+
/* @__PURE__ */ C("td", {
|
|
401
401
|
className: "px-4 py-3 text-text-secondary",
|
|
402
|
-
children: e.noLimit ? "Unlimited" :
|
|
402
|
+
children: e.noLimit ? "Unlimited" : N(e.limit)
|
|
403
403
|
}),
|
|
404
|
-
/* @__PURE__ */
|
|
404
|
+
/* @__PURE__ */ C("td", {
|
|
405
405
|
className: "px-4 py-3 text-text-secondary",
|
|
406
|
-
children:
|
|
406
|
+
children: N(e.used)
|
|
407
407
|
}),
|
|
408
|
-
/* @__PURE__ */
|
|
408
|
+
/* @__PURE__ */ C("td", {
|
|
409
409
|
className: "px-4 py-3 text-text-secondary",
|
|
410
410
|
children: e.resetPeriod
|
|
411
411
|
}),
|
|
412
|
-
/* @__PURE__ */
|
|
412
|
+
/* @__PURE__ */ C("td", {
|
|
413
413
|
className: "px-4 py-3 text-text-secondary",
|
|
414
414
|
children: e.isActive ? "Yes" : "No"
|
|
415
415
|
})
|
|
416
416
|
]
|
|
417
|
-
}, e.id)),
|
|
417
|
+
}, e.id)), Y.length === 0 && /* @__PURE__ */ C("tr", { children: /* @__PURE__ */ C("td", {
|
|
418
418
|
colSpan: 6,
|
|
419
419
|
className: "px-4 py-3 text-center text-text-secondary",
|
|
420
420
|
children: "No quota assignments for this workspace."
|
|
421
421
|
}) })] })]
|
|
422
422
|
})
|
|
423
423
|
}),
|
|
424
|
-
/* @__PURE__ */ T
|
|
424
|
+
/* @__PURE__ */ w(T, {
|
|
425
425
|
className: "flex flex-wrap items-end gap-4 p-4",
|
|
426
426
|
children: [
|
|
427
|
-
/* @__PURE__ */
|
|
427
|
+
/* @__PURE__ */ w("div", {
|
|
428
428
|
className: "flex flex-col gap-1",
|
|
429
|
-
children: [/* @__PURE__ */
|
|
429
|
+
children: [/* @__PURE__ */ C("label", {
|
|
430
430
|
className: "text-xs font-medium text-text-secondary",
|
|
431
431
|
children: "Quota name"
|
|
432
|
-
}), /* @__PURE__ */
|
|
432
|
+
}), /* @__PURE__ */ C("input", {
|
|
433
433
|
type: "text",
|
|
434
|
-
value:
|
|
435
|
-
onChange: (e) =>
|
|
434
|
+
value: W,
|
|
435
|
+
onChange: (e) => G(e.target.value),
|
|
436
436
|
className: "rounded-md border border-border-subtle bg-bg-subtle px-3 py-2 text-sm text-text-primary"
|
|
437
437
|
})]
|
|
438
438
|
}),
|
|
439
|
-
/* @__PURE__ */
|
|
439
|
+
/* @__PURE__ */ w("div", {
|
|
440
440
|
className: "flex flex-col gap-1",
|
|
441
|
-
children: [/* @__PURE__ */
|
|
441
|
+
children: [/* @__PURE__ */ C("label", {
|
|
442
442
|
className: "text-xs font-medium text-text-secondary",
|
|
443
443
|
children: "Limit (empty = unlimited)"
|
|
444
|
-
}), /* @__PURE__ */
|
|
444
|
+
}), /* @__PURE__ */ C("input", {
|
|
445
445
|
type: "number",
|
|
446
|
-
value:
|
|
447
|
-
onChange: (e) =>
|
|
446
|
+
value: K,
|
|
447
|
+
onChange: (e) => ce(e.target.value),
|
|
448
448
|
className: "rounded-md border border-border-subtle bg-bg-subtle px-3 py-2 text-sm text-text-primary"
|
|
449
449
|
})]
|
|
450
450
|
}),
|
|
451
|
-
/* @__PURE__ */
|
|
451
|
+
/* @__PURE__ */ w("button", {
|
|
452
452
|
type: "button",
|
|
453
|
-
onClick:
|
|
454
|
-
disabled:
|
|
453
|
+
onClick: Ye,
|
|
454
|
+
disabled: Re,
|
|
455
455
|
className: "inline-flex items-center gap-2 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",
|
|
456
|
-
children: [/* @__PURE__ */
|
|
456
|
+
children: [/* @__PURE__ */ C(m, { className: "h-4 w-4" }), "Override Quota"]
|
|
457
457
|
})
|
|
458
458
|
]
|
|
459
459
|
})
|
|
460
460
|
]
|
|
461
461
|
}),
|
|
462
|
-
/* @__PURE__ */
|
|
462
|
+
/* @__PURE__ */ w("section", {
|
|
463
463
|
className: "mb-8",
|
|
464
464
|
children: [
|
|
465
|
-
/* @__PURE__ */
|
|
465
|
+
/* @__PURE__ */ w("h2", {
|
|
466
466
|
className: "mb-4 flex items-center gap-2 text-lg font-semibold text-text-primary",
|
|
467
|
-
children: [/* @__PURE__ */
|
|
467
|
+
children: [/* @__PURE__ */ C(se, { className: "h-5 w-5" }), "User Data Export / Erasure"]
|
|
468
468
|
}),
|
|
469
|
-
/* @__PURE__ */ T
|
|
469
|
+
/* @__PURE__ */ w(T, {
|
|
470
470
|
className: "flex flex-wrap items-end gap-4 p-4",
|
|
471
471
|
children: [
|
|
472
|
-
/* @__PURE__ */
|
|
472
|
+
/* @__PURE__ */ w("div", {
|
|
473
473
|
className: "flex flex-col gap-1",
|
|
474
|
-
children: [/* @__PURE__ */
|
|
474
|
+
children: [/* @__PURE__ */ C("label", {
|
|
475
475
|
className: "text-xs font-medium text-text-secondary",
|
|
476
476
|
children: "Target user ID"
|
|
477
|
-
}), /* @__PURE__ */
|
|
477
|
+
}), /* @__PURE__ */ C("input", {
|
|
478
478
|
type: "text",
|
|
479
|
-
value:
|
|
480
|
-
onChange: (e) =>
|
|
479
|
+
value: R,
|
|
480
|
+
onChange: (e) => z(e.target.value),
|
|
481
481
|
placeholder: "user-uuid",
|
|
482
482
|
className: "rounded-md border border-border-subtle bg-bg-subtle px-3 py-2 text-sm text-text-primary"
|
|
483
483
|
})]
|
|
484
484
|
}),
|
|
485
|
-
/* @__PURE__ */
|
|
485
|
+
/* @__PURE__ */ w("button", {
|
|
486
486
|
type: "button",
|
|
487
|
-
onClick:
|
|
488
|
-
disabled:
|
|
487
|
+
onClick: Xe,
|
|
488
|
+
disabled: Be,
|
|
489
489
|
className: "inline-flex items-center gap-2 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",
|
|
490
|
-
children: [/* @__PURE__ */
|
|
490
|
+
children: [/* @__PURE__ */ C(f, { className: "h-4 w-4" }), "Export User Data"]
|
|
491
491
|
}),
|
|
492
|
-
/* @__PURE__ */
|
|
492
|
+
/* @__PURE__ */ w("button", {
|
|
493
493
|
type: "button",
|
|
494
|
-
onClick:
|
|
495
|
-
disabled:
|
|
494
|
+
onClick: Ze,
|
|
495
|
+
disabled: He,
|
|
496
496
|
className: "inline-flex items-center gap-2 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",
|
|
497
|
-
children: [/* @__PURE__ */
|
|
497
|
+
children: [/* @__PURE__ */ C(v, { className: "h-4 w-4" }), "Request Erasure"]
|
|
498
498
|
})
|
|
499
499
|
]
|
|
500
500
|
}),
|
|
501
|
-
|
|
501
|
+
Se ? /* @__PURE__ */ C(n, {}) : /* @__PURE__ */ C(T, {
|
|
502
502
|
className: "mt-4 overflow-hidden",
|
|
503
|
-
children: /* @__PURE__ */
|
|
503
|
+
children: /* @__PURE__ */ w("table", {
|
|
504
504
|
className: "w-full text-sm",
|
|
505
|
-
children: [/* @__PURE__ */
|
|
505
|
+
children: [/* @__PURE__ */ C("thead", {
|
|
506
506
|
className: "bg-bg-subtle",
|
|
507
|
-
children: /* @__PURE__ */
|
|
508
|
-
/* @__PURE__ */
|
|
507
|
+
children: /* @__PURE__ */ w("tr", { children: [
|
|
508
|
+
/* @__PURE__ */ C("th", {
|
|
509
509
|
className: "px-4 py-3 text-start font-medium text-text-secondary",
|
|
510
510
|
children: "User"
|
|
511
511
|
}),
|
|
512
|
-
/* @__PURE__ */
|
|
512
|
+
/* @__PURE__ */ C("th", {
|
|
513
513
|
className: "px-4 py-3 text-start font-medium text-text-secondary",
|
|
514
514
|
children: "Status"
|
|
515
515
|
}),
|
|
516
|
-
/* @__PURE__ */
|
|
516
|
+
/* @__PURE__ */ C("th", {
|
|
517
517
|
className: "px-4 py-3 text-start font-medium text-text-secondary",
|
|
518
518
|
children: "Requested By"
|
|
519
519
|
}),
|
|
520
|
-
/* @__PURE__ */
|
|
520
|
+
/* @__PURE__ */ C("th", {
|
|
521
521
|
className: "px-4 py-3 text-start font-medium text-text-secondary",
|
|
522
522
|
children: "Requested At"
|
|
523
523
|
})
|
|
524
524
|
] })
|
|
525
|
-
}), /* @__PURE__ */
|
|
525
|
+
}), /* @__PURE__ */ w("tbody", { children: [X.map((e) => /* @__PURE__ */ w("tr", {
|
|
526
526
|
className: "border-t border-border-subtle",
|
|
527
527
|
children: [
|
|
528
|
-
/* @__PURE__ */
|
|
528
|
+
/* @__PURE__ */ C("td", {
|
|
529
529
|
className: "px-4 py-3 font-mono text-text-primary",
|
|
530
530
|
children: e.userId
|
|
531
531
|
}),
|
|
532
|
-
/* @__PURE__ */
|
|
532
|
+
/* @__PURE__ */ C("td", {
|
|
533
533
|
className: "px-4 py-3 text-text-secondary",
|
|
534
534
|
children: e.status
|
|
535
535
|
}),
|
|
536
|
-
/* @__PURE__ */
|
|
536
|
+
/* @__PURE__ */ C("td", {
|
|
537
537
|
className: "px-4 py-3 text-text-secondary",
|
|
538
538
|
children: e.requestedBy
|
|
539
539
|
}),
|
|
540
|
-
/* @__PURE__ */
|
|
540
|
+
/* @__PURE__ */ C("td", {
|
|
541
541
|
className: "px-4 py-3 text-text-secondary",
|
|
542
542
|
children: new Date(e.requestedAt).toLocaleString()
|
|
543
543
|
})
|
|
544
544
|
]
|
|
545
|
-
}, e.id)),
|
|
545
|
+
}, e.id)), X.length === 0 && /* @__PURE__ */ C("tr", { children: /* @__PURE__ */ C("td", {
|
|
546
546
|
colSpan: 4,
|
|
547
547
|
className: "px-4 py-3 text-center text-text-secondary",
|
|
548
548
|
children: "No erasure requests."
|
|
@@ -551,66 +551,66 @@ var N = () => {
|
|
|
551
551
|
})
|
|
552
552
|
]
|
|
553
553
|
}),
|
|
554
|
-
/* @__PURE__ */
|
|
554
|
+
/* @__PURE__ */ w("section", {
|
|
555
555
|
className: "mb-8",
|
|
556
556
|
children: [
|
|
557
|
-
/* @__PURE__ */
|
|
557
|
+
/* @__PURE__ */ w("h2", {
|
|
558
558
|
className: "mb-4 flex items-center gap-2 text-lg font-semibold text-text-primary",
|
|
559
|
-
children: [/* @__PURE__ */
|
|
559
|
+
children: [/* @__PURE__ */ C(y, { className: "h-5 w-5" }), "Impersonation Audit"]
|
|
560
560
|
}),
|
|
561
|
-
/* @__PURE__ */ T
|
|
561
|
+
/* @__PURE__ */ w(T, {
|
|
562
562
|
className: "flex flex-wrap items-end gap-4 p-4",
|
|
563
|
-
children: [/* @__PURE__ */
|
|
563
|
+
children: [/* @__PURE__ */ w("div", {
|
|
564
564
|
className: "flex flex-col gap-1",
|
|
565
|
-
children: [/* @__PURE__ */
|
|
565
|
+
children: [/* @__PURE__ */ C("label", {
|
|
566
566
|
className: "text-xs font-medium text-text-secondary",
|
|
567
567
|
children: "Reason"
|
|
568
|
-
}), /* @__PURE__ */
|
|
568
|
+
}), /* @__PURE__ */ C("input", {
|
|
569
569
|
type: "text",
|
|
570
|
-
value:
|
|
571
|
-
onChange: (e) =>
|
|
570
|
+
value: q,
|
|
571
|
+
onChange: (e) => le(e.target.value),
|
|
572
572
|
className: "rounded-md border border-border-subtle bg-bg-subtle px-3 py-2 text-sm text-text-primary"
|
|
573
573
|
})]
|
|
574
|
-
}), /* @__PURE__ */
|
|
574
|
+
}), /* @__PURE__ */ w("button", {
|
|
575
575
|
type: "button",
|
|
576
|
-
onClick:
|
|
577
|
-
disabled:
|
|
576
|
+
onClick: Qe,
|
|
577
|
+
disabled: We,
|
|
578
578
|
className: "inline-flex items-center gap-2 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",
|
|
579
|
-
children: [/* @__PURE__ */
|
|
579
|
+
children: [/* @__PURE__ */ C(y, { className: "h-4 w-4" }), "Record Session"]
|
|
580
580
|
})]
|
|
581
581
|
}),
|
|
582
|
-
|
|
582
|
+
Ee ? /* @__PURE__ */ C(n, {}) : /* @__PURE__ */ C(T, {
|
|
583
583
|
className: "mt-4 overflow-hidden",
|
|
584
|
-
children: /* @__PURE__ */
|
|
584
|
+
children: /* @__PURE__ */ w("table", {
|
|
585
585
|
className: "w-full text-sm",
|
|
586
|
-
children: [/* @__PURE__ */
|
|
586
|
+
children: [/* @__PURE__ */ C("thead", {
|
|
587
587
|
className: "bg-bg-subtle",
|
|
588
|
-
children: /* @__PURE__ */
|
|
589
|
-
/* @__PURE__ */
|
|
588
|
+
children: /* @__PURE__ */ w("tr", { children: [
|
|
589
|
+
/* @__PURE__ */ C("th", {
|
|
590
590
|
className: "px-4 py-3 text-start font-medium text-text-secondary",
|
|
591
591
|
children: "Target User"
|
|
592
592
|
}),
|
|
593
|
-
/* @__PURE__ */
|
|
593
|
+
/* @__PURE__ */ C("th", {
|
|
594
594
|
className: "px-4 py-3 text-start font-medium text-text-secondary",
|
|
595
595
|
children: "Actor"
|
|
596
596
|
}),
|
|
597
|
-
/* @__PURE__ */
|
|
597
|
+
/* @__PURE__ */ C("th", {
|
|
598
598
|
className: "px-4 py-3 text-start font-medium text-text-secondary",
|
|
599
599
|
children: "Reason"
|
|
600
600
|
}),
|
|
601
|
-
/* @__PURE__ */
|
|
601
|
+
/* @__PURE__ */ C("th", {
|
|
602
602
|
className: "px-4 py-3 text-start font-medium text-text-secondary",
|
|
603
603
|
children: "Started At"
|
|
604
604
|
})
|
|
605
605
|
] })
|
|
606
|
-
}), /* @__PURE__ */
|
|
606
|
+
}), /* @__PURE__ */ w("tbody", { children: [Z.map((e) => /* @__PURE__ */ w("tr", {
|
|
607
607
|
className: "border-t border-border-subtle",
|
|
608
608
|
children: [
|
|
609
|
-
/* @__PURE__ */
|
|
609
|
+
/* @__PURE__ */ C("td", {
|
|
610
610
|
className: "px-4 py-3 font-mono text-text-primary",
|
|
611
611
|
children: e.targetUserId
|
|
612
612
|
}),
|
|
613
|
-
/* @__PURE__ */
|
|
613
|
+
/* @__PURE__ */ w("td", {
|
|
614
614
|
className: "px-4 py-3 text-text-secondary",
|
|
615
615
|
children: [
|
|
616
616
|
e.actorId,
|
|
@@ -619,16 +619,16 @@ var N = () => {
|
|
|
619
619
|
")"
|
|
620
620
|
]
|
|
621
621
|
}),
|
|
622
|
-
/* @__PURE__ */
|
|
622
|
+
/* @__PURE__ */ C("td", {
|
|
623
623
|
className: "px-4 py-3 text-text-secondary",
|
|
624
624
|
children: e.reason ?? "—"
|
|
625
625
|
}),
|
|
626
|
-
/* @__PURE__ */
|
|
626
|
+
/* @__PURE__ */ C("td", {
|
|
627
627
|
className: "px-4 py-3 text-text-secondary",
|
|
628
628
|
children: new Date(e.startedAt).toLocaleString()
|
|
629
629
|
})
|
|
630
630
|
]
|
|
631
|
-
}, e.id)),
|
|
631
|
+
}, e.id)), Z.length === 0 && /* @__PURE__ */ C("tr", { children: /* @__PURE__ */ C("td", {
|
|
632
632
|
colSpan: 4,
|
|
633
633
|
className: "px-4 py-3 text-center text-text-secondary",
|
|
634
634
|
children: "No impersonation sessions recorded."
|
|
@@ -637,28 +637,28 @@ var N = () => {
|
|
|
637
637
|
})
|
|
638
638
|
]
|
|
639
639
|
}),
|
|
640
|
-
/* @__PURE__ */
|
|
640
|
+
/* @__PURE__ */ w("section", { children: [/* @__PURE__ */ w("h2", {
|
|
641
641
|
className: "mb-4 flex items-center gap-2 text-lg font-semibold text-text-primary",
|
|
642
|
-
children: [/* @__PURE__ */
|
|
643
|
-
}), /* @__PURE__ */ T
|
|
642
|
+
children: [/* @__PURE__ */ C(h, { className: "h-5 w-5" }), "Maintenance"]
|
|
643
|
+
}), /* @__PURE__ */ w(T, {
|
|
644
644
|
className: "flex flex-wrap items-center gap-4 p-4",
|
|
645
|
-
children: [/* @__PURE__ */
|
|
645
|
+
children: [/* @__PURE__ */ w("button", {
|
|
646
646
|
type: "button",
|
|
647
|
-
onClick:
|
|
648
|
-
disabled:
|
|
647
|
+
onClick: Q,
|
|
648
|
+
disabled: Ae,
|
|
649
649
|
className: "inline-flex items-center gap-2 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",
|
|
650
|
-
children: [/* @__PURE__ */
|
|
651
|
-
}), /* @__PURE__ */
|
|
650
|
+
children: [/* @__PURE__ */ C(h, { className: "h-4 w-4" }), "Reprocess Timeline"]
|
|
651
|
+
}), /* @__PURE__ */ w("button", {
|
|
652
652
|
type: "button",
|
|
653
|
-
onClick:
|
|
654
|
-
disabled:
|
|
653
|
+
onClick: Ke,
|
|
654
|
+
disabled: Me,
|
|
655
655
|
className: "inline-flex items-center gap-2 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",
|
|
656
|
-
children: [/* @__PURE__ */
|
|
656
|
+
children: [/* @__PURE__ */ C(g, { className: "h-4 w-4" }), "Reset Demo Data"]
|
|
657
657
|
})]
|
|
658
658
|
})] })
|
|
659
659
|
]
|
|
660
660
|
});
|
|
661
|
-
},
|
|
662
|
-
export {
|
|
661
|
+
}, F = () => /* @__PURE__ */ C(r, { children: /* @__PURE__ */ C(P, {}) });
|
|
662
|
+
export { F as AdminPage };
|
|
663
663
|
|
|
664
664
|
//# sourceMappingURL=AdminPage.js.map
|