ColoredCow / portal

A hub-and-spoke platform for organizations to effectively manage their operations and data. Uses GSuite.
MIT License
55 stars 52 forks source link

Multiple email templates option upon rejecton #2687

Open P4NK4J opened 1 year ago

P4NK4J commented 1 year ago

Feature requested by @P4NK4J

The goal Streamline job application workflow in the employee portal

Describe the problem At ColoredCow, we believe that everyone wants to do good. Given the right platform, and growth trajectory, people can produce outstanding outcomes. To prove this hypothesis, we have invented a talent pipeline model, CodeTrek, through which we can create talent at all levels. While on the scalability path, we want to hire people at all levels and create meaningful things together. For hiring a good fit fresher, we have evaluations set up in the application workflow in the employee portal. If the application doesn't meet the expectations, we have the option to reject it and send an email to the candidate.

image

In case we find the candidate can be a good fit if they join CodeTrek, the current system doesn't support sending that communication. If there would have been multiple email options, sending information about CodeTrek would have been helpful.

Describe the solution you would like to propose We would like to have a secondary email template when an application is rejected, in any of the rounds. Upon selecting the Reject option, a modal appears, if Send email is checked, we would like to have two different labels - General communication and CodeTrek proposition in place of Option1 and Option2.

image

The generic email template is associated with a particular round, it can be kept in the same way. While the CodeTrek proposition email template can be added via seeder in the settings table using keys codetrek_proposition_subject and codetrek_proposition_body.

Upon selecting any of the tabs, the corresponding email template should be rendered (you can use AJAX for the same). Currently, the Put On Hold function follows a similar workflow, you can take reference from there.

The email template will have the following structure Subject: Your Job application with ColoredCow Body:

Hi |*APPLICANT_NAME*|,  

Thanks for considering ColoredCow as your next Career choice. 

As we see you applied for |*JOB_ROLE*| but somehow this job requires different skills than your current resume reflects. 

Alternatively, if you want to build your Software Development skills as a Trainee, we are inviting candidates to our Tehri and Dwarahat offices. Drop us an email at arushi.dubey@coloredcow.in to know more about the program.

Thanks again for applying. 

HR Team
ColoredCow

Point of contact for guidance @Ayush8923

rajatsajwan commented 1 year ago

Screenshot_20230118_153538 Screenshot_20230118_153550

sir, UI should be like this.

Priyanka-Kaintura commented 1 year ago

@GauravGusain98 @Ayush8923 Sir, above in the issue, it is mentioned that two options appear when 'send mail' is selected. However only one template is made available above. Could you please provide the template or give an idea for the templates.

Ayush8923 commented 1 year ago

@Priyanka-Kaintura There are 2 options given in it. Out of them, the email of General Communication is already created which now runs by default and the second option mail template has been provided in the issue description. You can check from there. Please let me know if there are any other questions.

Priyanka-Kaintura commented 1 year ago

@Ayush8923 @GauravGusain98 Sir, could you please look into this. I have attached a photo of relevant changes to the error I'm facing.

The query in app.js throws 404 error even when i've set the routes properly. Could you please take a look. image

Ayush8923 commented 1 year ago

@Priyanka-Kaintura Can you also share the screenshot of the error here so that we can see the error? And you can check by clearing the cache once. And did you run the npm run dev command after making changes in the js file?

Priyanka-Kaintura commented 1 year ago

@Ayush8923 Sir, I already cleared the cache npm cache as well as the browser cache multiple time. Sharing the error below.

image

Ayush8923 commented 1 year ago

@Priyanka-Kaintura Please push the relevant changes on GitHub. Then I will take a look your code.