CODEX_ADK/FRONTEND
Svrnty 797ee55caf fix: Make AgentDto configuration fields nullable for list endpoint compatibility
The backend /api/agents list endpoint returns a lightweight DTO without
configuration fields (temperature, maxTokens, systemPrompt, enableMemory,
conversationWindowSize). This caused a TypeError when parsing the response
as these fields were required in AgentDto.

Changes:
- Made 5 configuration fields nullable in AgentDto
- Updated constructor to accept optional values
- Fixed fromJson() to safely handle null values with explicit checks
- Maintains backward compatibility with full agent detail responses

This fix resolves the "Error Loading Agents" issue and allows the agents
page to display correctly. List endpoint now parses successfully while
detail endpoints still provide full configuration.

Fixes: TypeError: null: type 'Null' is not a subtype of type 'num'

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-27 00:01:21 -04:00
..
.claude-docs Initial commit: CODEX_ADK monorepo 2025-10-26 23:12:32 -04:00
android Initial commit: CODEX_ADK monorepo 2025-10-26 23:12:32 -04:00
assets/fonts Initial commit: CODEX_ADK monorepo 2025-10-26 23:12:32 -04:00
docs Initial commit: CODEX_ADK monorepo 2025-10-26 23:12:32 -04:00
images Initial commit: CODEX_ADK monorepo 2025-10-26 23:12:32 -04:00
ios Initial commit: CODEX_ADK monorepo 2025-10-26 23:12:32 -04:00
lib fix: Make AgentDto configuration fields nullable for list endpoint compatibility 2025-10-27 00:01:21 -04:00
linux Initial commit: CODEX_ADK monorepo 2025-10-26 23:12:32 -04:00
macos Initial commit: CODEX_ADK monorepo 2025-10-26 23:12:32 -04:00
scripts Initial commit: CODEX_ADK monorepo 2025-10-26 23:12:32 -04:00
test Initial commit: CODEX_ADK monorepo 2025-10-26 23:12:32 -04:00
web Initial commit: CODEX_ADK monorepo 2025-10-26 23:12:32 -04:00
windows Initial commit: CODEX_ADK monorepo 2025-10-26 23:12:32 -04:00
.gitignore Initial commit: CODEX_ADK monorepo 2025-10-26 23:12:32 -04:00
.metadata Initial commit: CODEX_ADK monorepo 2025-10-26 23:12:32 -04:00
analysis_options.yaml Initial commit: CODEX_ADK monorepo 2025-10-26 23:12:32 -04:00
api-schema.json Initial commit: CODEX_ADK monorepo 2025-10-26 23:12:32 -04:00
build.yaml Initial commit: CODEX_ADK monorepo 2025-10-26 23:12:32 -04:00
claude.md Initial commit: CODEX_ADK monorepo 2025-10-26 23:12:32 -04:00
pubspec.lock Initial commit: CODEX_ADK monorepo 2025-10-26 23:12:32 -04:00
pubspec.yaml Initial commit: CODEX_ADK monorepo 2025-10-26 23:12:32 -04:00
README_API.md Initial commit: CODEX_ADK monorepo 2025-10-26 23:12:32 -04:00
README.md Initial commit: CODEX_ADK monorepo 2025-10-26 23:12:32 -04:00
run_dev.sh Initial commit: CODEX_ADK monorepo 2025-10-26 23:12:32 -04:00

Svrnty Console

Sovereign AI Solutions - Control Panel

A Flutter-based management console for the Svrnty AI platform, providing a modern interface for monitoring, configuring, and controlling AI agents and infrastructure.

Features

  • Dashboard: Real-time status monitoring of backend services, agents, and system health
  • The Architech: AI infrastructure design and visualization (coming soon)
  • Agent Management: Configure and monitor AI agents
  • Analytics: Metrics and performance monitoring
  • Dark Theme: Professional dark mode with Svrnty brand colors

Tech Stack

  • Flutter 3.x - Cross-platform UI framework
  • GetWidget - Modern UI component library
  • Iconsax - Clean, modern icon set
  • Animate Do - Smooth animations
  • Custom Theming - Svrnty brand colors (Crimson Red #C44D58, Slate Blue #475C6C)

Project Structure

lib/
├── main.dart                    # App entry point
├── console_landing_page.dart    # Main console UI
├── theme.dart                   # Material theme configuration
├── components/
│   └── navigation_sidebar.dart  # Collapsible navigation
└── pages/
    └── architech_page.dart      # The Architech module

Getting Started

Prerequisites

  • Flutter SDK 3.9.2 or higher
  • Dart SDK 3.9.2 or higher

Installation

# Clone the repository
git clone [repository-url]
cd Console

# Install dependencies
flutter pub get

# Run the application
flutter run

Development

# Run tests
flutter test

# Analyze code
flutter analyze

# Build for production
flutter build macos  # or ios, web, etc.

Brand Fonts

  • Montserrat - Primary UI font
  • IBM Plex Mono - Code and technical content

License

Private - Svrnty AI Solutions