From b87647278954b33da5255cb741120fb3dfc778b4 Mon Sep 17 00:00:00 2001 From: Nikolay Iakovlev Date: Sat, 8 May 2021 20:21:21 +0200 Subject: [PATCH 1/5] Update index.jsx fix https://github.com/topcoder-platform/taas-app/issues/229 --- .../PositionDetails/components/PositionCandidates/index.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/PositionDetails/components/PositionCandidates/index.jsx b/src/routes/PositionDetails/components/PositionCandidates/index.jsx index 61cd6f98..8901a9f9 100644 --- a/src/routes/PositionDetails/components/PositionCandidates/index.jsx +++ b/src/routes/PositionDetails/components/PositionCandidates/index.jsx @@ -146,7 +146,7 @@ const PositionCandidates = ({ position, statusFilterKey, updateCandidate }) => { status: CANDIDATE_STATUS.SELECTED, }) .then(() => { - toastr.success("Candidate is marked as interested."); + toastr.success("Candidate is marked as selected."); setSelectCandidateOpen(false); }) .catch((error) => { @@ -170,7 +170,7 @@ const PositionCandidates = ({ position, statusFilterKey, updateCandidate }) => { : CANDIDATE_STATUS.CLIENT_REJECTED_SCREENING, }) .then(() => { - toastr.success("Candidate is marked as not interested."); + toastr.success("Candidate is marked as declined."); setSelectCandidateOpen(false); }) .catch((error) => { From dd1c2862049648e48ce4120161a52748f0d50215 Mon Sep 17 00:00:00 2001 From: Cagdas U Date: Mon, 10 May 2021 10:17:51 +0300 Subject: [PATCH 2/5] feat(interview-scheduler): model updates based on updated schema --- .../components/InterviewDetailsPopup/index.jsx | 15 +++++++++------ .../components/PrevInterviewItem/index.jsx | 10 ++++++---- .../components/PreviousInterviewsPopup/index.jsx | 3 ++- 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/src/routes/PositionDetails/components/InterviewDetailsPopup/index.jsx b/src/routes/PositionDetails/components/InterviewDetailsPopup/index.jsx index 4a15c2c1..009860b8 100644 --- a/src/routes/PositionDetails/components/InterviewDetailsPopup/index.jsx +++ b/src/routes/PositionDetails/components/InterviewDetailsPopup/index.jsx @@ -57,13 +57,16 @@ function InterviewDetailsPopup({ open, onClose, candidate, openNext }) { const onSubmitCallback = useCallback( async (formData) => { - const attendeesList = - formData.emails?.filter( - (email) => typeof email === "string" && email.length > 0 - ) || []; + const hostEmail = formData.emails[0]; + const guestEmails = + formData.emails + .slice(1) + .filter((email) => typeof email === "string" && email.length > 0) || + []; const interviewData = { - xaiTemplate: formData.time, - attendeesList, + templateUrl: formData.time, + hostEmail, + guestEmails, }; try { diff --git a/src/routes/PositionDetails/components/PrevInterviewItem/index.jsx b/src/routes/PositionDetails/components/PrevInterviewItem/index.jsx index 727d56a0..58d6adc4 100644 --- a/src/routes/PositionDetails/components/PrevInterviewItem/index.jsx +++ b/src/routes/PositionDetails/components/PrevInterviewItem/index.jsx @@ -10,16 +10,17 @@ import Accordion from "components/Accordion"; import "./styles.module.scss"; function PrevInterviewItem(props) { - const { date, round, emails } = props; + const { date, round, hostEmail, guestEmails } = props; return (
    - {emails.map((email) => ( +
  • {hostEmail}
  • + {guestEmails.map((email) => (
  • {email}
  • ))}
@@ -30,7 +31,8 @@ function PrevInterviewItem(props) { PrevInterviewItem.propTypes = { date: PT.string.isRequired, round: PT.number.isRequired, - emails: PT.arrayOf(PT.string).isRequired, + hostEmail: PT.string.isRequired, + guestEmails: PT.arrayOf(PT.string).isRequired, }; export default PrevInterviewItem; diff --git a/src/routes/PositionDetails/components/PreviousInterviewsPopup/index.jsx b/src/routes/PositionDetails/components/PreviousInterviewsPopup/index.jsx index eb6aeed7..e857425a 100644 --- a/src/routes/PositionDetails/components/PreviousInterviewsPopup/index.jsx +++ b/src/routes/PositionDetails/components/PreviousInterviewsPopup/index.jsx @@ -24,7 +24,8 @@ function PreviousInterviewsPopup(props) { key={interview.id} round={interview.round} date={interview.startTimestamp} - emails={interview.attendeesList} + hostEmail={interview.hostEmail} + guestEmails={interview.guestEmails} /> )); }; From 36382ac1f5ce9d6342121ed5ac3b4208b5622b3a Mon Sep 17 00:00:00 2001 From: Nikolay Iakovlev Date: Tue, 11 May 2021 06:33:45 +0200 Subject: [PATCH 3/5] Update index.jsx Fix #192 --- .../PositionDetails/components/InterviewDetailsPopup/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/PositionDetails/components/InterviewDetailsPopup/index.jsx b/src/routes/PositionDetails/components/InterviewDetailsPopup/index.jsx index 4a15c2c1..d243c2bd 100644 --- a/src/routes/PositionDetails/components/InterviewDetailsPopup/index.jsx +++ b/src/routes/PositionDetails/components/InterviewDetailsPopup/index.jsx @@ -222,7 +222,7 @@ function InterviewDetailsPopup({ open, onClose, candidate, openNext }) {

Selecting “Begin Scheduling” will initiate emails to all - attendees to coordinate availabiltiy. Please check your email to + attendees to coordinate availability. Please check your email to input your availability.

From e4d23805d3531b76fc3edf867fc138d9213b90c3 Mon Sep 17 00:00:00 2001 From: Nikolay Iakovlev Date: Tue, 11 May 2021 06:35:13 +0200 Subject: [PATCH 4/5] Update index.jsx --- .../PositionDetails/components/PrevInterviewItem/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/PositionDetails/components/PrevInterviewItem/index.jsx b/src/routes/PositionDetails/components/PrevInterviewItem/index.jsx index 727d56a0..82264563 100644 --- a/src/routes/PositionDetails/components/PrevInterviewItem/index.jsx +++ b/src/routes/PositionDetails/components/PrevInterviewItem/index.jsx @@ -16,7 +16,7 @@ function PrevInterviewItem(props) {
    {emails.map((email) => ( From 44e6f4880d5c5caf280118d2f5f1a5ed5574c89d Mon Sep 17 00:00:00 2001 From: Nikolay Iakovlev Date: Tue, 11 May 2021 06:37:46 +0200 Subject: [PATCH 5/5] Update index.jsx fix #196 --- .../PositionDetails/components/InterviewConfirmPopup/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/PositionDetails/components/InterviewConfirmPopup/index.jsx b/src/routes/PositionDetails/components/InterviewConfirmPopup/index.jsx index f5f03d8c..9cc2dcf3 100644 --- a/src/routes/PositionDetails/components/InterviewConfirmPopup/index.jsx +++ b/src/routes/PositionDetails/components/InterviewConfirmPopup/index.jsx @@ -28,7 +28,7 @@ function InterviewConfirmPopup({ open, onClose }) {

    You may manually select your available times from the email, or click “View More Times” to see - expanded options, Additionally, you may click + expanded options, additionally, you may click “Overlay My Calendar” to integrate with your calendar and allow the system to schedule based on your calendar availability.