@burdenoff/microfe-support 2026.802.1 → 2026.817.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.
@@ -0,0 +1,459 @@
1
+ import { Badge as e, Button as t, Dialog as n, DialogContent as r, DialogDescription as i, DialogFooter as a, DialogHeader as o, DialogTitle as s, DropdownMenu as ee, DropdownMenuContent as te, DropdownMenuItem as c, DropdownMenuTrigger as ne, Input as l, Label as u, Textarea as d } from "../components/ui.js";
2
+ import { useCreateInterviewerMutation as f, useDeleteInterviewerMutation as p, useGetInterviewersQuery as m, useUpdateInterviewerMutation as h } from "../../generated/global-operations.js";
3
+ import { cn as g } from "../utils/cn.js";
4
+ import { EmptyState as _, LoadingState as re, PageLayout as v } from "../components/PageLayout.js";
5
+ import { nativeNotify as y } from "../../utils/nativeBridge.js";
6
+ import { useEffect as ie, useMemo as ae, useState as b } from "react";
7
+ import { Check as oe, Loader2 as x, MoreHorizontal as se, Pencil as ce, Plus as S, Search as C, Trash2 as w, Users as T, X as E } from "lucide-react";
8
+ import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
9
+ //#region src/support/pages/InterviewersPage.tsx
10
+ var A = {
11
+ name: "",
12
+ email: "",
13
+ userId: "",
14
+ department: "",
15
+ title: "",
16
+ isActive: !0,
17
+ notes: ""
18
+ };
19
+ function le(e) {
20
+ return {
21
+ name: e.name.trim(),
22
+ email: e.email.trim(),
23
+ userId: e.userId.trim() || void 0,
24
+ department: e.department.trim() || void 0,
25
+ title: e.title.trim() || void 0,
26
+ isActive: e.isActive,
27
+ notes: e.notes.trim() || void 0
28
+ };
29
+ }
30
+ function ue(e) {
31
+ return new Date(e).toLocaleDateString("en-US", {
32
+ month: "short",
33
+ day: "numeric",
34
+ year: "numeric"
35
+ });
36
+ }
37
+ function j() {
38
+ let [j, de] = b(""), [M, fe] = b(""), [N, P] = b(!1), [F, I] = b(null), [L, R] = b(A), [z, B] = b({}), [V, H] = b(!1), [U, W] = b(null);
39
+ ie(() => {
40
+ let e = setTimeout(() => fe(j.trim()), 300);
41
+ return () => clearTimeout(e);
42
+ }, [j]);
43
+ let { data: G, loading: pe, error: K, refetch: q } = m({
44
+ variables: {
45
+ filter: ae(() => {
46
+ let e = {};
47
+ return M && (e.search = M), e;
48
+ }, [M]),
49
+ limit: 50,
50
+ offset: 0
51
+ },
52
+ fetchPolicy: "cache-and-network"
53
+ }), J = G?.interviewers?.items ?? [], Y = G?.interviewers?.total ?? 0, [me, { loading: he }] = f({
54
+ onCompleted: () => {
55
+ y("success"), Q(), q();
56
+ },
57
+ onError: () => {
58
+ y("error");
59
+ }
60
+ }), [ge, { loading: _e }] = h({
61
+ onCompleted: () => {
62
+ y("success"), Q(), q();
63
+ },
64
+ onError: () => {
65
+ y("error");
66
+ }
67
+ }), [ve, { loading: X }] = p({
68
+ onCompleted: () => {
69
+ y("success"), H(!1), W(null), q();
70
+ },
71
+ onError: () => {
72
+ y("error"), H(!1), W(null);
73
+ }
74
+ }), Z = () => {
75
+ I(null), R(A), B({}), P(!0);
76
+ }, ye = (e) => {
77
+ I(e), R({
78
+ name: e.name,
79
+ email: e.email,
80
+ userId: e.userId ?? "",
81
+ department: e.department ?? "",
82
+ title: e.title ?? "",
83
+ isActive: e.isActive,
84
+ notes: e.notes ?? ""
85
+ }), B({}), P(!0);
86
+ }, Q = () => {
87
+ P(!1), I(null), R(A), B({});
88
+ }, be = () => {
89
+ let e = {};
90
+ return L.name.trim() || (e.name = "Name is required"), L.email.trim() ? /^\S+@\S+\.\S+$/.test(L.email.trim()) || (e.email = "Enter a valid email") : e.email = "Email is required", B(e), Object.keys(e).length === 0;
91
+ }, xe = (e) => {
92
+ if (e.preventDefault(), !be()) return;
93
+ let t = le(L);
94
+ F ? ge({ variables: {
95
+ id: F.id,
96
+ input: t
97
+ } }) : me({ variables: { input: t } });
98
+ }, Se = (e) => {
99
+ W(e), H(!0);
100
+ }, Ce = () => {
101
+ U && ve({ variables: { id: U.id } });
102
+ }, $ = he || _e;
103
+ return K ? /* @__PURE__ */ O(v, {
104
+ title: "Interviewers",
105
+ subtitle: "Manage interview panel members",
106
+ icon: /* @__PURE__ */ O(T, { size: 24 }),
107
+ children: /* @__PURE__ */ O(_, {
108
+ icon: /* @__PURE__ */ O(E, { size: 48 }),
109
+ title: "Failed to load interviewers",
110
+ description: K.message,
111
+ action: /* @__PURE__ */ O(t, {
112
+ variant: "outline",
113
+ onClick: () => void q(),
114
+ children: "Retry"
115
+ })
116
+ })
117
+ }) : /* @__PURE__ */ k(v, {
118
+ title: "Interviewers",
119
+ subtitle: "Manage interview panel members",
120
+ icon: /* @__PURE__ */ O(T, { size: 24 }),
121
+ headerActions: /* @__PURE__ */ k(t, {
122
+ onClick: Z,
123
+ children: [/* @__PURE__ */ O(S, { size: 18 }), "New Interviewer"]
124
+ }),
125
+ children: [
126
+ /* @__PURE__ */ O("div", {
127
+ className: "flex flex-col sm:flex-row gap-3",
128
+ children: /* @__PURE__ */ k("div", {
129
+ className: "relative flex-1",
130
+ children: [/* @__PURE__ */ O(C, {
131
+ size: 16,
132
+ className: "absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"
133
+ }), /* @__PURE__ */ O(l, {
134
+ type: "text",
135
+ "aria-label": "Search interviewers",
136
+ placeholder: "Search by name, email, department, or title...",
137
+ value: j,
138
+ onChange: (e) => de(e.target.value),
139
+ className: "pl-9"
140
+ })]
141
+ })
142
+ }),
143
+ pe && J.length === 0 ? /* @__PURE__ */ O(re, { message: "Loading interviewers…" }) : J.length === 0 ? /* @__PURE__ */ O(_, {
144
+ illustration: "empty-people",
145
+ title: M ? "No interviewers found" : "No interviewers yet",
146
+ description: M ? "Try adjusting your search terms." : "Add interviewers so you can assign them to interview rounds.",
147
+ action: M ? void 0 : /* @__PURE__ */ k(t, {
148
+ onClick: Z,
149
+ children: [/* @__PURE__ */ O(S, { size: 18 }), "Add Interviewer"]
150
+ })
151
+ }) : /* @__PURE__ */ O("div", {
152
+ className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",
153
+ children: J.map((n) => /* @__PURE__ */ k("div", {
154
+ className: "p-4 rounded-xl border border-border-seam bg-bg-surface shadow-[var(--shadow-pop)] hover:shadow-[var(--shadow-pop-hover)] hover:border-border-strong transition-[box-shadow,border-color] duration-200",
155
+ children: [
156
+ /* @__PURE__ */ k("div", {
157
+ className: "flex items-start justify-between gap-3 mb-3",
158
+ children: [/* @__PURE__ */ k("div", {
159
+ className: "min-w-0",
160
+ children: [/* @__PURE__ */ O("h3", {
161
+ className: "font-semibold text-text-primary truncate",
162
+ children: n.name
163
+ }), /* @__PURE__ */ O("p", {
164
+ className: "text-sm text-text-secondary truncate",
165
+ children: n.email
166
+ })]
167
+ }), /* @__PURE__ */ k(ee, { children: [/* @__PURE__ */ O(ne, {
168
+ asChild: !0,
169
+ children: /* @__PURE__ */ O(t, {
170
+ variant: "ghost",
171
+ size: "sm",
172
+ className: "h-8 w-8 p-0 flex-shrink-0",
173
+ children: /* @__PURE__ */ O(se, { size: 16 })
174
+ })
175
+ }), /* @__PURE__ */ k(te, {
176
+ align: "end",
177
+ children: [/* @__PURE__ */ k(c, {
178
+ onClick: () => ye(n),
179
+ children: [/* @__PURE__ */ O(ce, {
180
+ size: 14,
181
+ className: "mr-2"
182
+ }), "Edit"]
183
+ }), /* @__PURE__ */ k(c, {
184
+ onClick: () => Se(n),
185
+ className: "text-status-error-text focus:text-status-error-text",
186
+ children: [/* @__PURE__ */ O(w, {
187
+ size: 14,
188
+ className: "mr-2"
189
+ }), "Delete"]
190
+ })]
191
+ })] })]
192
+ }),
193
+ /* @__PURE__ */ k("div", {
194
+ className: "flex flex-wrap items-center gap-2 mb-3",
195
+ children: [n.isActive ? /* @__PURE__ */ k(e, {
196
+ className: "bg-status-success-bg-subtle text-status-success-text text-xs",
197
+ children: [/* @__PURE__ */ O(oe, {
198
+ size: 10,
199
+ className: "mr-1"
200
+ }), "Active"]
201
+ }) : /* @__PURE__ */ k(e, {
202
+ className: "bg-bg-sunken text-text-secondary text-xs",
203
+ children: [/* @__PURE__ */ O(E, {
204
+ size: 10,
205
+ className: "mr-1"
206
+ }), "Inactive"]
207
+ }), n.department && /* @__PURE__ */ O(e, {
208
+ variant: "outline",
209
+ className: "text-xs",
210
+ children: n.department
211
+ })]
212
+ }),
213
+ /* @__PURE__ */ k("div", {
214
+ className: "space-y-1 text-sm",
215
+ children: [n.title && /* @__PURE__ */ k("p", {
216
+ className: "text-text-secondary",
217
+ children: [
218
+ /* @__PURE__ */ O("span", {
219
+ className: "font-medium text-text-primary",
220
+ children: "Title:"
221
+ }),
222
+ " ",
223
+ n.title
224
+ ]
225
+ }), n.userId && /* @__PURE__ */ k("p", {
226
+ className: "text-text-secondary",
227
+ children: [
228
+ /* @__PURE__ */ O("span", {
229
+ className: "font-medium text-text-primary",
230
+ children: "User ID:"
231
+ }),
232
+ " ",
233
+ n.userId
234
+ ]
235
+ })]
236
+ }),
237
+ /* @__PURE__ */ k("p", {
238
+ className: "mt-3 text-xs text-text-secondary",
239
+ children: ["Added ", ue(n.createdAt)]
240
+ })
241
+ ]
242
+ }, n.id))
243
+ }),
244
+ Y > 0 && /* @__PURE__ */ k("p", {
245
+ className: "text-xs text-text-secondary",
246
+ children: [
247
+ Y,
248
+ " interviewer",
249
+ Y === 1 ? "" : "s"
250
+ ]
251
+ }),
252
+ /* @__PURE__ */ O(n, {
253
+ open: N,
254
+ onOpenChange: P,
255
+ children: /* @__PURE__ */ k(r, {
256
+ className: "sm:max-w-lg",
257
+ children: [
258
+ /* @__PURE__ */ k(o, { children: [/* @__PURE__ */ O(s, { children: F ? "Edit Interviewer" : "New Interviewer" }), /* @__PURE__ */ O(i, { children: F ? "Update the interviewer details below." : "Add a new person to the interviewer pool." })] }),
259
+ /* @__PURE__ */ k("form", {
260
+ id: "interviewer-form",
261
+ onSubmit: xe,
262
+ className: "space-y-4",
263
+ children: [
264
+ /* @__PURE__ */ k("div", {
265
+ className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
266
+ children: [/* @__PURE__ */ k("div", {
267
+ className: "space-y-1.5",
268
+ children: [
269
+ /* @__PURE__ */ k(u, {
270
+ htmlFor: "interviewer-name",
271
+ children: ["Name ", /* @__PURE__ */ O("span", {
272
+ className: "text-status-error-text",
273
+ children: "*"
274
+ })]
275
+ }),
276
+ /* @__PURE__ */ O(l, {
277
+ id: "interviewer-name",
278
+ value: L.name,
279
+ onChange: (e) => R((t) => ({
280
+ ...t,
281
+ name: e.target.value
282
+ })),
283
+ placeholder: "Full name",
284
+ "aria-invalid": !!z.name
285
+ }),
286
+ z.name && /* @__PURE__ */ O("p", {
287
+ className: "text-xs text-status-error-text",
288
+ children: z.name
289
+ })
290
+ ]
291
+ }), /* @__PURE__ */ k("div", {
292
+ className: "space-y-1.5",
293
+ children: [
294
+ /* @__PURE__ */ k(u, {
295
+ htmlFor: "interviewer-email",
296
+ children: ["Email ", /* @__PURE__ */ O("span", {
297
+ className: "text-status-error-text",
298
+ children: "*"
299
+ })]
300
+ }),
301
+ /* @__PURE__ */ O(l, {
302
+ id: "interviewer-email",
303
+ type: "email",
304
+ value: L.email,
305
+ onChange: (e) => R((t) => ({
306
+ ...t,
307
+ email: e.target.value
308
+ })),
309
+ placeholder: "email@example.com",
310
+ "aria-invalid": !!z.email
311
+ }),
312
+ z.email && /* @__PURE__ */ O("p", {
313
+ className: "text-xs text-status-error-text",
314
+ children: z.email
315
+ })
316
+ ]
317
+ })]
318
+ }),
319
+ /* @__PURE__ */ k("div", {
320
+ className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
321
+ children: [/* @__PURE__ */ k("div", {
322
+ className: "space-y-1.5",
323
+ children: [/* @__PURE__ */ O(u, {
324
+ htmlFor: "interviewer-userid",
325
+ children: "User ID"
326
+ }), /* @__PURE__ */ O(l, {
327
+ id: "interviewer-userid",
328
+ value: L.userId,
329
+ onChange: (e) => R((t) => ({
330
+ ...t,
331
+ userId: e.target.value
332
+ })),
333
+ placeholder: "Platform user ID (optional)"
334
+ })]
335
+ }), /* @__PURE__ */ k("div", {
336
+ className: "space-y-1.5",
337
+ children: [/* @__PURE__ */ O(u, {
338
+ htmlFor: "interviewer-department",
339
+ children: "Department"
340
+ }), /* @__PURE__ */ O(l, {
341
+ id: "interviewer-department",
342
+ value: L.department,
343
+ onChange: (e) => R((t) => ({
344
+ ...t,
345
+ department: e.target.value
346
+ })),
347
+ placeholder: "e.g. Engineering"
348
+ })]
349
+ })]
350
+ }),
351
+ /* @__PURE__ */ k("div", {
352
+ className: "space-y-1.5",
353
+ children: [/* @__PURE__ */ O(u, {
354
+ htmlFor: "interviewer-title",
355
+ children: "Title"
356
+ }), /* @__PURE__ */ O(l, {
357
+ id: "interviewer-title",
358
+ value: L.title,
359
+ onChange: (e) => R((t) => ({
360
+ ...t,
361
+ title: e.target.value
362
+ })),
363
+ placeholder: "e.g. Senior Engineer"
364
+ })]
365
+ }),
366
+ /* @__PURE__ */ k("div", {
367
+ className: "space-y-1.5",
368
+ children: [/* @__PURE__ */ O(u, {
369
+ htmlFor: "interviewer-notes",
370
+ children: "Notes"
371
+ }), /* @__PURE__ */ O(d, {
372
+ id: "interviewer-notes",
373
+ value: L.notes,
374
+ onChange: (e) => R((t) => ({
375
+ ...t,
376
+ notes: e.target.value
377
+ })),
378
+ placeholder: "Any additional notes about this interviewer",
379
+ rows: 3
380
+ })]
381
+ }),
382
+ /* @__PURE__ */ k("div", {
383
+ className: "flex items-center gap-3 rounded-lg border border-border-seam p-3",
384
+ children: [/* @__PURE__ */ O("input", {
385
+ id: "interviewer-active",
386
+ type: "checkbox",
387
+ checked: L.isActive,
388
+ onChange: (e) => R((t) => ({
389
+ ...t,
390
+ isActive: e.target.checked
391
+ })),
392
+ className: g("h-4 w-4 rounded border-border-strong text-action-primary-bg", "focus:ring-2 focus:ring-action-primary-bg/50")
393
+ }), /* @__PURE__ */ k("div", {
394
+ className: "space-y-0.5",
395
+ children: [/* @__PURE__ */ O(u, {
396
+ htmlFor: "interviewer-active",
397
+ className: "cursor-pointer",
398
+ children: "Active interviewer"
399
+ }), /* @__PURE__ */ O("p", {
400
+ className: "text-xs text-text-secondary",
401
+ children: "Inactive interviewers cannot be assigned to new rounds."
402
+ })]
403
+ })]
404
+ })
405
+ ]
406
+ }),
407
+ /* @__PURE__ */ k(a, { children: [/* @__PURE__ */ O(t, {
408
+ type: "button",
409
+ variant: "outline",
410
+ onClick: Q,
411
+ disabled: $,
412
+ children: "Cancel"
413
+ }), /* @__PURE__ */ O(t, {
414
+ type: "submit",
415
+ form: "interviewer-form",
416
+ disabled: $,
417
+ children: $ ? /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(x, {
418
+ size: 16,
419
+ className: "animate-spin mr-2"
420
+ }), "Saving…"] }) : F ? "Save Changes" : "Create Interviewer"
421
+ })] })
422
+ ]
423
+ })
424
+ }),
425
+ /* @__PURE__ */ O(n, {
426
+ open: V,
427
+ onOpenChange: H,
428
+ children: /* @__PURE__ */ k(r, {
429
+ className: "sm:max-w-md",
430
+ children: [/* @__PURE__ */ k(o, { children: [/* @__PURE__ */ O(s, { children: "Delete Interviewer?" }), /* @__PURE__ */ k(i, { children: [
431
+ "Are you sure you want to delete \"",
432
+ U?.name,
433
+ "\"? This action cannot be undone."
434
+ ] })] }), /* @__PURE__ */ k(a, { children: [/* @__PURE__ */ O(t, {
435
+ variant: "outline",
436
+ onClick: () => H(!1),
437
+ disabled: X,
438
+ children: "Cancel"
439
+ }), /* @__PURE__ */ O(t, {
440
+ variant: "destructive",
441
+ onClick: Ce,
442
+ disabled: X,
443
+ children: X ? /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(x, {
444
+ size: 16,
445
+ className: "animate-spin mr-2"
446
+ }), "Deleting…"] }) : /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(w, {
447
+ size: 16,
448
+ className: "mr-2"
449
+ }), "Delete"] })
450
+ })] })]
451
+ })
452
+ })
453
+ ]
454
+ });
455
+ }
456
+ //#endregion
457
+ export { j as InterviewersPage };
458
+
459
+ //# sourceMappingURL=InterviewersPage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InterviewersPage.js","names":[],"sources":["../../../src/support/pages/InterviewersPage.tsx"],"sourcesContent":["import { useEffect, useMemo, useState } from 'react';\nimport {\n Users,\n Search,\n Plus,\n MoreHorizontal,\n Pencil,\n Trash2,\n Loader2,\n Check,\n X,\n} from 'lucide-react';\nimport { nativeNotify } from '../../utils/nativeBridge';\nimport { cn } from '../utils/cn';\nimport { PageLayout, LoadingState, EmptyState } from '../components/PageLayout';\nimport {\n Button,\n Badge,\n Input,\n Label,\n Textarea,\n Dialog,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from '../components/ui';\nimport {\n useGetInterviewersQuery,\n useCreateInterviewerMutation,\n useUpdateInterviewerMutation,\n useDeleteInterviewerMutation,\n type GetInterviewersQuery,\n} from '../../generated/global-operations';\nimport type { InterviewerFilterInput } from '../../generated/global-types';\n\ntype Interviewer = GetInterviewersQuery['interviewers']['items'][number];\n\ntype InterviewerFormData = {\n name: string;\n email: string;\n userId: string;\n department: string;\n title: string;\n isActive: boolean;\n notes: string;\n};\n\nconst emptyForm: InterviewerFormData = {\n name: '',\n email: '',\n userId: '',\n department: '',\n title: '',\n isActive: true,\n notes: '',\n};\n\nfunction toInput(data: InterviewerFormData) {\n return {\n name: data.name.trim(),\n email: data.email.trim(),\n userId: data.userId.trim() || undefined,\n department: data.department.trim() || undefined,\n title: data.title.trim() || undefined,\n isActive: data.isActive,\n notes: data.notes.trim() || undefined,\n };\n}\n\nfunction formatDate(dateString: string): string {\n return new Date(dateString).toLocaleDateString('en-US', {\n month: 'short',\n day: 'numeric',\n year: 'numeric',\n });\n}\n\nexport function InterviewersPage() {\n const [search, setSearch] = useState('');\n const [debouncedSearch, setDebouncedSearch] = useState('');\n const [dialogOpen, setDialogOpen] = useState(false);\n const [editingInterviewer, setEditingInterviewer] = useState<Interviewer | null>(null);\n const [form, setForm] = useState<InterviewerFormData>(emptyForm);\n const [formErrors, setFormErrors] = useState<Record<string, string>>({});\n const [deleteDialogOpen, setDeleteDialogOpen] = useState(false);\n const [deletingInterviewer, setDeletingInterviewer] = useState<Interviewer | null>(null);\n\n useEffect(() => {\n const t = setTimeout(() => setDebouncedSearch(search.trim()), 300);\n return () => clearTimeout(t);\n }, [search]);\n\n const filter: InterviewerFilterInput = useMemo(() => {\n const f: InterviewerFilterInput = {};\n if (debouncedSearch) f.search = debouncedSearch;\n return f;\n }, [debouncedSearch]);\n\n const { data, loading, error, refetch } = useGetInterviewersQuery({\n variables: { filter, limit: 50, offset: 0 },\n fetchPolicy: 'cache-and-network',\n });\n\n const interviewers = data?.interviewers?.items ?? [];\n const total = data?.interviewers?.total ?? 0;\n\n const [createInterviewer, { loading: creating }] = useCreateInterviewerMutation({\n onCompleted: () => {\n nativeNotify('success');\n handleCloseDialog();\n void refetch();\n },\n onError: () => {\n nativeNotify('error');\n },\n });\n\n const [updateInterviewer, { loading: updating }] = useUpdateInterviewerMutation({\n onCompleted: () => {\n nativeNotify('success');\n handleCloseDialog();\n void refetch();\n },\n onError: () => {\n nativeNotify('error');\n },\n });\n\n const [deleteInterviewer, { loading: deleting }] = useDeleteInterviewerMutation({\n onCompleted: () => {\n nativeNotify('success');\n setDeleteDialogOpen(false);\n setDeletingInterviewer(null);\n void refetch();\n },\n onError: () => {\n nativeNotify('error');\n setDeleteDialogOpen(false);\n setDeletingInterviewer(null);\n },\n });\n\n const handleOpenCreate = () => {\n setEditingInterviewer(null);\n setForm(emptyForm);\n setFormErrors({});\n setDialogOpen(true);\n };\n\n const handleOpenEdit = (interviewer: Interviewer) => {\n setEditingInterviewer(interviewer);\n setForm({\n name: interviewer.name,\n email: interviewer.email,\n userId: interviewer.userId ?? '',\n department: interviewer.department ?? '',\n title: interviewer.title ?? '',\n isActive: interviewer.isActive,\n notes: interviewer.notes ?? '',\n });\n setFormErrors({});\n setDialogOpen(true);\n };\n\n const handleCloseDialog = () => {\n setDialogOpen(false);\n setEditingInterviewer(null);\n setForm(emptyForm);\n setFormErrors({});\n };\n\n const validateForm = (): boolean => {\n const errors: Record<string, string> = {};\n if (!form.name.trim()) errors.name = 'Name is required';\n if (!form.email.trim()) errors.email = 'Email is required';\n else if (!/^\\S+@\\S+\\.\\S+$/.test(form.email.trim())) errors.email = 'Enter a valid email';\n setFormErrors(errors);\n return Object.keys(errors).length === 0;\n };\n\n const handleSubmit = (e: React.FormEvent) => {\n e.preventDefault();\n if (!validateForm()) return;\n\n const input = toInput(form);\n if (editingInterviewer) {\n void updateInterviewer({ variables: { id: editingInterviewer.id, input } });\n } else {\n void createInterviewer({ variables: { input } });\n }\n };\n\n const handleDeleteClick = (interviewer: Interviewer) => {\n setDeletingInterviewer(interviewer);\n setDeleteDialogOpen(true);\n };\n\n const handleConfirmDelete = () => {\n if (!deletingInterviewer) return;\n void deleteInterviewer({ variables: { id: deletingInterviewer.id } });\n };\n\n const isSubmitting = creating || updating;\n\n if (error) {\n return (\n <PageLayout\n title=\"Interviewers\"\n subtitle=\"Manage interview panel members\"\n icon={<Users size={24} />}\n >\n <EmptyState\n icon={<X size={48} />}\n title=\"Failed to load interviewers\"\n description={error.message}\n action={\n <Button variant=\"outline\" onClick={() => void refetch()}>\n Retry\n </Button>\n }\n />\n </PageLayout>\n );\n }\n\n return (\n <PageLayout\n title=\"Interviewers\"\n subtitle=\"Manage interview panel members\"\n icon={<Users size={24} />}\n headerActions={\n <Button onClick={handleOpenCreate}>\n <Plus size={18} />\n New Interviewer\n </Button>\n }\n >\n {/* Toolbar */}\n <div className=\"flex flex-col sm:flex-row gap-3\">\n <div className=\"relative flex-1\">\n <Search\n size={16}\n className=\"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary\"\n />\n <Input\n type=\"text\"\n aria-label=\"Search interviewers\"\n placeholder=\"Search by name, email, department, or title...\"\n value={search}\n onChange={(e: React.ChangeEvent<HTMLInputElement>) => setSearch(e.target.value)}\n className=\"pl-9\"\n />\n </div>\n </div>\n\n {loading && interviewers.length === 0 ? (\n <LoadingState message=\"Loading interviewers…\" />\n ) : interviewers.length === 0 ? (\n <EmptyState\n illustration=\"empty-people\"\n title={debouncedSearch ? 'No interviewers found' : 'No interviewers yet'}\n description={\n debouncedSearch\n ? 'Try adjusting your search terms.'\n : 'Add interviewers so you can assign them to interview rounds.'\n }\n action={\n !debouncedSearch ? (\n <Button onClick={handleOpenCreate}>\n <Plus size={18} />\n Add Interviewer\n </Button>\n ) : undefined\n }\n />\n ) : (\n <div className=\"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4\">\n {interviewers.map((interviewer: Interviewer) => (\n <div\n key={interviewer.id}\n className=\"p-4 rounded-xl border border-border-seam bg-bg-surface shadow-[var(--shadow-pop)] hover:shadow-[var(--shadow-pop-hover)] hover:border-border-strong transition-[box-shadow,border-color] duration-200\"\n >\n <div className=\"flex items-start justify-between gap-3 mb-3\">\n <div className=\"min-w-0\">\n <h3 className=\"font-semibold text-text-primary truncate\">{interviewer.name}</h3>\n <p className=\"text-sm text-text-secondary truncate\">{interviewer.email}</p>\n </div>\n <DropdownMenu>\n <DropdownMenuTrigger asChild>\n <Button variant=\"ghost\" size=\"sm\" className=\"h-8 w-8 p-0 flex-shrink-0\">\n <MoreHorizontal size={16} />\n </Button>\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"end\">\n <DropdownMenuItem onClick={() => handleOpenEdit(interviewer)}>\n <Pencil size={14} className=\"mr-2\" />\n Edit\n </DropdownMenuItem>\n <DropdownMenuItem\n onClick={() => handleDeleteClick(interviewer)}\n className=\"text-status-error-text focus:text-status-error-text\"\n >\n <Trash2 size={14} className=\"mr-2\" />\n Delete\n </DropdownMenuItem>\n </DropdownMenuContent>\n </DropdownMenu>\n </div>\n\n <div className=\"flex flex-wrap items-center gap-2 mb-3\">\n {interviewer.isActive ? (\n <Badge className=\"bg-status-success-bg-subtle text-status-success-text text-xs\">\n <Check size={10} className=\"mr-1\" />\n Active\n </Badge>\n ) : (\n <Badge className=\"bg-bg-sunken text-text-secondary text-xs\">\n <X size={10} className=\"mr-1\" />\n Inactive\n </Badge>\n )}\n {interviewer.department && (\n <Badge variant=\"outline\" className=\"text-xs\">\n {interviewer.department}\n </Badge>\n )}\n </div>\n\n <div className=\"space-y-1 text-sm\">\n {interviewer.title && (\n <p className=\"text-text-secondary\">\n <span className=\"font-medium text-text-primary\">Title:</span>{' '}\n {interviewer.title}\n </p>\n )}\n {interviewer.userId && (\n <p className=\"text-text-secondary\">\n <span className=\"font-medium text-text-primary\">User ID:</span>{' '}\n {interviewer.userId}\n </p>\n )}\n </div>\n\n <p className=\"mt-3 text-xs text-text-secondary\">\n Added {formatDate(interviewer.createdAt)}\n </p>\n </div>\n ))}\n </div>\n )}\n\n {total > 0 && (\n <p className=\"text-xs text-text-secondary\">\n {total} interviewer{total === 1 ? '' : 's'}\n </p>\n )}\n\n {/* Create/Edit Dialog */}\n <Dialog open={dialogOpen} onOpenChange={setDialogOpen}>\n <DialogContent className=\"sm:max-w-lg\">\n <DialogHeader>\n <DialogTitle>{editingInterviewer ? 'Edit Interviewer' : 'New Interviewer'}</DialogTitle>\n <DialogDescription>\n {editingInterviewer\n ? 'Update the interviewer details below.'\n : 'Add a new person to the interviewer pool.'}\n </DialogDescription>\n </DialogHeader>\n\n <form id=\"interviewer-form\" onSubmit={handleSubmit} className=\"space-y-4\">\n <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-4\">\n <div className=\"space-y-1.5\">\n <Label htmlFor=\"interviewer-name\">\n Name <span className=\"text-status-error-text\">*</span>\n </Label>\n <Input\n id=\"interviewer-name\"\n value={form.name}\n onChange={(e: React.ChangeEvent<HTMLInputElement>) =>\n setForm((prev) => ({ ...prev, name: e.target.value }))\n }\n placeholder=\"Full name\"\n aria-invalid={!!formErrors.name}\n />\n {formErrors.name && (\n <p className=\"text-xs text-status-error-text\">{formErrors.name}</p>\n )}\n </div>\n\n <div className=\"space-y-1.5\">\n <Label htmlFor=\"interviewer-email\">\n Email <span className=\"text-status-error-text\">*</span>\n </Label>\n <Input\n id=\"interviewer-email\"\n type=\"email\"\n value={form.email}\n onChange={(e: React.ChangeEvent<HTMLInputElement>) =>\n setForm((prev) => ({ ...prev, email: e.target.value }))\n }\n placeholder=\"email@example.com\"\n aria-invalid={!!formErrors.email}\n />\n {formErrors.email && (\n <p className=\"text-xs text-status-error-text\">{formErrors.email}</p>\n )}\n </div>\n </div>\n\n <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-4\">\n <div className=\"space-y-1.5\">\n <Label htmlFor=\"interviewer-userid\">User ID</Label>\n <Input\n id=\"interviewer-userid\"\n value={form.userId}\n onChange={(e: React.ChangeEvent<HTMLInputElement>) =>\n setForm((prev) => ({ ...prev, userId: e.target.value }))\n }\n placeholder=\"Platform user ID (optional)\"\n />\n </div>\n\n <div className=\"space-y-1.5\">\n <Label htmlFor=\"interviewer-department\">Department</Label>\n <Input\n id=\"interviewer-department\"\n value={form.department}\n onChange={(e: React.ChangeEvent<HTMLInputElement>) =>\n setForm((prev) => ({ ...prev, department: e.target.value }))\n }\n placeholder=\"e.g. Engineering\"\n />\n </div>\n </div>\n\n <div className=\"space-y-1.5\">\n <Label htmlFor=\"interviewer-title\">Title</Label>\n <Input\n id=\"interviewer-title\"\n value={form.title}\n onChange={(e: React.ChangeEvent<HTMLInputElement>) =>\n setForm((prev) => ({ ...prev, title: e.target.value }))\n }\n placeholder=\"e.g. Senior Engineer\"\n />\n </div>\n\n <div className=\"space-y-1.5\">\n <Label htmlFor=\"interviewer-notes\">Notes</Label>\n <Textarea\n id=\"interviewer-notes\"\n value={form.notes}\n onChange={(e: React.ChangeEvent<HTMLTextAreaElement>) =>\n setForm((prev) => ({ ...prev, notes: e.target.value }))\n }\n placeholder=\"Any additional notes about this interviewer\"\n rows={3}\n />\n </div>\n\n <div className=\"flex items-center gap-3 rounded-lg border border-border-seam p-3\">\n <input\n id=\"interviewer-active\"\n type=\"checkbox\"\n checked={form.isActive}\n onChange={(e: React.ChangeEvent<HTMLInputElement>) =>\n setForm((prev) => ({ ...prev, isActive: e.target.checked }))\n }\n className={cn(\n 'h-4 w-4 rounded border-border-strong text-action-primary-bg',\n 'focus:ring-2 focus:ring-action-primary-bg/50'\n )}\n />\n <div className=\"space-y-0.5\">\n <Label htmlFor=\"interviewer-active\" className=\"cursor-pointer\">\n Active interviewer\n </Label>\n <p className=\"text-xs text-text-secondary\">\n Inactive interviewers cannot be assigned to new rounds.\n </p>\n </div>\n </div>\n </form>\n\n <DialogFooter>\n <Button\n type=\"button\"\n variant=\"outline\"\n onClick={handleCloseDialog}\n disabled={isSubmitting}\n >\n Cancel\n </Button>\n <Button type=\"submit\" form=\"interviewer-form\" disabled={isSubmitting}>\n {isSubmitting ? (\n <>\n <Loader2 size={16} className=\"animate-spin mr-2\" />\n Saving…\n </>\n ) : editingInterviewer ? (\n 'Save Changes'\n ) : (\n 'Create Interviewer'\n )}\n </Button>\n </DialogFooter>\n </DialogContent>\n </Dialog>\n\n {/* Delete Confirmation Dialog */}\n <Dialog open={deleteDialogOpen} onOpenChange={setDeleteDialogOpen}>\n <DialogContent className=\"sm:max-w-md\">\n <DialogHeader>\n <DialogTitle>Delete Interviewer?</DialogTitle>\n <DialogDescription>\n Are you sure you want to delete &quot;{deletingInterviewer?.name}&quot;? This action\n cannot be undone.\n </DialogDescription>\n </DialogHeader>\n <DialogFooter>\n <Button\n variant=\"outline\"\n onClick={() => setDeleteDialogOpen(false)}\n disabled={deleting}\n >\n Cancel\n </Button>\n <Button variant=\"destructive\" onClick={handleConfirmDelete} disabled={deleting}>\n {deleting ? (\n <>\n <Loader2 size={16} className=\"animate-spin mr-2\" />\n Deleting…\n </>\n ) : (\n <>\n <Trash2 size={16} className=\"mr-2\" />\n Delete\n </>\n )}\n </Button>\n </DialogFooter>\n </DialogContent>\n </Dialog>\n </PageLayout>\n );\n}\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