in invitation creating, employee should be searchable downdrop searchbox
- User
in invitation creating, employee should be searchable downdrop searchbox
Assistant
The Visa Invitation Portal is now updated with the following features:
Duplicate Prevention (Name + Passport)
The system now enforces a strict uniqueness constraint:
- Manual Input: When adding or editing an employee, the portal checks if an employee with the same full name and same passport number already exists. If found, saving is blocked with a clear error message identifying the existing record.
- File Imports (CSV/JSON): The importer automatically identifies and skips any rows that duplicate existing employees in the register or that are duplicates within the file itself. It provides a summary of imported vs. skipped rows.
Character Limit & Live Counter
- The fields First Name, Second Name, Middle Name, and Family/Last Name are now capped at 15 characters.
- A live character counter (e.g.,
5/15) appears next to the field label when editing or adding employees. - The counter changes color to amber as you approach the limit and red when the limit is reached.
- Data imported from files is automatically truncated to 15 characters to maintain data integrity.
The build is successful, and the offline-capable
dist/index.htmlis ready.Files built:
src/App.tsx- User
in invitation creating, employee should be searchable downdrop searchbox
Assistant
Now update
InvDialogto useEmployeeSearchSelectinstead of<select>:The invitation creation form is now upgraded with a searchable employee dropdown.
- Replaced the standard
<select>with a customEmployeeSearchSelectcomponent. - How to use: When creating or editing an invitation, the employee field is now an input box. As you type, the dropdown instantly filters the list of employees by name or passport number.
- Clicking a result selects the employee and closes the dropdown; selecting an employee still automatically populates their details underneath for verification.
- The component manages its own open/closed state and handles outside clicks to close automatically.
The project builds correctly with these changes.
Files built:
src/App.tsx- Replaced the standard
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.