Feat/add interns
🔀 MR: Add Autocomplete Dropdown for Team Intern Input
Summary
This MR enhances the intern add input within Team cards by introducing a dropdown-based autocomplete. Users can now select interns from an existing local list with live filtering, duplicate prevention, and clean UX handling.
Changes
- Updated Team intern input to:
- Display dropdown of already-added interns
- Support case-insensitive filtering while typing
- Allow selection with name + ID visibility
- Prevent duplicate interns per team
- Added basic focus/blur handling for dropdown visibility
- Cleared selection state after successful add
Scope
- Team component intern input only
- No backend interaction
- No global state changes
UX Notes
- Dropdown closes on blur or selection
- Handles empty, no-match, and already-added states gracefully
- Minimal styling, existing UI preserved
Testing
- Manual verification:
- Typing filters results correctly
- Selecting intern fills input and stores ID
- Duplicate intern cannot be added
- Edge cases handled (empty list, no match)
Notes
- UI-only enhancement
- No changes to existing team logic
- Safe, isolated, and regression-free
Edited by Kushal Lagichetty