RusseII / recruiter.deephire.com

Automated Video Interviews
https://recruiter.deephire.com
4 stars 0 forks source link

Add table of contents for notes for AppleOne #323

Open RusseII opened 3 years ago

RusseII commented 3 years ago

Notes templates

The hard deadline for this is Friday November 20th. Having it earlier would be great - but needs to be finished by that date.

  1. Add in a way to link Table of Contents to scroll to the proper place in the template. This only needs shown for recruiter interviews (also known as branch) & for the recruiter role

Requirements:

Here's an example of what they had in mind for the table of contacts. We can implement it in whatever manner we think is best. image

RusseII commented 3 years ago

https://www.loom.com/share/6ea687fdf515446387cbba5a7b5620d1 @techromantic some more info about what is needed

techromantic commented 3 years ago

Note to self: Use this objectId to preview a real world interview sheet: 5fa99516969435001a6576ab

@RusseII - okay, so we want to parse the recruiterTemplate for the first unordered list at the beginning of the document as a table of contents - then we want to find the yOffset of exact matches of text in the rest of the template and scroll down to those as the table of contents are clicked in a separate component?

As for location I'm thinking scrollable list under the candidates name.

techromantic commented 3 years ago

First day of investigation revealed the following:

@RusseII - do we need the external component? I think there's merit in having the TBC in plaintext at the top of the notes section and then navigating through the titled sections using arrows. Could also add a button to scroll back up to the TBC.

https://codesandbox.io/s/custom-toolbar-with-react-quill-fully-working-forked-mbbos?file=/index.js:2558-2565 https://stackoverflow.com/questions/30294057/how-to-ensure-programmatically-selected-text-is-visible-in-quill-when-scrollbars https://quilljs.com/docs/modules/toolbar/ https://codepen.io/alexkrolick/pen/gmroPj?editors=0010

RusseII commented 3 years ago

@techromantic I know we talked briefly on telegram about this - Do you still have questions, or do you have an idea on how to move forward?

The use case for this feature, is that the recruiters often jump between different places of the template in a non-linear fashion. So for example, they will ask something in the middle section, then go back to the top section, then the bottom section ect.

When in talks for AppleOne - they expressed wanting the different table of contents items visible at all times, so the recruiter can always quickly see the sections, and jump to a new one.

Is it possible to put the table of contents inside the quill toolbar? Would that make sense? Or do you think another implementation is better?