This repository was archived by the owner on Mar 13, 2025. It is now read-only.
This repository was archived by the owner on Mar 13, 2025. It is now read-only.
[$175] Integrate Connect Calendar feature #519
Open
Description
Recently we've implemented Connect Calendar feature in API in this challenge https://www.topcoder.com/challenges/af9a1041-7a78-484d-87d3-5aec9e87b578?tab=details
Now we would like to integrate it with UI.
To work on this task you would have to run locally TaaS API and TaaS App as per this guide.
General Logic
- User clicks a link to connect calendar
- Redirected to Google/Microsoft/Nylas
- From there it redirected to TaaS API to save connected calendar details
- And from TaaS API it is redirected back to TaaS APP
- When redirected to TaaS App from link we have to know what interview popup to open and if calendar connection was successful or failed.
Task
- Build link as described in this challenge https://www.topcoder.com/challenges/af9a1041-7a78-484d-87d3-5aec9e87b578?tab=details
- As
redirectTo
set URL to the current page + add?interviewWithCandidate={jobCandidateId}
, examplehttps://platform.topcoder-dev.com/taas/myteams/18907/positions/a14d4946-418c-4329-998e-918603348fe2/candidates/interviews?interviewWithCandidate=8b0346e8-76bd-4c8c-b378-d27d3ce24262
- As
- When calendar is connected and redirected back to TaaS APP there could be 2 situations:
- calendar connected successfully:
- in this case it would redirect to the page with the next params
?interviewWithCandidate={jobCandidateId}&calendarConnected=true
- show interview scheduling modal as if we click button "schedule interview" https://monosnap.com/file/jzsr7LVUjWxz5lv2Yb7pKppXKG3wiR
- show green toast which say that "Calendar was successfully connected."
- remove part
?interviewWithCandidate={jobCandidateId}&calendarConnected=true
from URL
- in this case it would redirect to the page with the next params
- calendar connection failed:
- in this case it would redirect to the page with the next params
?interviewWithCandidate={jobCandidateId}&calendarConnected=false&error={errorReason}
- show red toast which say that "Failed to connect calendar: {errorReason}"
- remove part
?interviewWithCandidate={jobCandidateId}&calendarConnected=false&error={errorReason}
from URL
- in this case it would redirect to the page with the next params
- calendar connected successfully:
Verification
Provide demo video(s) showing both cases: calendar connected successfully or failed.