How lovekaur2006/infosys-springboard-virtual-internship works
NegotiateAI is a browser-based negotiation simulator. Users select a scenario, configure agents and negotiation settings, review the setup, then run an autonomous or interactive negotiation and inspect a settlement report. The app also supports Google sign-in and scheduling or listing negotiation sessions in Google Calendar. The main App component coordinates these screens and calendar actions. Evidence is limited to the README and supplied excerpts plus SOURCE INDEX references; unshown screen wiring and integrations are omitted where not established.
Main entry points: App.tsx App coordinator · NegotiationArena.tsx Negotiation arena · calendarService.ts Calendar service · scenarios.ts Scenario catalog
Components 17
Negotiation setup
- Scenario catalog
src/data/scenarios.ts - Scenario selection
src/components/ScenarioSelectionScreen.tsx - Agent configuration
src/components/AgentConfigurationScreen.tsx - Setup review
src/components/ReviewStartScreen.tsx - Configuration validation
src/components/ValidationPanel.tsx
Simulation and results
- App coordinator
src/App.tsx - Negotiation arena
src/components/NegotiationArena.tsx - Negotiation engine
src/services/negotiationEngine.ts - Settlement reports
src/components/ReportsScreen.tsx
Calendar integration
- Schedule form
src/components/CalendarScheduleModal.tsx - Event confirmation
src/components/CalendarConfirmModal.tsx - Calendar events
src/components/CalendarEventListModal.tsx - Calendar service
src/services/calendarService.ts
Google identity
- Google sign-in service
src/services/authService.ts
Other components
- User
- Google account
- Google Calendar
Connections 23
- User → App coordinator: uses
src/App.tsx - App coordinator → Scenario catalog: loads defaults
src/App.tsx - App coordinator → Scenario selection: shows
src/App.tsx - App coordinator → Agent configuration: shows
src/App.tsx - App coordinator → Setup review: shows
src/App.tsx - App coordinator → Negotiation arena: shows
src/App.tsx - App coordinator → Settlement reports: shows
src/App.tsx - App coordinator → Google sign-in service: signs in
src/App.tsx - App coordinator → Calendar service: creates event
src/App.tsx - App coordinator → Schedule form: opens
src/App.tsx - App coordinator → Event confirmation: opens
src/App.tsx - App coordinator → Calendar events: opens
src/App.tsx - Scenario selection → Scenario catalog: displays choices
src/components/ScenarioSelectionScreen.tsx - Agent configuration → Scenario catalog: uses definitions
src/components/AgentConfigurationScreen.tsx - User → Configuration validation: checks setup
- Negotiation arena → Negotiation engine: generates turns
src/components/NegotiationArena.tsx - Negotiation arena → Negotiation engine: summarizes outcome
src/components/NegotiationArena.tsx - Settlement reports → Negotiation engine: builds summary
src/components/ReportsScreen.tsx - Google account → Google sign-in service: authorizes
src/services/authService.ts - Schedule form → App coordinator: submits details
src/App.tsx - Event confirmation → App coordinator: confirms event
src/App.tsx - Calendar events → Calendar service: requests events
src/components/CalendarEventListModal.tsx - Calendar service → Google Calendar: reads and writes
src/services/calendarService.ts