@burdenoff/microfe-support 2026.818.1 → 2026.819.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/global-operations.d.ts +110 -0
- package/dist/generated/global-operations.js +259 -225
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.d.ts +42 -16
- package/dist/generated/global-types.js.map +1 -1
- package/dist/node_modules/clsx/dist/clsx.js +7 -5
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
- package/dist/node_modules/dompurify/dist/purify.es.js +399 -304
- package/dist/node_modules/dompurify/dist/purify.es.js.map +1 -1
- package/dist/node_modules/marked/lib/marked.esm.js +23 -17
- package/dist/node_modules/marked/lib/marked.esm.js.map +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +130 -130
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
- package/dist/support/SupportAdminRoot.js +4 -2
- package/dist/support/SupportAdminRoot.js.map +1 -1
- package/dist/support/SupportAdminRoutes.js +2 -2
- package/dist/support/SupportAdminRoutes.js.map +1 -1
- package/dist/support/SupportUserRoot.js +4 -2
- package/dist/support/SupportUserRoot.js.map +1 -1
- package/dist/support/SupportUserRoutes.js +2 -2
- package/dist/support/SupportUserRoutes.js.map +1 -1
- package/dist/support/components/NotificationToast.js.map +1 -1
- package/dist/support/components/PageLayout.js.map +1 -1
- package/dist/support/components/RouteHelpers.js.map +1 -1
- package/dist/support/components/analytics/CategoryBreakdown.js.map +1 -1
- package/dist/support/components/analytics/MetricCard.js.map +1 -1
- package/dist/support/components/analytics/PriorityBreakdown.js.map +1 -1
- package/dist/support/components/analytics/SLAReport.js.map +1 -1
- package/dist/support/components/analytics/SatisfactionDistribution.js.map +1 -1
- package/dist/support/components/analytics/TopAgents.js.map +1 -1
- package/dist/support/components/analytics/TrendChart.js +5 -5
- package/dist/support/components/analytics/TrendChart.js.map +1 -1
- package/dist/support/components/careers/BulkCandidateActionGuidance.d.ts +6 -0
- package/dist/support/components/careers/BulkCandidateActionGuidance.js +28 -0
- package/dist/support/components/careers/BulkCandidateActionGuidance.js.map +1 -0
- package/dist/support/components/careers/BulkCandidateDialogs.d.ts +22 -0
- package/dist/support/components/careers/BulkCandidateDialogs.js +446 -0
- package/dist/support/components/careers/BulkCandidateDialogs.js.map +1 -0
- package/dist/support/components/careers/BulkOperationFeedback.d.ts +21 -0
- package/dist/support/components/careers/BulkOperationFeedback.js +194 -0
- package/dist/support/components/careers/BulkOperationFeedback.js.map +1 -0
- package/dist/support/components/careers/BulkSelectionSummary.d.ts +6 -0
- package/dist/support/components/careers/BulkSelectionSummary.js +15 -0
- package/dist/support/components/careers/BulkSelectionSummary.js.map +1 -0
- package/dist/support/components/kb/ArticleForm.js.map +1 -1
- package/dist/support/components/settings/CannedResponsesSettings.js.map +1 -1
- package/dist/support/components/settings/SLAPoliciesSettings.js.map +1 -1
- package/dist/support/components/settings/TicketCategoriesSettings.js.map +1 -1
- package/dist/support/components/tickets/AttachmentList.js.map +1 -1
- package/dist/support/components/tickets/MarkdownContent.js.map +1 -1
- package/dist/support/components/tickets/MessageComposer.js +2 -2
- package/dist/support/components/tickets/MessageComposer.js.map +1 -1
- package/dist/support/components/tickets/MessageThread.js +1 -1
- package/dist/support/components/tickets/MessageThread.js.map +1 -1
- package/dist/support/components/tickets/TicketDetailHeader.js.map +1 -1
- package/dist/support/components/tickets/TicketHeader.js.map +1 -1
- package/dist/support/components/tickets/TicketSidebar.js.map +1 -1
- package/dist/support/constants/pipeline.js.map +1 -1
- package/dist/support/events/rybbit.js.map +1 -1
- package/dist/support/hooks/index.js +6 -5
- package/dist/support/hooks/useAnalyticsOperations.js +1 -1
- package/dist/support/hooks/useAnalyticsOperations.js.map +1 -1
- package/dist/support/hooks/useAttachmentsFailedToast.js.map +1 -1
- package/dist/support/hooks/useChatOperations.js +7 -7
- package/dist/support/hooks/useChatOperations.js.map +1 -1
- package/dist/support/hooks/useKnowledgeBaseOperations.js.map +1 -1
- package/dist/support/hooks/useNotification.js.map +1 -1
- package/dist/support/hooks/useRegisterFooter.js.map +1 -1
- package/dist/support/hooks/useSettingsOperations.js.map +1 -1
- package/dist/support/hooks/useSupportAttachments.js.map +1 -1
- package/dist/support/hooks/useTicketListOperations.js.map +1 -1
- package/dist/support/hooks/useTicketOperations.js +76 -75
- package/dist/support/hooks/useTicketOperations.js.map +1 -1
- package/dist/support/index.js +11 -10
- package/dist/support/pages/AnalyticsPage.js.map +1 -1
- package/dist/support/pages/ArticleDetailAdminPage.js +1 -1
- package/dist/support/pages/ArticleDetailAdminPage.js.map +1 -1
- package/dist/support/pages/ArticleDetailUserPage.js +1 -1
- package/dist/support/pages/ArticleDetailUserPage.js.map +1 -1
- package/dist/support/pages/ContactInquiriesPage.js.map +1 -1
- package/dist/support/pages/ContactInquiryDetailPage.js +4 -1
- package/dist/support/pages/ContactInquiryDetailPage.js.map +1 -1
- package/dist/support/pages/CreateArticlePage.js.map +1 -1
- package/dist/support/pages/CreateTicketPage.js +4 -3
- package/dist/support/pages/CreateTicketPage.js.map +1 -1
- package/dist/support/pages/EditArticlePage.js.map +1 -1
- package/dist/support/pages/InterviewersPage.js +127 -127
- package/dist/support/pages/InterviewersPage.js.map +1 -1
- package/dist/support/pages/JobApplicationDetailPage.js +1 -1
- package/dist/support/pages/JobApplicationDetailPage.js.map +1 -1
- package/dist/support/pages/JobApplicationsPage.js +534 -631
- package/dist/support/pages/JobApplicationsPage.js.map +1 -1
- package/dist/support/pages/JobPostingDetailPage.js.map +1 -1
- package/dist/support/pages/JobPostingsPage.js.map +1 -1
- package/dist/support/pages/KnowledgeBaseAdminPage.js.map +1 -1
- package/dist/support/pages/KnowledgeBaseUserPage.js.map +1 -1
- package/dist/support/pages/SettingsPage.js.map +1 -1
- package/dist/support/pages/TicketDetailAdminPage.js +4 -1
- package/dist/support/pages/TicketDetailAdminPage.js.map +1 -1
- package/dist/support/pages/TicketDetailUserPage.js +4 -1
- package/dist/support/pages/TicketDetailUserPage.js.map +1 -1
- package/dist/support/pages/TicketListPage.js.map +1 -1
- package/dist/support/providers/SupportProvider.js.map +1 -1
- package/dist/support/store/supportStore.js.map +1 -1
- package/dist/support/utils/attachments.js +3 -3
- package/dist/support/utils/attachments.js.map +1 -1
- package/dist/support/utils/breadcrumbRegistry.js.map +1 -1
- package/dist/support/utils/bulkCandidateOperations.d.ts +174 -0
- package/dist/support/utils/bulkCandidateOperations.js +265 -0
- package/dist/support/utils/bulkCandidateOperations.js.map +1 -0
- package/dist/support/utils/bulkCandidateTargetQuery.d.ts +10 -0
- package/dist/support/utils/bulkCandidateTargetQuery.js +14 -0
- package/dist/support/utils/bulkCandidateTargetQuery.js.map +1 -0
- package/dist/support/utils/categoryColors.js.map +1 -1
- package/dist/support/utils/cn.js +1 -1
- package/dist/support/utils/cn.js.map +1 -1
- package/dist/support/utils/context.js.map +1 -1
- package/dist/support/utils/errors.js.map +1 -1
- package/dist/support/utils/i18n.js.map +1 -1
- package/dist/support/utils/index.js +1 -1
- package/dist/support/utils/index.js.map +1 -1
- package/dist/support/utils/markdown.js +2 -2
- package/dist/support/utils/markdown.js.map +1 -1
- package/dist/support/utils/supportFiles.js.map +1 -1
- package/dist/support/utils/ticketFilters.js.map +1 -1
- package/dist/support/utils/uiTokens.js.map +1 -1
- package/package.json +22 -12
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type GetJobPostingQuery } from '../../../generated/global-operations';
|
|
2
|
+
import { type BulkCandidateTarget, type CandidateSelectionState } from '../../utils/bulkCandidateOperations';
|
|
3
|
+
type JobPostingRoundConfig = NonNullable<GetJobPostingQuery['jobPosting']>['rounds'][number];
|
|
4
|
+
export type BulkCandidateDialogMode = 'message' | 'assignment';
|
|
5
|
+
type AssignmentRoundConfig = Pick<JobPostingRoundConfig, 'isAssignmentRound' | 'roundType'>;
|
|
6
|
+
export declare function isAssignmentRoundConfig(round: AssignmentRoundConfig): boolean;
|
|
7
|
+
interface SharedDialogProps {
|
|
8
|
+
open: boolean;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
targets: ReadonlyArray<BulkCandidateTarget>;
|
|
11
|
+
selection: CandidateSelectionState;
|
|
12
|
+
jobPostingId: string;
|
|
13
|
+
previewLoading: boolean;
|
|
14
|
+
previewError: string | null;
|
|
15
|
+
refreshTargets: (applicationIds: ReadonlyArray<string>) => Promise<BulkCandidateTarget[]>;
|
|
16
|
+
}
|
|
17
|
+
export declare function BulkCandidateSendDialog({ mode, open, onClose, onOpenAddRound, targets, selection, jobPostingId, previewLoading, previewError, refreshTargets, }: SharedDialogProps & {
|
|
18
|
+
mode: BulkCandidateDialogMode;
|
|
19
|
+
onOpenAddRound: () => void;
|
|
20
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare function AddSelectedToRoundDialog({ open, onClose, targets, selection, jobPostingId, previewLoading, previewError, refreshTargets, }: SharedDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,446 @@
|
|
|
1
|
+
import { Button as e, Checkbox as t, Dialog as n, DialogContent as r, DialogDescription as ee, DialogFooter as i, DialogHeader as te, DialogTitle as ne, Label as a, Select as re, SelectContent as ie, SelectItem as ae, SelectTrigger as oe, SelectValue as se, Textarea as o } from "../ui.js";
|
|
2
|
+
import { BulkEnsureInterviewRoundsDocument as s, BulkRandomizeAndSendAssignmentDocument as ce, BulkSendRoundMessageDocument as c, useGetJobPostingQuery as le } from "../../../generated/global-operations.js";
|
|
3
|
+
import { InterviewRoundType as l } from "../../../generated/global-types.js";
|
|
4
|
+
import { nativeNotify as ue } from "../../../utils/nativeBridge.js";
|
|
5
|
+
import { CandidateChunkPreconditionError as u, aggregateCandidateEmailResult as de, aggregateEnsureRoundResult as fe, assertCandidateChunkMatchesCurrentScope as d, assertCandidateEmailChunkMatchesCurrentScope as pe, assertCompleteCandidateEmailChunkResult as f, assertCompleteEnsureRoundChunkResult as p, createEmptyCandidateEmailAggregate as m, createEmptyEnsureRoundAggregate as h, executeSequentialCandidateChunks as me, getBulkOperationNotificationSeverity as he, getCandidateSelectionCount as ge, getSelectedCandidateIds as g, hasCandidateEmailType as _, resolveExactCandidateRounds as v } from "../../utils/bulkCandidateOperations.js";
|
|
6
|
+
import { BulkCandidateActionGuidance as _e } from "./BulkCandidateActionGuidance.js";
|
|
7
|
+
import { BulkOperationProgress as ve, CandidateEmailResultDetails as y, EnsureRoundResultDetails as ye, StoppedBulkOperationNotice as be } from "./BulkOperationFeedback.js";
|
|
8
|
+
import { useEffect as xe, useMemo as Se, useState as b } from "react";
|
|
9
|
+
import { AlertCircle as Ce, Loader2 as x, Send as S, UserPlus as we } from "lucide-react";
|
|
10
|
+
import { graphqlFetch as C } from "@burdenoff/fe-libs/shared/graphql/fetch";
|
|
11
|
+
import { jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
12
|
+
import { useApolloClient as Te } from "@apollo/client/react";
|
|
13
|
+
import { print as E } from "graphql";
|
|
14
|
+
//#region src/support/components/careers/BulkCandidateDialogs.tsx
|
|
15
|
+
function D(e) {
|
|
16
|
+
return e.isAssignmentRound || e.roundType === l.TakeHome;
|
|
17
|
+
}
|
|
18
|
+
var O = {
|
|
19
|
+
message: "ROUND_MESSAGE",
|
|
20
|
+
assignment: "ASSIGNMENT"
|
|
21
|
+
};
|
|
22
|
+
function Ee(e) {
|
|
23
|
+
return e instanceof Error ? e.message : "The request failed without an error message.";
|
|
24
|
+
}
|
|
25
|
+
async function k(e, t, n) {
|
|
26
|
+
let r = await C({
|
|
27
|
+
gateway: "global",
|
|
28
|
+
query: E(e),
|
|
29
|
+
variables: t,
|
|
30
|
+
operationName: n,
|
|
31
|
+
skipAuthRetry: !0
|
|
32
|
+
});
|
|
33
|
+
if (r.errors?.length) throw Error(r.errors.map((e) => e.message).join("; "));
|
|
34
|
+
if (!r.data) throw Error(`${n} returned no data.`);
|
|
35
|
+
return r.data;
|
|
36
|
+
}
|
|
37
|
+
function De(e, t) {
|
|
38
|
+
let n = g(t);
|
|
39
|
+
return e.filter((e) => n.has(e.id));
|
|
40
|
+
}
|
|
41
|
+
async function Oe(e, t) {
|
|
42
|
+
try {
|
|
43
|
+
return await e(t);
|
|
44
|
+
} catch (e) {
|
|
45
|
+
throw new u(`Candidate scope revalidation failed before this chunk: ${Ee(e)}`);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function A({ mode: s, open: l, onClose: u, onOpenAddRound: fe, targets: d, selection: p, jobPostingId: h, previewLoading: g, previewError: ye, refreshTargets: C }) {
|
|
49
|
+
let E = Te(), [A, j] = b(""), [M, N] = b(""), [P, F] = b(!1), [I, L] = b(null), [ke, R] = b(m), [z, B] = b(null), [V, H] = b(!1), [U, W] = b(!1), { data: Ae, loading: G, error: je } = le({
|
|
50
|
+
variables: { id: h },
|
|
51
|
+
skip: !l || !h,
|
|
52
|
+
fetchPolicy: "network-only"
|
|
53
|
+
});
|
|
54
|
+
xe(() => {
|
|
55
|
+
l && (j(""), N(""), F(!1), L(null), R(m()), B(null), H(!1), W(!1));
|
|
56
|
+
}, [l, s]);
|
|
57
|
+
let K = Se(() => De(d, p), [p, d]), Me = ge(p), q = K.length === Me, Ne = Ae?.jobPosting?.rounds ?? [], Pe = Ne.filter((e) => s !== "assignment" || D(e)), J = Ne.find((e) => e.id === A), Y = J ? v(K, J.id) : {
|
|
58
|
+
pairs: [],
|
|
59
|
+
unresolved: []
|
|
60
|
+
}, Fe = Y.unresolved.filter((e) => e.reason === "MISSING").length, X = Y.unresolved.filter((e) => e.reason === "AMBIGUOUS").length, Ie = O[s], Le = Y.pairs.filter(({ round: e }) => _(e, Ie)).length, Z = Y.pairs.filter(({ round: e }) => P || !_(e, Ie)).length, Re = K.some((e) => e.jobPostingId !== h), Q = ye;
|
|
61
|
+
!Q && je ? Q = "Could not load the posting rounds. Nothing will be sent." : !Q && !g && !q ? Q = "Some selected candidate details are unavailable. Refresh the selection before sending." : !Q && Re ? Q = "Some selected candidates do not belong to the filtered posting." : !Q && A && !G && !J ? Q = "The selected round is no longer available. Choose another round." : !Q && X > 0 && (Q = `${X} selected candidate${X === 1 ? " has" : "s have"} multiple concrete rounds for this configuration. Nothing will be sent until the data is corrected.`);
|
|
62
|
+
let ze = async () => {
|
|
63
|
+
if (U || V || g || G || Q || !q || !J || Y.pairs.length === 0 || Z === 0 || s === "message" && !M.trim()) return;
|
|
64
|
+
W(!0), H(!0), B(null), R(m());
|
|
65
|
+
let e = await me({
|
|
66
|
+
items: Y.pairs.map(({ applicationId: e, roundId: t }) => ({
|
|
67
|
+
applicationId: e,
|
|
68
|
+
roundId: t
|
|
69
|
+
})),
|
|
70
|
+
initialAggregate: m(),
|
|
71
|
+
onProgress: L,
|
|
72
|
+
executeChunk: async (e) => {
|
|
73
|
+
let t = await Oe(C, e.map((e) => e.applicationId));
|
|
74
|
+
if (pe(e, t, h, J.id), s === "assignment") {
|
|
75
|
+
let t = (await k(ce, { input: {
|
|
76
|
+
items: [...e],
|
|
77
|
+
force: P
|
|
78
|
+
} }, "BulkRandomizeAndSendAssignment")).bulkRandomizeAndSendAssignment;
|
|
79
|
+
if (!t) throw Error("The assignment request returned no result.");
|
|
80
|
+
let n = {
|
|
81
|
+
succeeded: t.succeeded.map((e) => ({
|
|
82
|
+
applicationId: e.applicationId,
|
|
83
|
+
roundId: e.id
|
|
84
|
+
})),
|
|
85
|
+
skipped: t.skipped.map((e) => ({
|
|
86
|
+
applicationId: e.applicationId,
|
|
87
|
+
roundId: e.roundId,
|
|
88
|
+
reason: e.reason,
|
|
89
|
+
message: e.message
|
|
90
|
+
})),
|
|
91
|
+
failed: t.failed.map((e) => ({
|
|
92
|
+
applicationId: e.applicationId,
|
|
93
|
+
roundId: e.roundId,
|
|
94
|
+
message: e.message
|
|
95
|
+
}))
|
|
96
|
+
};
|
|
97
|
+
return f(e, n), n;
|
|
98
|
+
}
|
|
99
|
+
let n = (await k(c, { input: {
|
|
100
|
+
items: [...e],
|
|
101
|
+
message: M.trim(),
|
|
102
|
+
force: P
|
|
103
|
+
} }, "BulkSendRoundMessage")).bulkSendRoundMessage;
|
|
104
|
+
if (!n) throw Error("The message request returned no result.");
|
|
105
|
+
let r = {
|
|
106
|
+
succeeded: n.succeeded.map((e) => ({
|
|
107
|
+
applicationId: e.applicationId,
|
|
108
|
+
roundId: e.id
|
|
109
|
+
})),
|
|
110
|
+
skipped: n.skipped.map((e) => ({
|
|
111
|
+
applicationId: e.applicationId,
|
|
112
|
+
roundId: e.roundId,
|
|
113
|
+
reason: e.reason,
|
|
114
|
+
message: e.message
|
|
115
|
+
})),
|
|
116
|
+
failed: n.failed.map((e) => ({
|
|
117
|
+
applicationId: e.applicationId,
|
|
118
|
+
roundId: e.roundId,
|
|
119
|
+
message: e.message
|
|
120
|
+
}))
|
|
121
|
+
};
|
|
122
|
+
return f(e, r), r;
|
|
123
|
+
},
|
|
124
|
+
mergeResult: de
|
|
125
|
+
});
|
|
126
|
+
R(e.aggregate), e.error && B({
|
|
127
|
+
knownCompleted: e.processedItems.length,
|
|
128
|
+
ambiguous: e.ambiguousItems.length,
|
|
129
|
+
notStarted: e.notStartedItems.length,
|
|
130
|
+
message: Ee(e.error)
|
|
131
|
+
}), ue(he({
|
|
132
|
+
succeeded: e.aggregate.succeeded.length,
|
|
133
|
+
skipped: e.aggregate.skipped.length,
|
|
134
|
+
failed: e.aggregate.failed.length,
|
|
135
|
+
ambiguous: !!e.error
|
|
136
|
+
})), W(!1), E.refetchQueries({ include: ["GetJobApplications", "GetJobApplicationInterviewRounds"] }).catch(() => void 0);
|
|
137
|
+
}, $ = g || G;
|
|
138
|
+
return /* @__PURE__ */ w(n, {
|
|
139
|
+
open: l,
|
|
140
|
+
onOpenChange: (e) => {
|
|
141
|
+
!e && !U && u();
|
|
142
|
+
},
|
|
143
|
+
children: /* @__PURE__ */ T(r, {
|
|
144
|
+
className: "sm:max-w-xl max-h-[90vh] overflow-y-auto",
|
|
145
|
+
children: [
|
|
146
|
+
/* @__PURE__ */ T(te, { children: [/* @__PURE__ */ w(ne, { children: s === "assignment" ? "Assign & Email Random Take-Home" : "Send Message" }), /* @__PURE__ */ w(ee, { children: "Choose one configured round for the candidates in the filtered posting." })] }),
|
|
147
|
+
/* @__PURE__ */ w(_e, {
|
|
148
|
+
action: s,
|
|
149
|
+
unresolvedCount: Fe
|
|
150
|
+
}),
|
|
151
|
+
V ? /* @__PURE__ */ T("div", {
|
|
152
|
+
className: "space-y-4",
|
|
153
|
+
children: [
|
|
154
|
+
I ? /* @__PURE__ */ w(ve, { progress: I }) : null,
|
|
155
|
+
/* @__PURE__ */ w(y, { result: ke }),
|
|
156
|
+
z ? /* @__PURE__ */ w(be, { details: z }) : null,
|
|
157
|
+
/* @__PURE__ */ w(i, { children: /* @__PURE__ */ w(e, {
|
|
158
|
+
onClick: u,
|
|
159
|
+
disabled: U,
|
|
160
|
+
children: "Done"
|
|
161
|
+
}) })
|
|
162
|
+
]
|
|
163
|
+
}) : /* @__PURE__ */ T("div", {
|
|
164
|
+
className: "space-y-4",
|
|
165
|
+
children: [
|
|
166
|
+
$ ? /* @__PURE__ */ T("div", {
|
|
167
|
+
className: "flex items-center gap-2 text-sm text-text-secondary",
|
|
168
|
+
children: [/* @__PURE__ */ w(x, {
|
|
169
|
+
size: 14,
|
|
170
|
+
className: "animate-spin"
|
|
171
|
+
}), "Refreshing candidates and configured rounds…"]
|
|
172
|
+
}) : null,
|
|
173
|
+
Q ? /* @__PURE__ */ T("div", {
|
|
174
|
+
className: "flex items-start gap-2 text-sm text-status-error-text",
|
|
175
|
+
role: "alert",
|
|
176
|
+
children: [/* @__PURE__ */ w(Ce, {
|
|
177
|
+
size: 14,
|
|
178
|
+
className: "mt-0.5 shrink-0"
|
|
179
|
+
}), /* @__PURE__ */ w("span", { children: Q })]
|
|
180
|
+
}) : null,
|
|
181
|
+
/* @__PURE__ */ T("div", {
|
|
182
|
+
className: "space-y-1.5",
|
|
183
|
+
children: [
|
|
184
|
+
/* @__PURE__ */ w(a, {
|
|
185
|
+
htmlFor: "bulk-round-config",
|
|
186
|
+
children: "Target round"
|
|
187
|
+
}),
|
|
188
|
+
/* @__PURE__ */ T(re, {
|
|
189
|
+
value: A,
|
|
190
|
+
onValueChange: j,
|
|
191
|
+
disabled: $ || !!Q,
|
|
192
|
+
children: [/* @__PURE__ */ w(oe, {
|
|
193
|
+
id: "bulk-round-config",
|
|
194
|
+
children: /* @__PURE__ */ w(se, { placeholder: "Select a round" })
|
|
195
|
+
}), /* @__PURE__ */ w(ie, { children: Pe.map((e) => /* @__PURE__ */ T(ae, {
|
|
196
|
+
value: e.id,
|
|
197
|
+
children: [
|
|
198
|
+
"Round ",
|
|
199
|
+
e.roundNumber,
|
|
200
|
+
" — ",
|
|
201
|
+
e.name
|
|
202
|
+
]
|
|
203
|
+
}, e.id)) })]
|
|
204
|
+
}),
|
|
205
|
+
Pe.length === 0 && !$ && !Q ? /* @__PURE__ */ w("p", {
|
|
206
|
+
className: "text-xs text-status-warning-text",
|
|
207
|
+
children: s === "assignment" ? "This posting has no configured assignment round." : "This posting has no configured interview rounds."
|
|
208
|
+
}) : null
|
|
209
|
+
]
|
|
210
|
+
}),
|
|
211
|
+
s === "message" ? /* @__PURE__ */ T("div", {
|
|
212
|
+
className: "space-y-1.5",
|
|
213
|
+
children: [/* @__PURE__ */ w(a, {
|
|
214
|
+
htmlFor: "bulk-message",
|
|
215
|
+
children: "Free-text message"
|
|
216
|
+
}), /* @__PURE__ */ w(o, {
|
|
217
|
+
id: "bulk-message",
|
|
218
|
+
value: M,
|
|
219
|
+
onChange: (e) => N(e.target.value),
|
|
220
|
+
placeholder: "Write the message sent to each candidate",
|
|
221
|
+
rows: 5
|
|
222
|
+
})]
|
|
223
|
+
}) : null,
|
|
224
|
+
A && !$ && !Q ? /* @__PURE__ */ T("div", {
|
|
225
|
+
className: "space-y-2 rounded-md border border-border-seam bg-bg-sunken/30 p-3 text-xs text-text-secondary",
|
|
226
|
+
children: [
|
|
227
|
+
/* @__PURE__ */ w("p", {
|
|
228
|
+
className: "font-medium text-text-primary",
|
|
229
|
+
children: "Preview"
|
|
230
|
+
}),
|
|
231
|
+
/* @__PURE__ */ T("p", { children: [
|
|
232
|
+
"Will send to ",
|
|
233
|
+
/* @__PURE__ */ w("span", {
|
|
234
|
+
className: "font-semibold",
|
|
235
|
+
children: Z
|
|
236
|
+
}),
|
|
237
|
+
" candidate",
|
|
238
|
+
Z === 1 ? "" : "s",
|
|
239
|
+
"."
|
|
240
|
+
] }),
|
|
241
|
+
Le > 0 ? /* @__PURE__ */ T("p", { children: [
|
|
242
|
+
Le,
|
|
243
|
+
" already received this email type",
|
|
244
|
+
" ",
|
|
245
|
+
P ? "(force will send again)" : "(the backend will skip them)",
|
|
246
|
+
"."
|
|
247
|
+
] }) : null,
|
|
248
|
+
Fe > 0 ? /* @__PURE__ */ T(e, {
|
|
249
|
+
type: "button",
|
|
250
|
+
size: "sm",
|
|
251
|
+
variant: "outline",
|
|
252
|
+
onClick: fe,
|
|
253
|
+
children: [/* @__PURE__ */ w(we, { size: 14 }), "Add Selected to Round"]
|
|
254
|
+
}) : null,
|
|
255
|
+
/* @__PURE__ */ T("label", {
|
|
256
|
+
className: "flex cursor-pointer items-start gap-2 pt-1",
|
|
257
|
+
children: [/* @__PURE__ */ w(t, {
|
|
258
|
+
checked: P,
|
|
259
|
+
onCheckedChange: (e) => F(e === !0)
|
|
260
|
+
}), /* @__PURE__ */ w("span", { children: "Force resend to candidates with a prior email. Force sends are non-idempotent and are never retried automatically." })]
|
|
261
|
+
})
|
|
262
|
+
]
|
|
263
|
+
}) : null,
|
|
264
|
+
/* @__PURE__ */ T(i, { children: [/* @__PURE__ */ w(e, {
|
|
265
|
+
variant: "outline",
|
|
266
|
+
onClick: u,
|
|
267
|
+
disabled: U,
|
|
268
|
+
children: "Cancel"
|
|
269
|
+
}), /* @__PURE__ */ T(e, {
|
|
270
|
+
onClick: () => void ze(),
|
|
271
|
+
disabled: U || $ || !!Q || !q || !A || Y.pairs.length === 0 || Z === 0 || s === "message" && !M.trim(),
|
|
272
|
+
children: [U ? /* @__PURE__ */ w(x, {
|
|
273
|
+
size: 16,
|
|
274
|
+
className: "mr-2 animate-spin"
|
|
275
|
+
}) : /* @__PURE__ */ w(S, { size: 16 }), U ? "Sending…" : "Send"]
|
|
276
|
+
})] })
|
|
277
|
+
]
|
|
278
|
+
})
|
|
279
|
+
]
|
|
280
|
+
})
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
function j({ open: t, onClose: o, targets: ce, selection: c, jobPostingId: l, previewLoading: u, previewError: de, refreshTargets: pe }) {
|
|
284
|
+
let f = Te(), [m, g] = b(""), [_, v] = b(null), [_e, y] = b(h), [S, C] = b(null), [E, D] = b(!1), [O, A] = b(!1), { data: j, loading: M, error: N } = le({
|
|
285
|
+
variables: { id: l },
|
|
286
|
+
skip: !t || !l,
|
|
287
|
+
fetchPolicy: "network-only"
|
|
288
|
+
});
|
|
289
|
+
xe(() => {
|
|
290
|
+
t && (g(""), v(null), y(h()), C(null), D(!1), A(!1));
|
|
291
|
+
}, [t]);
|
|
292
|
+
let P = Se(() => De(ce, c), [c, ce]), F = ge(c), I = P.length === F, L = P.map((e) => e.id), ke = P.some((e) => e.jobPostingId !== l), R = j?.jobPosting?.rounds ?? [], z = R.find((e) => e.id === m), B = de;
|
|
293
|
+
!B && N ? B = "Could not load the posting rounds. Nothing will be changed." : !B && !u && !I ? B = "Some selected candidate details are unavailable. Refresh the selection before adding rounds." : !B && ke ? B = "Some selected candidates do not belong to the filtered posting." : !B && m && !M && !z && (B = "The selected round is no longer available. Choose another round.");
|
|
294
|
+
let V = async () => {
|
|
295
|
+
if (O || E || u || M || B || !I || !z || L.length === 0) return;
|
|
296
|
+
A(!0), D(!0), C(null), y(h());
|
|
297
|
+
let e = await me({
|
|
298
|
+
items: L,
|
|
299
|
+
initialAggregate: h(),
|
|
300
|
+
onProgress: v,
|
|
301
|
+
executeChunk: async (e) => {
|
|
302
|
+
let t = await Oe(pe, e);
|
|
303
|
+
d(e, t, l);
|
|
304
|
+
let n = (await k(s, { input: {
|
|
305
|
+
jobPostingId: l,
|
|
306
|
+
roundConfigId: z.id,
|
|
307
|
+
applicationIds: [...e]
|
|
308
|
+
} }, "BulkEnsureInterviewRounds")).bulkEnsureInterviewRounds;
|
|
309
|
+
if (!n) throw Error("The add-to-round request returned no result.");
|
|
310
|
+
let r = {
|
|
311
|
+
created: n.created.map((e) => ({
|
|
312
|
+
id: e.round.id,
|
|
313
|
+
applicationId: e.applicationId
|
|
314
|
+
})),
|
|
315
|
+
alreadyPresent: n.alreadyPresent.map((e) => ({
|
|
316
|
+
id: e.round.id,
|
|
317
|
+
applicationId: e.applicationId
|
|
318
|
+
})),
|
|
319
|
+
failed: n.failed.map((e) => ({
|
|
320
|
+
applicationId: e.applicationId,
|
|
321
|
+
code: e.code,
|
|
322
|
+
message: e.message
|
|
323
|
+
}))
|
|
324
|
+
};
|
|
325
|
+
return p(e, r), r;
|
|
326
|
+
},
|
|
327
|
+
mergeResult: fe
|
|
328
|
+
});
|
|
329
|
+
y(e.aggregate), e.error && C({
|
|
330
|
+
knownCompleted: e.processedItems.length,
|
|
331
|
+
ambiguous: e.ambiguousItems.length,
|
|
332
|
+
notStarted: e.notStartedItems.length,
|
|
333
|
+
message: Ee(e.error)
|
|
334
|
+
}), ue(he({
|
|
335
|
+
succeeded: e.aggregate.created.length + e.aggregate.alreadyPresent.length,
|
|
336
|
+
skipped: 0,
|
|
337
|
+
failed: e.aggregate.failed.length,
|
|
338
|
+
ambiguous: !!e.error
|
|
339
|
+
})), A(!1), f.refetchQueries({ include: ["GetJobApplications", "GetJobApplicationInterviewRounds"] }).catch(() => void 0);
|
|
340
|
+
}, H = u || M;
|
|
341
|
+
return /* @__PURE__ */ w(n, {
|
|
342
|
+
open: t,
|
|
343
|
+
onOpenChange: (e) => {
|
|
344
|
+
!e && !O && o();
|
|
345
|
+
},
|
|
346
|
+
children: /* @__PURE__ */ T(r, {
|
|
347
|
+
className: "sm:max-w-xl max-h-[90vh] overflow-y-auto",
|
|
348
|
+
children: [
|
|
349
|
+
/* @__PURE__ */ T(te, { children: [/* @__PURE__ */ w(ne, { children: "Add Selected to Round" }), /* @__PURE__ */ w(ee, { children: "Add every selected candidate in this posting to one configured interview round." })] }),
|
|
350
|
+
/* @__PURE__ */ w("div", {
|
|
351
|
+
className: "rounded-md border border-border-seam bg-bg-sunken/30 p-3 text-sm text-text-secondary",
|
|
352
|
+
children: "Candidates without this concrete round are added with status Scheduled. Existing target rounds are left unchanged, and all prior round history and application status remain unchanged."
|
|
353
|
+
}),
|
|
354
|
+
E ? /* @__PURE__ */ T("div", {
|
|
355
|
+
className: "space-y-4",
|
|
356
|
+
children: [
|
|
357
|
+
_ ? /* @__PURE__ */ w(ve, { progress: _ }) : null,
|
|
358
|
+
/* @__PURE__ */ w(ye, { result: _e }),
|
|
359
|
+
S ? /* @__PURE__ */ w(be, { details: S }) : null,
|
|
360
|
+
/* @__PURE__ */ w(i, { children: /* @__PURE__ */ w(e, {
|
|
361
|
+
onClick: o,
|
|
362
|
+
disabled: O,
|
|
363
|
+
children: "Done"
|
|
364
|
+
}) })
|
|
365
|
+
]
|
|
366
|
+
}) : /* @__PURE__ */ T("div", {
|
|
367
|
+
className: "space-y-4",
|
|
368
|
+
children: [
|
|
369
|
+
H ? /* @__PURE__ */ T("div", {
|
|
370
|
+
className: "flex items-center gap-2 text-sm text-text-secondary",
|
|
371
|
+
children: [/* @__PURE__ */ w(x, {
|
|
372
|
+
size: 14,
|
|
373
|
+
className: "animate-spin"
|
|
374
|
+
}), "Refreshing candidates and configured rounds…"]
|
|
375
|
+
}) : null,
|
|
376
|
+
B ? /* @__PURE__ */ T("div", {
|
|
377
|
+
className: "flex items-start gap-2 text-sm text-status-error-text",
|
|
378
|
+
role: "alert",
|
|
379
|
+
children: [/* @__PURE__ */ w(Ce, {
|
|
380
|
+
size: 14,
|
|
381
|
+
className: "mt-0.5 shrink-0"
|
|
382
|
+
}), /* @__PURE__ */ w("span", { children: B })]
|
|
383
|
+
}) : null,
|
|
384
|
+
/* @__PURE__ */ T("div", {
|
|
385
|
+
className: "space-y-1.5",
|
|
386
|
+
children: [
|
|
387
|
+
/* @__PURE__ */ w(a, {
|
|
388
|
+
htmlFor: "ensure-round-config",
|
|
389
|
+
children: "Interview round"
|
|
390
|
+
}),
|
|
391
|
+
/* @__PURE__ */ T(re, {
|
|
392
|
+
value: m,
|
|
393
|
+
onValueChange: g,
|
|
394
|
+
disabled: H || !!B,
|
|
395
|
+
children: [/* @__PURE__ */ w(oe, {
|
|
396
|
+
id: "ensure-round-config",
|
|
397
|
+
children: /* @__PURE__ */ w(se, { placeholder: "Select a round" })
|
|
398
|
+
}), /* @__PURE__ */ w(ie, { children: R.map((e) => /* @__PURE__ */ T(ae, {
|
|
399
|
+
value: e.id,
|
|
400
|
+
children: [
|
|
401
|
+
"Round ",
|
|
402
|
+
e.roundNumber,
|
|
403
|
+
" — ",
|
|
404
|
+
e.name
|
|
405
|
+
]
|
|
406
|
+
}, e.id)) })]
|
|
407
|
+
}),
|
|
408
|
+
R.length === 0 && !H && !B ? /* @__PURE__ */ w("p", {
|
|
409
|
+
className: "text-xs text-status-warning-text",
|
|
410
|
+
children: "This posting has no configured interview rounds."
|
|
411
|
+
}) : null
|
|
412
|
+
]
|
|
413
|
+
}),
|
|
414
|
+
/* @__PURE__ */ T("p", {
|
|
415
|
+
className: "text-xs text-text-secondary",
|
|
416
|
+
children: [
|
|
417
|
+
F,
|
|
418
|
+
" selected candidate",
|
|
419
|
+
F === 1 ? "" : "s",
|
|
420
|
+
" ",
|
|
421
|
+
"will be checked. Existing target rounds are reported as already present."
|
|
422
|
+
]
|
|
423
|
+
}),
|
|
424
|
+
/* @__PURE__ */ T(i, { children: [/* @__PURE__ */ w(e, {
|
|
425
|
+
variant: "outline",
|
|
426
|
+
onClick: o,
|
|
427
|
+
disabled: O,
|
|
428
|
+
children: "Cancel"
|
|
429
|
+
}), /* @__PURE__ */ T(e, {
|
|
430
|
+
onClick: () => void V(),
|
|
431
|
+
disabled: O || H || !!B || !I || !m || L.length === 0,
|
|
432
|
+
children: [O ? /* @__PURE__ */ w(x, {
|
|
433
|
+
size: 16,
|
|
434
|
+
className: "mr-2 animate-spin"
|
|
435
|
+
}) : /* @__PURE__ */ w(we, { size: 16 }), O ? "Adding…" : "Add Selected to Round"]
|
|
436
|
+
})] })
|
|
437
|
+
]
|
|
438
|
+
})
|
|
439
|
+
]
|
|
440
|
+
})
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
//#endregion
|
|
444
|
+
export { j as AddSelectedToRoundDialog, A as BulkCandidateSendDialog, D as isAssignmentRoundConfig };
|
|
445
|
+
|
|
446
|
+
//# sourceMappingURL=BulkCandidateDialogs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BulkCandidateDialogs.js","names":[],"sources":["../../../../src/support/components/careers/BulkCandidateDialogs.tsx"],"sourcesContent":["import { useEffect, useMemo, useState } from 'react';\nimport { useApolloClient } from '@apollo/client/react';\nimport { graphqlFetch } from '@burdenoff/fe-libs/shared/graphql/fetch';\nimport { print, type DocumentNode } from 'graphql';\nimport { AlertCircle, Loader2, Send, UserPlus } from 'lucide-react';\nimport {\n BulkEnsureInterviewRoundsDocument,\n BulkRandomizeAndSendAssignmentDocument,\n BulkSendRoundMessageDocument,\n useGetJobPostingQuery,\n type BulkEnsureInterviewRoundsMutation,\n type BulkEnsureInterviewRoundsMutationVariables,\n type BulkRandomizeAndSendAssignmentMutation,\n type BulkRandomizeAndSendAssignmentMutationVariables,\n type BulkSendRoundMessageMutation,\n type BulkSendRoundMessageMutationVariables,\n type GetJobPostingQuery,\n} from '../../../generated/global-operations';\nimport { InterviewRoundType } from '../../../generated/global-types';\nimport { nativeNotify } from '../../../utils/nativeBridge';\nimport {\n aggregateCandidateEmailResult,\n aggregateEnsureRoundResult,\n assertCandidateChunkMatchesCurrentScope,\n assertCandidateEmailChunkMatchesCurrentScope,\n assertCompleteCandidateEmailChunkResult,\n assertCompleteEnsureRoundChunkResult,\n CandidateChunkPreconditionError,\n createEmptyCandidateEmailAggregate,\n createEmptyEnsureRoundAggregate,\n executeSequentialCandidateChunks,\n getCandidateSelectionCount,\n getSelectedCandidateIds,\n getBulkOperationNotificationSeverity,\n hasCandidateEmailType,\n resolveExactCandidateRounds,\n type BulkCandidateTarget,\n type CandidateEmailAggregate,\n type CandidateSelectionState,\n type EnsureRoundAggregate,\n type EnsureRoundFailure,\n type SequentialExecutionProgress,\n} from '../../utils/bulkCandidateOperations';\nimport { BulkCandidateActionGuidance } from './BulkCandidateActionGuidance';\nimport {\n BulkOperationProgress,\n CandidateEmailResultDetails,\n EnsureRoundResultDetails,\n StoppedBulkOperationNotice,\n type StoppedBulkOperationDetails,\n} from './BulkOperationFeedback';\nimport {\n Button,\n Checkbox,\n Dialog,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n Label,\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n Textarea,\n} from '../ui';\n\ntype JobPostingRoundConfig = NonNullable<GetJobPostingQuery['jobPosting']>['rounds'][number];\nexport type BulkCandidateDialogMode = 'message' | 'assignment';\n\ntype AssignmentRoundConfig = Pick<JobPostingRoundConfig, 'isAssignmentRound' | 'roundType'>;\n\nexport function isAssignmentRoundConfig(round: AssignmentRoundConfig): boolean {\n return round.isAssignmentRound || round.roundType === InterviewRoundType.TakeHome;\n}\n\nconst ROUND_EMAIL_TYPE: Record<BulkCandidateDialogMode, string> = {\n message: 'ROUND_MESSAGE',\n assignment: 'ASSIGNMENT',\n};\n\ninterface SharedDialogProps {\n open: boolean;\n onClose: () => void;\n targets: ReadonlyArray<BulkCandidateTarget>;\n selection: CandidateSelectionState;\n jobPostingId: string;\n previewLoading: boolean;\n previewError: string | null;\n refreshTargets: (applicationIds: ReadonlyArray<string>) => Promise<BulkCandidateTarget[]>;\n}\n\nfunction errorMessage(error: unknown): string {\n return error instanceof Error ? error.message : 'The request failed without an error message.';\n}\n\nasync function executeNoRetryMutation<TData, TVariables extends Record<string, unknown>>(\n document: DocumentNode,\n variables: TVariables,\n operationName: string\n): Promise<TData> {\n const response = await graphqlFetch<TData>({\n gateway: 'global',\n query: print(document),\n variables,\n operationName,\n // Candidate email sends can be non-idempotent. A transport or auth failure\n // must remain ambiguous and require a new preview before a manual retry.\n skipAuthRetry: true,\n });\n if (response.errors?.length) {\n throw new Error(response.errors.map((error) => error.message).join('; '));\n }\n if (!response.data) {\n throw new Error(`${operationName} returned no data.`);\n }\n return response.data;\n}\n\nfunction selectedTargets(\n targets: ReadonlyArray<BulkCandidateTarget>,\n selection: CandidateSelectionState\n): BulkCandidateTarget[] {\n const selectedIds = getSelectedCandidateIds(selection);\n return targets.filter((target) => selectedIds.has(target.id));\n}\n\nasync function refreshTargetsBeforeMutation(\n refreshTargets: (applicationIds: ReadonlyArray<string>) => Promise<BulkCandidateTarget[]>,\n applicationIds: ReadonlyArray<string>\n): Promise<BulkCandidateTarget[]> {\n try {\n return await refreshTargets(applicationIds);\n } catch (error) {\n throw new CandidateChunkPreconditionError(\n `Candidate scope revalidation failed before this chunk: ${errorMessage(error)}`\n );\n }\n}\n\nexport function BulkCandidateSendDialog({\n mode,\n open,\n onClose,\n onOpenAddRound,\n targets,\n selection,\n jobPostingId,\n previewLoading,\n previewError,\n refreshTargets,\n}: SharedDialogProps & {\n mode: BulkCandidateDialogMode;\n onOpenAddRound: () => void;\n}) {\n const client = useApolloClient();\n const [roundConfigId, setRoundConfigId] = useState('');\n const [message, setMessage] = useState('');\n const [force, setForce] = useState(false);\n const [progress, setProgress] = useState<SequentialExecutionProgress | null>(null);\n const [result, setResult] = useState<CandidateEmailAggregate>(createEmptyCandidateEmailAggregate);\n const [stopped, setStopped] = useState<StoppedBulkOperationDetails | null>(null);\n const [attempted, setAttempted] = useState(false);\n const [submitting, setSubmitting] = useState(false);\n\n const {\n data: postingData,\n loading: postingLoading,\n error: postingError,\n } = useGetJobPostingQuery({\n variables: { id: jobPostingId },\n skip: !open || !jobPostingId,\n fetchPolicy: 'network-only',\n });\n\n useEffect(() => {\n if (!open) return;\n setRoundConfigId('');\n setMessage('');\n setForce(false);\n setProgress(null);\n setResult(createEmptyCandidateEmailAggregate());\n setStopped(null);\n setAttempted(false);\n setSubmitting(false);\n }, [open, mode]);\n\n const actionTargets = useMemo(() => selectedTargets(targets, selection), [selection, targets]);\n const intendedSelectionCount = getCandidateSelectionCount(selection);\n const selectionDataComplete = actionTargets.length === intendedSelectionCount;\n const postingRoundConfigs = postingData?.jobPosting?.rounds ?? [];\n const roundConfigs = postingRoundConfigs.filter((round: JobPostingRoundConfig) =>\n mode === 'assignment' ? isAssignmentRoundConfig(round) : true\n );\n const targetRoundConfig = postingRoundConfigs.find(\n (round: JobPostingRoundConfig) => round.id === roundConfigId\n );\n const resolution = targetRoundConfig\n ? resolveExactCandidateRounds(actionTargets, targetRoundConfig.id)\n : { pairs: [], unresolved: [] };\n const missingCount = resolution.unresolved.filter((item) => item.reason === 'MISSING').length;\n const ambiguousCount = resolution.unresolved.filter((item) => item.reason === 'AMBIGUOUS').length;\n const emailType = ROUND_EMAIL_TYPE[mode];\n const alreadySentCount = resolution.pairs.filter(({ round }) =>\n hasCandidateEmailType(round, emailType)\n ).length;\n const willSendCount = resolution.pairs.filter(\n ({ round }) => force || !hasCandidateEmailType(round, emailType)\n ).length;\n const postingMismatch = actionTargets.some((target) => target.jobPostingId !== jobPostingId);\n\n let effectivePreviewError = previewError;\n if (!effectivePreviewError && postingError) {\n effectivePreviewError = 'Could not load the posting rounds. Nothing will be sent.';\n } else if (!effectivePreviewError && !previewLoading && !selectionDataComplete) {\n effectivePreviewError =\n 'Some selected candidate details are unavailable. Refresh the selection before sending.';\n } else if (!effectivePreviewError && postingMismatch) {\n effectivePreviewError = 'Some selected candidates do not belong to the filtered posting.';\n } else if (!effectivePreviewError && roundConfigId && !postingLoading && !targetRoundConfig) {\n effectivePreviewError = 'The selected round is no longer available. Choose another round.';\n } else if (!effectivePreviewError && ambiguousCount > 0) {\n effectivePreviewError = `${ambiguousCount} selected candidate${ambiguousCount === 1 ? ' has' : 's have'} multiple concrete rounds for this configuration. Nothing will be sent until the data is corrected.`;\n }\n\n const handleSubmit = async () => {\n if (\n submitting ||\n attempted ||\n previewLoading ||\n postingLoading ||\n effectivePreviewError ||\n !selectionDataComplete ||\n !targetRoundConfig ||\n resolution.pairs.length === 0 ||\n willSendCount === 0 ||\n (mode === 'message' && !message.trim())\n ) {\n return;\n }\n\n setSubmitting(true);\n setAttempted(true);\n setStopped(null);\n setResult(createEmptyCandidateEmailAggregate());\n\n const execution = await executeSequentialCandidateChunks({\n items: resolution.pairs.map(({ applicationId, roundId }) => ({\n applicationId,\n roundId,\n })),\n initialAggregate: createEmptyCandidateEmailAggregate(),\n onProgress: setProgress,\n executeChunk: async (chunk) => {\n const currentTargets = await refreshTargetsBeforeMutation(\n refreshTargets,\n chunk.map((item) => item.applicationId)\n );\n assertCandidateEmailChunkMatchesCurrentScope(\n chunk,\n currentTargets,\n jobPostingId,\n targetRoundConfig.id\n );\n\n if (mode === 'assignment') {\n const response = await executeNoRetryMutation<\n BulkRandomizeAndSendAssignmentMutation,\n BulkRandomizeAndSendAssignmentMutationVariables\n >(\n BulkRandomizeAndSendAssignmentDocument,\n { input: { items: [...chunk], force } },\n 'BulkRandomizeAndSendAssignment'\n );\n const bulkResult = response.bulkRandomizeAndSendAssignment;\n if (!bulkResult) {\n throw new Error('The assignment request returned no result.');\n }\n const chunkResult: CandidateEmailAggregate = {\n succeeded: bulkResult.succeeded.map((item) => ({\n applicationId: item.applicationId,\n roundId: item.id,\n })),\n skipped: bulkResult.skipped.map((item) => ({\n applicationId: item.applicationId,\n roundId: item.roundId,\n reason: item.reason,\n message: item.message,\n })),\n failed: bulkResult.failed.map((item) => ({\n applicationId: item.applicationId,\n roundId: item.roundId,\n message: item.message,\n })),\n };\n assertCompleteCandidateEmailChunkResult(chunk, chunkResult);\n return chunkResult;\n }\n\n const response = await executeNoRetryMutation<\n BulkSendRoundMessageMutation,\n BulkSendRoundMessageMutationVariables\n >(\n BulkSendRoundMessageDocument,\n { input: { items: [...chunk], message: message.trim(), force } },\n 'BulkSendRoundMessage'\n );\n const bulkResult = response.bulkSendRoundMessage;\n if (!bulkResult) {\n throw new Error('The message request returned no result.');\n }\n const chunkResult: CandidateEmailAggregate = {\n succeeded: bulkResult.succeeded.map((item) => ({\n applicationId: item.applicationId,\n roundId: item.id,\n })),\n skipped: bulkResult.skipped.map((item) => ({\n applicationId: item.applicationId,\n roundId: item.roundId,\n reason: item.reason,\n message: item.message,\n })),\n failed: bulkResult.failed.map((item) => ({\n applicationId: item.applicationId,\n roundId: item.roundId,\n message: item.message,\n })),\n };\n assertCompleteCandidateEmailChunkResult(chunk, chunkResult);\n return chunkResult;\n },\n mergeResult: aggregateCandidateEmailResult,\n });\n\n setResult(execution.aggregate);\n if (execution.error) {\n setStopped({\n knownCompleted: execution.processedItems.length,\n ambiguous: execution.ambiguousItems.length,\n notStarted: execution.notStartedItems.length,\n message: errorMessage(execution.error),\n });\n }\n nativeNotify(\n getBulkOperationNotificationSeverity({\n succeeded: execution.aggregate.succeeded.length,\n skipped: execution.aggregate.skipped.length,\n failed: execution.aggregate.failed.length,\n ambiguous: !!execution.error,\n })\n );\n setSubmitting(false);\n\n void client\n .refetchQueries({\n include: ['GetJobApplications', 'GetJobApplicationInterviewRounds'],\n })\n .catch(() => undefined);\n };\n\n const previewBusy = previewLoading || postingLoading;\n const title = mode === 'assignment' ? 'Assign & Email Random Take-Home' : 'Send Message';\n\n return (\n <Dialog\n open={open}\n onOpenChange={(next) => {\n if (!next && !submitting) onClose();\n }}\n >\n <DialogContent className=\"sm:max-w-xl max-h-[90vh] overflow-y-auto\">\n <DialogHeader>\n <DialogTitle>{title}</DialogTitle>\n <DialogDescription>\n Choose one configured round for the candidates in the filtered posting.\n </DialogDescription>\n </DialogHeader>\n\n <BulkCandidateActionGuidance action={mode} unresolvedCount={missingCount} />\n\n {attempted ? (\n <div className=\"space-y-4\">\n {progress ? <BulkOperationProgress progress={progress} /> : null}\n <CandidateEmailResultDetails result={result} />\n {stopped ? <StoppedBulkOperationNotice details={stopped} /> : null}\n <DialogFooter>\n <Button onClick={onClose} disabled={submitting}>\n Done\n </Button>\n </DialogFooter>\n </div>\n ) : (\n <div className=\"space-y-4\">\n {previewBusy ? (\n <div className=\"flex items-center gap-2 text-sm text-text-secondary\">\n <Loader2 size={14} className=\"animate-spin\" />\n Refreshing candidates and configured rounds…\n </div>\n ) : null}\n\n {effectivePreviewError ? (\n <div className=\"flex items-start gap-2 text-sm text-status-error-text\" role=\"alert\">\n <AlertCircle size={14} className=\"mt-0.5 shrink-0\" />\n <span>{effectivePreviewError}</span>\n </div>\n ) : null}\n\n <div className=\"space-y-1.5\">\n <Label htmlFor=\"bulk-round-config\">Target round</Label>\n <Select\n value={roundConfigId}\n onValueChange={setRoundConfigId}\n disabled={previewBusy || !!effectivePreviewError}\n >\n <SelectTrigger id=\"bulk-round-config\">\n <SelectValue placeholder=\"Select a round\" />\n </SelectTrigger>\n <SelectContent>\n {roundConfigs.map((round: JobPostingRoundConfig) => (\n <SelectItem key={round.id} value={round.id}>\n Round {round.roundNumber} — {round.name}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n {roundConfigs.length === 0 && !previewBusy && !effectivePreviewError ? (\n <p className=\"text-xs text-status-warning-text\">\n {mode === 'assignment'\n ? 'This posting has no configured assignment round.'\n : 'This posting has no configured interview rounds.'}\n </p>\n ) : null}\n </div>\n\n {mode === 'message' ? (\n <div className=\"space-y-1.5\">\n <Label htmlFor=\"bulk-message\">Free-text message</Label>\n <Textarea\n id=\"bulk-message\"\n value={message}\n onChange={(event: React.ChangeEvent<HTMLTextAreaElement>) =>\n setMessage(event.target.value)\n }\n placeholder=\"Write the message sent to each candidate\"\n rows={5}\n />\n </div>\n ) : null}\n\n {roundConfigId && !previewBusy && !effectivePreviewError ? (\n <div className=\"space-y-2 rounded-md border border-border-seam bg-bg-sunken/30 p-3 text-xs text-text-secondary\">\n <p className=\"font-medium text-text-primary\">Preview</p>\n <p>\n Will send to <span className=\"font-semibold\">{willSendCount}</span> candidate\n {willSendCount === 1 ? '' : 's'}.\n </p>\n {alreadySentCount > 0 ? (\n <p>\n {alreadySentCount} already received this email type{' '}\n {force ? '(force will send again)' : '(the backend will skip them)'}.\n </p>\n ) : null}\n {missingCount > 0 ? (\n <Button type=\"button\" size=\"sm\" variant=\"outline\" onClick={onOpenAddRound}>\n <UserPlus size={14} />\n Add Selected to Round\n </Button>\n ) : null}\n <label className=\"flex cursor-pointer items-start gap-2 pt-1\">\n <Checkbox\n checked={force}\n onCheckedChange={(checked) => setForce(checked === true)}\n />\n <span>\n Force resend to candidates with a prior email. Force sends are non-idempotent\n and are never retried automatically.\n </span>\n </label>\n </div>\n ) : null}\n\n <DialogFooter>\n <Button variant=\"outline\" onClick={onClose} disabled={submitting}>\n Cancel\n </Button>\n <Button\n onClick={() => void handleSubmit()}\n disabled={\n submitting ||\n previewBusy ||\n !!effectivePreviewError ||\n !selectionDataComplete ||\n !roundConfigId ||\n resolution.pairs.length === 0 ||\n willSendCount === 0 ||\n (mode === 'message' && !message.trim())\n }\n >\n {submitting ? (\n <Loader2 size={16} className=\"mr-2 animate-spin\" />\n ) : (\n <Send size={16} />\n )}\n {submitting ? 'Sending…' : 'Send'}\n </Button>\n </DialogFooter>\n </div>\n )}\n </DialogContent>\n </Dialog>\n );\n}\n\nexport function AddSelectedToRoundDialog({\n open,\n onClose,\n targets,\n selection,\n jobPostingId,\n previewLoading,\n previewError,\n refreshTargets,\n}: SharedDialogProps) {\n const client = useApolloClient();\n const [roundConfigId, setRoundConfigId] = useState('');\n const [progress, setProgress] = useState<SequentialExecutionProgress | null>(null);\n const [result, setResult] = useState<EnsureRoundAggregate>(createEmptyEnsureRoundAggregate);\n const [stopped, setStopped] = useState<StoppedBulkOperationDetails | null>(null);\n const [attempted, setAttempted] = useState(false);\n const [submitting, setSubmitting] = useState(false);\n\n const {\n data: postingData,\n loading: postingLoading,\n error: postingError,\n } = useGetJobPostingQuery({\n variables: { id: jobPostingId },\n skip: !open || !jobPostingId,\n fetchPolicy: 'network-only',\n });\n useEffect(() => {\n if (!open) return;\n setRoundConfigId('');\n setProgress(null);\n setResult(createEmptyEnsureRoundAggregate());\n setStopped(null);\n setAttempted(false);\n setSubmitting(false);\n }, [open]);\n\n const actionTargets = useMemo(() => selectedTargets(targets, selection), [selection, targets]);\n const intendedSelectionCount = getCandidateSelectionCount(selection);\n const selectionDataComplete = actionTargets.length === intendedSelectionCount;\n const selectedIds = actionTargets.map((target) => target.id);\n const postingMismatch = actionTargets.some((target) => target.jobPostingId !== jobPostingId);\n const roundConfigs = postingData?.jobPosting?.rounds ?? [];\n const selectedConfig = roundConfigs.find(\n (round: JobPostingRoundConfig) => round.id === roundConfigId\n );\n\n let effectivePreviewError = previewError;\n if (!effectivePreviewError && postingError) {\n effectivePreviewError = 'Could not load the posting rounds. Nothing will be changed.';\n } else if (!effectivePreviewError && !previewLoading && !selectionDataComplete) {\n effectivePreviewError =\n 'Some selected candidate details are unavailable. Refresh the selection before adding rounds.';\n } else if (!effectivePreviewError && postingMismatch) {\n effectivePreviewError = 'Some selected candidates do not belong to the filtered posting.';\n } else if (!effectivePreviewError && roundConfigId && !postingLoading && !selectedConfig) {\n effectivePreviewError = 'The selected round is no longer available. Choose another round.';\n }\n\n const handleSubmit = async () => {\n if (\n submitting ||\n attempted ||\n previewLoading ||\n postingLoading ||\n effectivePreviewError ||\n !selectionDataComplete ||\n !selectedConfig ||\n selectedIds.length === 0\n ) {\n return;\n }\n\n setSubmitting(true);\n setAttempted(true);\n setStopped(null);\n setResult(createEmptyEnsureRoundAggregate());\n\n const execution = await executeSequentialCandidateChunks({\n items: selectedIds,\n initialAggregate: createEmptyEnsureRoundAggregate(),\n onProgress: setProgress,\n executeChunk: async (applicationIds) => {\n const currentTargets = await refreshTargetsBeforeMutation(refreshTargets, applicationIds);\n assertCandidateChunkMatchesCurrentScope(applicationIds, currentTargets, jobPostingId);\n\n const response = await executeNoRetryMutation<\n BulkEnsureInterviewRoundsMutation,\n BulkEnsureInterviewRoundsMutationVariables\n >(\n BulkEnsureInterviewRoundsDocument,\n {\n input: {\n jobPostingId,\n roundConfigId: selectedConfig.id,\n applicationIds: [...applicationIds],\n },\n },\n 'BulkEnsureInterviewRounds'\n );\n const bulkResult = response.bulkEnsureInterviewRounds;\n if (!bulkResult) {\n throw new Error('The add-to-round request returned no result.');\n }\n const chunkResult: EnsureRoundAggregate = {\n created: bulkResult.created.map((item) => ({\n id: item.round.id,\n applicationId: item.applicationId,\n })),\n alreadyPresent: bulkResult.alreadyPresent.map((item) => ({\n id: item.round.id,\n applicationId: item.applicationId,\n })),\n failed: bulkResult.failed.map((item: EnsureRoundFailure) => ({\n applicationId: item.applicationId,\n code: item.code,\n message: item.message,\n })),\n };\n assertCompleteEnsureRoundChunkResult(applicationIds, chunkResult);\n return chunkResult;\n },\n mergeResult: aggregateEnsureRoundResult,\n });\n\n setResult(execution.aggregate);\n if (execution.error) {\n setStopped({\n knownCompleted: execution.processedItems.length,\n ambiguous: execution.ambiguousItems.length,\n notStarted: execution.notStartedItems.length,\n message: errorMessage(execution.error),\n });\n }\n nativeNotify(\n getBulkOperationNotificationSeverity({\n succeeded: execution.aggregate.created.length + execution.aggregate.alreadyPresent.length,\n skipped: 0,\n failed: execution.aggregate.failed.length,\n ambiguous: !!execution.error,\n })\n );\n setSubmitting(false);\n\n void client\n .refetchQueries({\n include: ['GetJobApplications', 'GetJobApplicationInterviewRounds'],\n })\n .catch(() => undefined);\n };\n\n const previewBusy = previewLoading || postingLoading;\n\n return (\n <Dialog\n open={open}\n onOpenChange={(next) => {\n if (!next && !submitting) onClose();\n }}\n >\n <DialogContent className=\"sm:max-w-xl max-h-[90vh] overflow-y-auto\">\n <DialogHeader>\n <DialogTitle>Add Selected to Round</DialogTitle>\n <DialogDescription>\n Add every selected candidate in this posting to one configured interview round.\n </DialogDescription>\n </DialogHeader>\n\n <div className=\"rounded-md border border-border-seam bg-bg-sunken/30 p-3 text-sm text-text-secondary\">\n Candidates without this concrete round are added with status Scheduled. Existing target\n rounds are left unchanged, and all prior round history and application status remain\n unchanged.\n </div>\n\n {attempted ? (\n <div className=\"space-y-4\">\n {progress ? <BulkOperationProgress progress={progress} /> : null}\n <EnsureRoundResultDetails result={result} />\n {stopped ? <StoppedBulkOperationNotice details={stopped} /> : null}\n <DialogFooter>\n <Button onClick={onClose} disabled={submitting}>\n Done\n </Button>\n </DialogFooter>\n </div>\n ) : (\n <div className=\"space-y-4\">\n {previewBusy ? (\n <div className=\"flex items-center gap-2 text-sm text-text-secondary\">\n <Loader2 size={14} className=\"animate-spin\" />\n Refreshing candidates and configured rounds…\n </div>\n ) : null}\n\n {effectivePreviewError ? (\n <div className=\"flex items-start gap-2 text-sm text-status-error-text\" role=\"alert\">\n <AlertCircle size={14} className=\"mt-0.5 shrink-0\" />\n <span>{effectivePreviewError}</span>\n </div>\n ) : null}\n\n <div className=\"space-y-1.5\">\n <Label htmlFor=\"ensure-round-config\">Interview round</Label>\n <Select\n value={roundConfigId}\n onValueChange={setRoundConfigId}\n disabled={previewBusy || !!effectivePreviewError}\n >\n <SelectTrigger id=\"ensure-round-config\">\n <SelectValue placeholder=\"Select a round\" />\n </SelectTrigger>\n <SelectContent>\n {roundConfigs.map((round: JobPostingRoundConfig) => (\n <SelectItem key={round.id} value={round.id}>\n Round {round.roundNumber} — {round.name}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n {roundConfigs.length === 0 && !previewBusy && !effectivePreviewError ? (\n <p className=\"text-xs text-status-warning-text\">\n This posting has no configured interview rounds.\n </p>\n ) : null}\n </div>\n\n <p className=\"text-xs text-text-secondary\">\n {intendedSelectionCount} selected candidate{intendedSelectionCount === 1 ? '' : 's'}{' '}\n will be checked. Existing target rounds are reported as already present.\n </p>\n\n <DialogFooter>\n <Button variant=\"outline\" onClick={onClose} disabled={submitting}>\n Cancel\n </Button>\n <Button\n onClick={() => void handleSubmit()}\n disabled={\n submitting ||\n previewBusy ||\n !!effectivePreviewError ||\n !selectionDataComplete ||\n !roundConfigId ||\n selectedIds.length === 0\n }\n >\n {submitting ? (\n <Loader2 size={16} className=\"mr-2 animate-spin\" />\n ) : (\n <UserPlus size={16} />\n )}\n {submitting ? 'Adding…' : 'Add Selected to Round'}\n </Button>\n </DialogFooter>\n </div>\n )}\n </DialogContent>\n </Dialog>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AA0EA,SAAgB,EAAwB,GAAuC;CAC7E,OAAO,EAAM,qBAAqB,EAAM,cAAc,EAAmB;AAC3E;AAEA,IAAM,IAA4D;CAChE,SAAS;CACT,YAAY;AACd;AAaA,SAAS,GAAa,GAAwB;CAC5C,OAAO,aAAiB,QAAQ,EAAM,UAAU;AAClD;AAEA,eAAe,EACb,GACA,GACA,GACgB;CAChB,IAAM,IAAW,MAAM,EAAoB;EACzC,SAAS;EACT,OAAO,EAAM,CAAQ;EACrB;EACA;EAGA,eAAe;CACjB,CAAC;CACD,IAAI,EAAS,QAAQ,QACnB,MAAU,MAAM,EAAS,OAAO,KAAK,MAAU,EAAM,OAAO,CAAC,CAAC,KAAK,IAAI,CAAC;CAE1E,IAAI,CAAC,EAAS,MACZ,MAAU,MAAM,GAAG,EAAc,mBAAmB;CAEtD,OAAO,EAAS;AAClB;AAEA,SAAS,GACP,GACA,GACuB;CACvB,IAAM,IAAc,EAAwB,CAAS;CACrD,OAAO,EAAQ,QAAQ,MAAW,EAAY,IAAI,EAAO,EAAE,CAAC;AAC9D;AAEA,eAAe,GACb,GACA,GACgC;CAChC,IAAI;EACF,OAAO,MAAM,EAAe,CAAc;CAC5C,SAAS,GAAO;EACd,MAAM,IAAI,EACR,0DAA0D,GAAa,CAAK,GAC9E;CACF;AACF;AAEA,SAAgB,EAAwB,EACtC,SACA,SACA,YACA,oBACA,YACA,cACA,iBACA,mBACA,kBACA,qBAIC;CAC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D;;MAEL,kBAAC,KAAD;OAAG,WAAU;OAAb,UAAA;QACG;QAAuB;QAAoB,MAA2B,IAAI,KAAK;QAAK;QAAI;OAExF;;MAEH,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,GAAD;OAAQ,SAAQ;OAAU,SAAS;OAAS,UAAU;OAAY,UAAA;MAE1D,CAAA,GACR,kBAAC,GAAD;OACE,eAAe,KAAK,EAAa;OACjC,UACE,KACA,KACA,CAAC,CAAC,KACF,CAAC,KACD,CAAC,KACD,EAAY,WAAW;OAR3B,UAAA,CAWG,IACC,kBAAC,GAAD;QAAS,MAAM;QAAI,WAAU;OAAqB,CAAA,IAElD,kBAAC,IAAD,EAAU,MAAM,GAAK,CAAA,GAEtB,IAAa,YAAY,uBACpB;MACI,CAAA,CAAA,EAAA,CAAA;KACX;;GAEM;;CACT,CAAA;AAEZ"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { CandidateEmailAggregate, EnsureRoundAggregate, SequentialExecutionProgress } from '../../utils/bulkCandidateOperations';
|
|
2
|
+
interface BulkOperationProgressProps {
|
|
3
|
+
progress: SequentialExecutionProgress;
|
|
4
|
+
}
|
|
5
|
+
export declare function BulkOperationProgress({ progress }: BulkOperationProgressProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export interface StoppedBulkOperationDetails {
|
|
7
|
+
knownCompleted: number;
|
|
8
|
+
ambiguous: number;
|
|
9
|
+
notStarted: number;
|
|
10
|
+
message: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function StoppedBulkOperationNotice({ details }: {
|
|
13
|
+
details: StoppedBulkOperationDetails;
|
|
14
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare function CandidateEmailResultDetails({ result }: {
|
|
16
|
+
result: CandidateEmailAggregate;
|
|
17
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
18
|
+
export declare function EnsureRoundResultDetails({ result }: {
|
|
19
|
+
result: EnsureRoundAggregate;
|
|
20
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
21
|
+
export {};
|