topcoder-platform / taas-app

TaaS App Front End
3 stars 24 forks source link

[$60] Allowing to go back after confirming a time for an interview #562

Open sdgun opened 3 years ago

sdgun commented 3 years ago

Steps Click 'Select Interview Time' link from an email Select a date and submit click back button

User can select another date and submit but it doesn't send out any email on the second or third time and also the name and email fields are empty when going back

Is there any point in letting them to go back to the initial page on this screen?

maxceem commented 3 years ago

This is a built-in functionality of the Nylas. I'll ask them if we can disable this functionality somehow.

maxceem commented 3 years ago

When Job Candidate schedules or reschedule interview they can click the Back button and choose another time.

image

We don't want user to be able to select another time, once they already selected one. Nylas doesn't allow to hide the back button. But what we can do is show our own custom confirmation page after time was selected.

To do so, when we create Nylas page in TaaS in API we have to define a URL that would be loaded as custom thank you page (see Nylas API https://developer.nylas.com/docs/api/scheduler#post/manage/pages, thank_you_redirect parameter).

TaaS App using BFF (backend for frontend)

TaaS APP (this repo) branch dev

maxceem commented 3 years ago

Half of the task above has been done. API has been updated, and now when Job Candidate select time to schedule or reschedule interview it shows custom thank you page:

image

What is left to do:

maxceem commented 3 years ago

@yoution this is also open for pick up.

The initial task was https://github.com/topcoder-platform/taas-app/issues/562#issuecomment-974637623. But I've made all server-side changes, so now we only need to implement UI as described here https://github.com/topcoder-platform/taas-app/issues/562#issuecomment-976435253.

So no need to local setup TaaS API, only TaaS App.

yoution commented 3 years ago

@maxceem please assign to me

yoution commented 3 years ago

@maxceem we should use vanilla js, and write code in one file?

maxceem commented 3 years ago

Yes @yoution it's better to use vanilla js in this file.

maxceem commented 3 years ago

@yoution actually, I think we don't need js in this file. It just has to render HTML with CSS.

yoution commented 3 years ago

@maxceem this value is from url query? image

maxceem commented 3 years ago

hmm @yoution, let me see where we can get it. We don't have it in query.

yoution commented 3 years ago

@maxceem please ignore, I find it image

maxceem commented 3 years ago

@yoution not, that's different. Maksym Dev is name of user who was invited for the interview, but not the title.

I found one way to get it using 1 ajax request:

Would it work? I think we can use fetch method call this URL.

maxceem commented 3 years ago

@sdgun this is ready for testing/

sdgun commented 3 years ago

Verified in Dev.

image

maxceem commented 3 years ago

Challenge https://www.topcoder.com/challenges/d3eb505b-a0d7-436f-8395-f9d7db2a7cd6 has been created for this ticket.

This is an automated message for maxceem via Topcoder X

maxceem commented 3 years ago

Challenge https://www.topcoder.com/challenges/d3eb505b-a0d7-436f-8395-f9d7db2a7cd6 has been assigned to yoution.

This is an automated message for maxceem via Topcoder X

maxceem commented 3 years ago

Payment task has been updated: https://www.topcoder.com/challenges/d3eb505b-a0d7-436f-8395-f9d7db2a7cd6 Payments Complete Winner: yoution Copilot: maxceem Challenge d3eb505b-a0d7-436f-8395-f9d7db2a7cd6 has been paid and closed.

This is an automated message for maxceem via Topcoder X