Resolve "Feat: Intern Search (Corpus Service + InternSearch Component)"
Closes #4 (closed)
MR: Add Intern Name Search and InternSearch Component
Summary
This MR adds name-based intern search functionality to the corpus service and introduces a standalone InternSearch React component. The component allows users to search interns and add them to a local list with duplicate prevention.
Changes
- Added
searchInternsByNameto corpus service with live + mock support - Extended mock intern data for realistic search results
- Exported new search function from service index
- Introduced
InternSearchcomponent with:- 300ms debounced search
- Loading indicator
- Empty and no-result handling
- Local intern list with duplicate prevention
Scope
corpusService.tsindex.tsInternSearch.tsx
Testing
npx tsc --noEmit- Manual verification of:
- Debounced search behavior
- Add / Added state handling
- Empty query behavior
Notes
- No external libraries used
- No routing or global state introduced
- Does not impact existing workflows
- Component is fully reusable and UI-ready
Edited by Kushal Lagichetty