# lovekaur2006/infosys-springboard-virtual-internship architecture

> Architecture diagram of the GitHub repository lovekaur2006/infosys-springboard-virtual-internship, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/lovekaur2006/infosys-springboard-virtual-internship
- Repository: https://github.com/lovekaur2006/infosys-springboard-virtual-internship

## Overview

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: [`src/App.tsx`](https://github.com/lovekaur2006/infosys-springboard-virtual-internship/blob/main/src/App.tsx) (App coordinator), [`src/components/NegotiationArena.tsx`](https://github.com/lovekaur2006/infosys-springboard-virtual-internship/blob/main/src/components/NegotiationArena.tsx) (Negotiation arena), [`src/services/calendarService.ts`](https://github.com/lovekaur2006/infosys-springboard-virtual-internship/blob/main/src/services/calendarService.ts) (Calendar service), [`src/data/scenarios.ts`](https://github.com/lovekaur2006/infosys-springboard-virtual-internship/blob/main/src/data/scenarios.ts) (Scenario catalog)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Negotiation setup"]
  node_scenario_catalog["Scenario catalog<br/>[scenarios.ts]"]
  node_scenario_selection["Scenario selection"]
  node_agent_setup["Agent configuration"]
  node_review["Setup review"]
  node_validation["Configuration validation"]
end

subgraph group_runtime["Simulation and results"]
  node_app["App coordinator<br/>[App.tsx]"]
  node_negotiation["Negotiation arena"]
  node_engine["Negotiation engine"]
  node_reports["Settlement reports<br/>[ReportsScreen.tsx]"]
end

subgraph group_calendar["Calendar integration"]
  node_calendar_schedule["Schedule form"]
  node_calendar_confirm["Event confirmation"]
  node_calendar_list["Calendar events"]
  node_calendar_service["Calendar service<br/>[calendarService.ts]"]
end

subgraph group_identity["Google identity"]
  node_auth["Google sign-in service<br/>[authService.ts]"]
end

node_user(("User"))
node_google_user(("Google account"))
node_google_calendar(("Google Calendar"))

node_user -->|"uses"| node_app
node_app -->|"loads defaults"| node_scenario_catalog
node_app -.->|"shows"| node_scenario_selection
node_app -.->|"shows"| node_agent_setup
node_app -.->|"shows"| node_review
node_app -.->|"shows"| node_negotiation
node_app -.->|"shows"| node_reports
node_app -->|"signs in"| node_auth
node_app -->|"creates event"| node_calendar_service
node_app -.->|"opens"| node_calendar_schedule
node_app -.->|"opens"| node_calendar_confirm
node_app -.->|"opens"| node_calendar_list
node_scenario_selection -->|"displays choices"| node_scenario_catalog
node_agent_setup -->|"uses definitions"| node_scenario_catalog
node_user -.->|"checks setup"| node_validation
node_negotiation -->|"generates turns"| node_engine
node_negotiation -->|"summarizes outcome"| node_engine
node_reports -->|"builds summary"| node_engine
node_google_user -->|"authorizes"| node_auth
node_calendar_schedule -.->|"submits details"| node_app
node_calendar_confirm -.->|"confirms event"| node_app
node_calendar_list -.->|"requests events"| node_calendar_service
node_calendar_service -->|"reads and writes"| node_google_calendar

click node_app "https://github.com/lovekaur2006/infosys-springboard-virtual-internship/blob/main/src/App.tsx"
click node_scenario_catalog "https://github.com/lovekaur2006/infosys-springboard-virtual-internship/blob/main/src/data/scenarios.ts"
click node_scenario_selection "https://github.com/lovekaur2006/infosys-springboard-virtual-internship/blob/main/src/components/ScenarioSelectionScreen.tsx"
click node_agent_setup "https://github.com/lovekaur2006/infosys-springboard-virtual-internship/blob/main/src/components/AgentConfigurationScreen.tsx"
click node_review "https://github.com/lovekaur2006/infosys-springboard-virtual-internship/blob/main/src/components/ReviewStartScreen.tsx"
click node_negotiation "https://github.com/lovekaur2006/infosys-springboard-virtual-internship/blob/main/src/components/NegotiationArena.tsx"
click node_engine "https://github.com/lovekaur2006/infosys-springboard-virtual-internship/blob/main/src/services/negotiationEngine.ts"
click node_reports "https://github.com/lovekaur2006/infosys-springboard-virtual-internship/blob/main/src/components/ReportsScreen.tsx"
click node_validation "https://github.com/lovekaur2006/infosys-springboard-virtual-internship/blob/main/src/components/ValidationPanel.tsx"
click node_auth "https://github.com/lovekaur2006/infosys-springboard-virtual-internship/blob/main/src/services/authService.ts"
click node_calendar_schedule "https://github.com/lovekaur2006/infosys-springboard-virtual-internship/blob/main/src/components/CalendarScheduleModal.tsx"
click node_calendar_confirm "https://github.com/lovekaur2006/infosys-springboard-virtual-internship/blob/main/src/components/CalendarConfirmModal.tsx"
click node_calendar_list "https://github.com/lovekaur2006/infosys-springboard-virtual-internship/blob/main/src/components/CalendarEventListModal.tsx"
click node_calendar_service "https://github.com/lovekaur2006/infosys-springboard-virtual-internship/blob/main/src/services/calendarService.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_scenario_catalog,node_scenario_selection,node_agent_setup,node_review,node_validation,node_user toneBlue
class node_app,node_negotiation,node_engine,node_reports toneAmber
class node_calendar_schedule,node_calendar_confirm,node_calendar_list,node_calendar_service toneMint
class node_auth toneRose
class node_google_user,node_google_calendar toneIndigo
```

## Components

### Negotiation setup

- [Scenario catalog](https://github.com/lovekaur2006/infosys-springboard-virtual-internship/blob/main/src/data/scenarios.ts): `src/data/scenarios.ts`
- [Scenario selection](https://github.com/lovekaur2006/infosys-springboard-virtual-internship/blob/main/src/components/ScenarioSelectionScreen.tsx): `src/components/ScenarioSelectionScreen.tsx`
- [Agent configuration](https://github.com/lovekaur2006/infosys-springboard-virtual-internship/blob/main/src/components/AgentConfigurationScreen.tsx): `src/components/AgentConfigurationScreen.tsx`
- [Setup review](https://github.com/lovekaur2006/infosys-springboard-virtual-internship/blob/main/src/components/ReviewStartScreen.tsx): `src/components/ReviewStartScreen.tsx`
- [Configuration validation](https://github.com/lovekaur2006/infosys-springboard-virtual-internship/blob/main/src/components/ValidationPanel.tsx): `src/components/ValidationPanel.tsx`

### Simulation and results

- [App coordinator](https://github.com/lovekaur2006/infosys-springboard-virtual-internship/blob/main/src/App.tsx): `src/App.tsx`
- [Negotiation arena](https://github.com/lovekaur2006/infosys-springboard-virtual-internship/blob/main/src/components/NegotiationArena.tsx): `src/components/NegotiationArena.tsx`
- [Negotiation engine](https://github.com/lovekaur2006/infosys-springboard-virtual-internship/blob/main/src/services/negotiationEngine.ts): `src/services/negotiationEngine.ts`
- [Settlement reports](https://github.com/lovekaur2006/infosys-springboard-virtual-internship/blob/main/src/components/ReportsScreen.tsx): `src/components/ReportsScreen.tsx`

### Calendar integration

- [Schedule form](https://github.com/lovekaur2006/infosys-springboard-virtual-internship/blob/main/src/components/CalendarScheduleModal.tsx): `src/components/CalendarScheduleModal.tsx`
- [Event confirmation](https://github.com/lovekaur2006/infosys-springboard-virtual-internship/blob/main/src/components/CalendarConfirmModal.tsx): `src/components/CalendarConfirmModal.tsx`
- [Calendar events](https://github.com/lovekaur2006/infosys-springboard-virtual-internship/blob/main/src/components/CalendarEventListModal.tsx): `src/components/CalendarEventListModal.tsx`
- [Calendar service](https://github.com/lovekaur2006/infosys-springboard-virtual-internship/blob/main/src/services/calendarService.ts): `src/services/calendarService.ts`

### Google identity

- [Google sign-in service](https://github.com/lovekaur2006/infosys-springboard-virtual-internship/blob/main/src/services/authService.ts): `src/services/authService.ts`

### Other components

- **User**
- **Google account**
- **Google Calendar**

## Connections

- User → App coordinator: uses (evidence: `src/App.tsx`)
- App coordinator → Scenario catalog: loads defaults (evidence: `src/App.tsx`)
- App coordinator → Scenario selection: shows (evidence: `src/App.tsx`)
- App coordinator → Agent configuration: shows (evidence: `src/App.tsx`)
- App coordinator → Setup review: shows (evidence: `src/App.tsx`)
- App coordinator → Negotiation arena: shows (evidence: `src/App.tsx`)
- App coordinator → Settlement reports: shows (evidence: `src/App.tsx`)
- App coordinator → Google sign-in service: signs in (evidence: `src/App.tsx`)
- App coordinator → Calendar service: creates event (evidence: `src/App.tsx`)
- App coordinator → Schedule form: opens (evidence: `src/App.tsx`)
- App coordinator → Event confirmation: opens (evidence: `src/App.tsx`)
- App coordinator → Calendar events: opens (evidence: `src/App.tsx`)
- Scenario selection → Scenario catalog: displays choices (evidence: `src/components/ScenarioSelectionScreen.tsx`)
- Agent configuration → Scenario catalog: uses definitions (evidence: `src/components/AgentConfigurationScreen.tsx`)
- User → Configuration validation: checks setup
- Negotiation arena → Negotiation engine: generates turns (evidence: `src/components/NegotiationArena.tsx`)
- Negotiation arena → Negotiation engine: summarizes outcome (evidence: `src/components/NegotiationArena.tsx`)
- Settlement reports → Negotiation engine: builds summary (evidence: `src/components/ReportsScreen.tsx`)
- Google account → Google sign-in service: authorizes (evidence: `src/services/authService.ts`)
- Schedule form → App coordinator: submits details (evidence: `src/App.tsx`)
- Event confirmation → App coordinator: confirms event (evidence: `src/App.tsx`)
- Calendar events → Calendar service: requests events (evidence: `src/components/CalendarEventListModal.tsx`)
- Calendar service → Google Calendar: reads and writes (evidence: `src/services/calendarService.ts`)
