fix: remove mock defaults, fix add-team reset bug, and support editable real-data team flow
MR Title
fix: remove mock defaults, fix add-team reset bug, and support editable real-data team flow
MR Description
This MR cleans up the dashboard to work with user-added real data only and fixes team creation state issues.
✅ What changed
- Fixed Add Team not persisting.
- Removed default seeded/mock teams and interns from active UI flow.
- Removed random
INT-*style generation for interns in UI. - Added editable team names with Edit / Save / Cancel controls.
- Updated intern cards to display intern names clearly.
- Set corpus service to real mode by default (
useMock: false) and removed mock dataset fallbacks. - Updated in-memory team seed behavior to no longer prefill data.
- Updated team manager smoke test expectations accordingly.
🎯 Why
The application should reflect only user-added or live corpus data.
Autogenerated placeholder or mock values were causing confusion and inconsistent state behavior, especially during team creation and editing workflows.
🔍 Verification Steps
Type checks:
npx tsc --noEmit -p tsconfig.json
Build:
npm run build
Manual testing:
- Create a team.
- Rename team using edit mode.
- Add an intern.
- Delete intern and team.
- Confirm no mock data appears automatically.
🧩 Commit Structure (Recommended)
1. UI + Add-Team Fix
fix(ui): persist team creation and support editable team names
2. Corpus Service Real-Data Default
refactor(corpus): disable mock defaults and remove mock fallback data
3. Team Store Deterministic Behavior
refactor(team): remove seeded defaults and use deterministic team ids
4. Lockfile Update (Optional)
chore(lockfile): update npm lockfile
👨 💻 Author
Lakshy Yarlagadda