Add employee search autocomplete and photo display for Recognition

- Add apiemployeesearch.asp for searching employees by name with Team info
- Update addnotification.asp with autocomplete dropdown showing photo, name, team, SSO
- Support custom names for non-system employees using NAME: prefix in employeesso field
- Add theme-aware CSS for selected employee chips (light/dark themes)
- Update apishopfloor.asp to detect NAME: prefix and extract custom names
- Update shopfloor-dashboard to display employee photos (140px) with GE logo fallback

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
cproudlock
2026-01-09 14:18:13 -05:00
parent 28e8071570
commit 6d1cbc01c6
5 changed files with 618 additions and 53 deletions

View File

@@ -55,10 +55,10 @@ Dim isRecognition
isRecognition = (CLng(notificationtypeid) = RECOGNITION_TYPE_ID)
If isRecognition Then
' Validate employeesso is provided for Recognition
' Validate that employeesso is provided for Recognition (can be SSO or NAME:customname)
If Len(employeesso) = 0 Then
objConn.Close
ShowError "Employee SSO is required for Recognition notifications.", "addnotification.asp"
ShowError "At least one employee must be selected for Recognition notifications.", "addnotification.asp"
Response.End
End If
@@ -134,7 +134,7 @@ Else
appidValue = CLng(appid)
End If
' Handle optional employeesso - only for Recognition type
' Handle optional employeesso - can be SSO or NAME:customname
Dim employeessoValue
If Len(employeesso) = 0 Then
employeessoValue = Null