Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invite Employee Form #94

Closed
4 tasks
Safewaan opened this issue Jun 5, 2023 · 0 comments · Fixed by #133
Closed
4 tasks

Invite Employee Form #94

Safewaan opened this issue Jun 5, 2023 · 0 comments · Fixed by #133
Assignees
Labels
Employee Directory Features related to employee dir

Comments

@Safewaan
Copy link
Collaborator

Safewaan commented Jun 5, 2023

Summary

On the Resident page, there should be a modal to allow admins to invite an employee to the system. Here are the inputs required in the form:

  • First Name
  • Last Name
  • Show Email- Some validation should exist to verify that this is in correct email format
  • Role- Should be a radio component with two choices: a) Admin b) Non Admin
  • Role (continued)- After the radio component, there should be a checkbox for 2FA

This ticket should also cover the front-end/back-end integration, meaning that once the form is submitted, the employee is correctly invited and a user is created in the DB. A similar task is being worked on for creating logs- #81. You can also refer to how the endpoints are called in the InviteUsers since a demo was created for inviting users, and a lot of the code can be reused from there.

Note: the designs for this modal aren't fully complete yet, but there is enough to use to begin working on this task. For any uncertainties, either sync with me or the designers.

Goals

  • Create a new form called InviteEmployees
  • Add all the inputs mentioned above
  • Ensure form validation is present
  • When the form is submitted and all inputs are valid, create a user invite in the db

Implementation

  1. To test the modal, I'd recommend just adding a separate page (maybe something like testInviteEmployee) then adding a button that opens the modal
  2. A lot of the code can be reused from CreateLog
  3. Also please reuse the API calls and integration written in InviteUsers, it will save a lot of time :D
@Safewaan Safewaan added the Employee Directory Features related to employee dir label Jun 5, 2023
@Safewaan Safewaan changed the title DRAFT: Invite Employee Form Invite Employee Form Jun 22, 2023
@helenellyx helenellyx self-assigned this Jun 27, 2023
@helenellyx helenellyx mentioned this issue Jul 7, 2023
7 tasks
@Safewaan Safewaan linked a pull request Jul 11, 2023 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Employee Directory Features related to employee dir
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants