fix rust example ui#82
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughThis PR removes the agent_id parameter from the lead-agent application. The backend replaces dynamic agent_id handling with a hardcoded RUNAGENT_ID constant, while the frontend removes agent_id from its state and API requests. The frontend also switches from hardcoded localhost URLs to relative paths, and the vite configuration enables port fallback for development. Changes
Sequence DiagramsequenceDiagram
participant User
participant Frontend
participant Backend
participant RunAgent
Note over Frontend: Old: User enters agent_id in UI
Note over Frontend: New: agent_id removed from UI
User->>Frontend: Upload candidates & job description
Frontend->>Frontend: Form validation (no agent_id required)
Frontend->>Backend: POST /api/score-leads (candidates, job_description, top_n, generate_emails)
Note over Backend: Uses hardcoded RUNAGENT_ID constant
Backend->>Backend: Normalize candidate JSON
Backend->>RunAgent: Call with RUNAGENT_ID (not from request)
RunAgent-->>Backend: Results
Backend->>Backend: Parse & log results as JSON
Backend-->>Frontend: Scored results
Frontend->>User: Display results
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Suggested reviewers
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
New Features
Updates