Go to file
jean-philippe 30575c6f77 feat: Integrate backend list agents endpoint
Backend team successfully fixed Swagger conflicts and implemented simple GET
endpoints. Frontend now integrates with GET /api/agents to list all agents.

Changes:
- agent_endpoint.dart:
  - Added fromInt() methods to all enums (AgentType, AgentStatus, ModelProviderType)
  - Updated AgentDto.fromJson() to handle integer enum values from backend
  - Added listAgents() method using HTTP GET /api/agents
  - Added imports: dart:async, dart:convert, dart:io, package:http

- agents_page.dart:
  - Updated _loadAgents() to call listAgents() API method
  - Removed placeholder delay, now uses real data from backend
  - Removed unused getwidget import

Backend Integration:
 Backend returns 5 test agents (seeded successfully)
 Enums transmitted as integers (CodeGenerator=0, Active=0, etc.)
 Frontend properly parses integer enums to Dart enum types
 GET /api/agents endpoint working and tested
 Full CRUD cycle now functional

Testing:
- Flutter analyze: 0 errors, 0 warnings
- Backend health check:  passing
- List endpoint:  returns 5 agents
- App running: http://localhost:8080

Phase 2 Complete: Frontend can now display agents from backend!

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-26 20:28:45 -04:00
.idea Initial commit: CODEX_ADK (Svrnty Console) MVP v1.0.0 2025-10-26 18:32:38 -04:00
BACKEND fix: Remove duplicate endpoint registrations breaking Swagger/OpenAPI generation 2025-10-26 20:19:58 -04:00
FRONTEND feat: Integrate backend list agents endpoint 2025-10-26 20:28:45 -04:00
.DS_Store Initial commit: CODEX_ADK (Svrnty Console) MVP v1.0.0 2025-10-26 18:32:38 -04:00
.gitignore chore: Add monorepo git workflow and root .gitignore 2025-10-26 19:29:21 -04:00
context-claude.md Initial commit: CODEX_ADK (Svrnty Console) MVP v1.0.0 2025-10-26 18:32:38 -04:00
GIT-WORKFLOW.md chore: Add monorepo git workflow and root .gitignore 2025-10-26 19:29:21 -04:00