Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

fix: issue #586 #587

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ const CandidatesStatusFilter = ({ statusFilterKey, onChange, candidates }) => {
return (
<div styleName="candidates-status-filter">
{CANDIDATE_STATUS_FILTERS.map((statusFilter) => {
// issue #586 hide 'interview' tab temporarily
if (statusFilter.key === CANDIDATE_STATUS_FILTER_KEY.INTERESTED) {
return null;
}
const count = _.filter(candidates, (candidate) =>
statusFilter.statuses.includes(candidate.status)
).length;
Expand Down
56 changes: 29 additions & 27 deletions src/routes/PositionDetails/components/PositionCandidates/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -268,15 +268,16 @@ const PositionCandidates = ({ position, statusFilterKey, updateCandidate }) => {
<div styleName="actions">
<ActionsMenu
options={[
{
label: "Schedule Interview",
action: () => {
openInterviewDetailsPopup(candidate);
},
},
{
separator: true,
},
// issue #586 hide option temporarily
// {
// label: "Schedule Interview",
// action: () => {
// openInterviewDetailsPopup(candidate);
// },
// },
// {
// separator: true,
// },
{
label: "Select Candidate",
action: () => {
Expand All @@ -299,24 +300,25 @@ const PositionCandidates = ({ position, statusFilterKey, updateCandidate }) => {
<div styleName="actions">
<ActionsMenu
options={[
{
label: "Schedule Another Interview",
action: () => {
openInterviewDetailsPopup(candidate);
},
},
{
label: "View Previous Interviews",
action: () => {
openPrevInterviewsPopup(candidate);
},
disabled:
!!candidate.interviews !== true ||
candidate.interviews.length === 0,
},
{
separator: true,
},
// issue #586 hide option temporarily
// {
// label: "Schedule Another Interview",
// action: () => {
// openInterviewDetailsPopup(candidate);
// },
// },
// {
// label: "View Previous Interviews",
// action: () => {
// openPrevInterviewsPopup(candidate);
// },
// disabled:
// !!candidate.interviews !== true ||
// candidate.interviews.length === 0,
// },
// {
// separator: true,
// },
{
label: "Select Candidate",
action: () => {
Expand Down
4 changes: 3 additions & 1 deletion src/routes/PositionDetails/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ const PositionDetails = ({ teamId, positionId, candidateStatus }) => {
) {
onCandidateStatusChange({ urlParam: "to-review" });
} else {
onCandidateStatusChange({ urlParam: "interviews" });
// issue #586 hide 'interview' tab temporarily
onCandidateStatusChange({ urlParam: "to-review" });
// onCandidateStatusChange({ urlParam: "interviews" });
}
}
}, [position, candidateStatus, onCandidateStatusChange]);
Expand Down