Skip to content

fix: remove mock defaults, fix add-team reset bug, and support editable real-data team flow

Lakshy Yarlagadda requested to merge fix/removemockdata into main

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

  1. Fixed Add Team not persisting.
  2. Removed default seeded/mock teams and interns from active UI flow.
  3. Removed random INT-* style generation for interns in UI.
  4. Added editable team names with Edit / Save / Cancel controls.
  5. Updated intern cards to display intern names clearly.
  6. Set corpus service to real mode by default (useMock: false) and removed mock dataset fallbacks.
  7. Updated in-memory team seed behavior to no longer prefill data.
  8. 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

Merge request reports

Loading