Merge pull request 'CV bank assignmed of job' (#89) from SQS_BROKER into main
Deploy to S3 / deploy (push) Successful in 32s
Details
Deploy to S3 / deploy (push) Successful in 32s
Details
Reviewed-on: #89pull/90/head
commit
ed689ccea1
|
|
@ -787,7 +787,7 @@ function JobForm({ departmentOptions, busy, onClose, onSubmit }) {
|
||||||
requirements: splitLines(v.requirements),
|
requirements: splitLines(v.requirements),
|
||||||
optional_skills: splitLines(v.optional_skills),
|
optional_skills: splitLines(v.optional_skills),
|
||||||
description: v.description.trim() || null,
|
description: v.description.trim() || null,
|
||||||
hiring_manager_id: v.hiring_manager_id || undefined,
|
hiring_manager_id: v.hiring_manager_id || null,
|
||||||
current_recruiter_ids: (v.current_recruiter_ids || []).filter(Boolean),
|
current_recruiter_ids: (v.current_recruiter_ids || []).filter(Boolean),
|
||||||
requisition_id: v.requisition_id || undefined,
|
requisition_id: v.requisition_id || undefined,
|
||||||
}, imageFile)
|
}, imageFile)
|
||||||
|
|
@ -881,19 +881,19 @@ function JobForm({ departmentOptions, busy, onClose, onSubmit }) {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="form-field">
|
<div className="form-field">
|
||||||
<label>Hiring manager</label>
|
<label>Hiring manager <span className="text-muted text-sm">optional</span></label>
|
||||||
<SearchSelect
|
<SearchSelect
|
||||||
options={managersQuery.data ?? []}
|
options={managersQuery.data ?? []}
|
||||||
value={form.values.hiring_manager_id}
|
value={form.values.hiring_manager_id}
|
||||||
onChange={(id) => form.setField('hiring_manager_id', id)}
|
onChange={(id) => form.setField('hiring_manager_id', id)}
|
||||||
placeholder="Search hiring managers…"
|
placeholder="Leave unassigned, or search…"
|
||||||
disabled={busy}
|
disabled={busy}
|
||||||
loading={managersQuery.isPending}
|
loading={managersQuery.isPending}
|
||||||
allowEmpty
|
allowEmpty
|
||||||
emptyLabel="Unassigned"
|
emptyLabel="Unassigned"
|
||||||
/>
|
/>
|
||||||
{managersQuery.isError && (
|
{managersQuery.isError && (
|
||||||
<p className="text-muted text-sm">Could not load hiring managers.</p>
|
<p className="text-muted text-sm">Could not load hiring managers. You can still create the job without one.</p>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="form-field">
|
<div className="form-field">
|
||||||
|
|
@ -1186,12 +1186,12 @@ function EditJobForm({ job: j, departmentOptions, busy, onClose, onSubmit }) {
|
||||||
<FieldError>{form.errors.title}</FieldError>
|
<FieldError>{form.errors.title}</FieldError>
|
||||||
</div>
|
</div>
|
||||||
<div className="form-field">
|
<div className="form-field">
|
||||||
<label>Hiring manager</label>
|
<label>Hiring manager <span className="text-muted text-sm">optional</span></label>
|
||||||
<SearchSelect
|
<SearchSelect
|
||||||
options={managersQuery.data ?? []}
|
options={managersQuery.data ?? []}
|
||||||
value={form.values.hiring_manager_id}
|
value={form.values.hiring_manager_id}
|
||||||
onChange={(id) => form.setField('hiring_manager_id', id)}
|
onChange={(id) => form.setField('hiring_manager_id', id)}
|
||||||
placeholder="Search hiring managers…"
|
placeholder="Leave unassigned, or search…"
|
||||||
disabled={busy}
|
disabled={busy}
|
||||||
loading={managersQuery.isPending}
|
loading={managersQuery.isPending}
|
||||||
allowEmpty
|
allowEmpty
|
||||||
|
|
@ -1284,7 +1284,7 @@ function JobOwnership({ job, canEdit }) {
|
||||||
<div style={SECTION_LABEL}>Ownership</div>
|
<div style={SECTION_LABEL}>Ownership</div>
|
||||||
<div className="form-grid" style={{ marginBottom: 12 }}>
|
<div className="form-grid" style={{ marginBottom: 12 }}>
|
||||||
<div className="form-field">
|
<div className="form-field">
|
||||||
<label>Hiring manager</label>
|
<label>Hiring manager <span className="text-muted text-sm">optional</span></label>
|
||||||
{canEdit ? (
|
{canEdit ? (
|
||||||
<SearchSelect
|
<SearchSelect
|
||||||
options={managersQuery.data ?? []}
|
options={managersQuery.data ?? []}
|
||||||
|
|
@ -1294,7 +1294,7 @@ function JobOwnership({ job, canEdit }) {
|
||||||
if (String(next || '') === String(job.hiringManagerId || '')) return
|
if (String(next || '') === String(job.hiringManagerId || '')) return
|
||||||
patch.mutate({ hiring_manager_id: next })
|
patch.mutate({ hiring_manager_id: next })
|
||||||
}}
|
}}
|
||||||
placeholder="Search hiring managers…"
|
placeholder="Leave unassigned, or search…"
|
||||||
disabled={patch.isPending}
|
disabled={patch.isPending}
|
||||||
loading={managersQuery.isPending}
|
loading={managersQuery.isPending}
|
||||||
allowEmpty
|
allowEmpty
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue