UCDavisLibrary / ucdlib-travel

Travel Request Application for the UC Davis Library
0 stars 0 forks source link

Component - Library Employee Search (Basic) #14

Closed spelkey-ucd closed 1 week ago

spelkey-ucd commented 1 month ago

Basic typeahead input dropdown that queries our employees at iam.staff.library

Currently being used in Approvers Admin section:

image

Dependent on completion of #16

spelkey-ucd commented 1 month ago

@mjwdavis #16 has been completed, so you should now have everything you need to start on this issue.

You can use EmployeeModel.queryIam() to return the list of employees for the dropdrown, and EmployeeModel.getIamRecordById() to prepopulate the input if the selected value is already set.

You will need the token for our IAM api, so make sure to run /deploy/cmds/get-env.sh -fl to download the most recent env file from google secrets