Skip to content

48160 frontend [teams] add AI agent creation form - #297

Open
aicarma-artyom-maslov wants to merge 16 commits into
masterfrom
frontend/ai-agent/48160__add_ai_agent_support_for_performers
Open

48160 frontend [teams] add AI agent creation form#297
aicarma-artyom-maslov wants to merge 16 commits into
masterfrom
frontend/ai-agent/48160__add_ai_agent_support_for_performers

Conversation

@aicarma-artyom-maslov

@aicarma-artyom-maslov aicarma-artyom-maslov commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Note

Medium Risk
UI-only with no persistence yet, but the form collects API keys in the browser and shared dropdown/modal changes affect other forms.

Overview
Adds a User / AI agent tab switcher to the Team Create User modal and introduces a dedicated Create AI agent form alongside the existing user flow.

The new tab collects profile fields (name, position), model provider, endpoint URL, API key, optional system prompt, and avatar upload or initials-based “generate,” with Formik validation (including URL protocol checks). Submit calls an optional onCreateAIAgent callback; Users wires that to a warning that backend creation is not ready yet. Both forms stay mounted so tab switches preserve drafts; reopening resets the AI form and clears sensitive fields and stale avatar reads.

Modal layout/CSS is extended for tabs and the taller AI layout. FormikDropdownList defers setTouched on blur so react-select option clicks still work; required dropdown asterisks move from CSS to isRequired. ModalHeader gains a configurable titleTag for the tab header. EN/RU strings and broad tests cover the new tab behavior.

Reviewed by Cursor Bugbot for commit 57bd2b2. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Add AI agent creation form to the Create User modal

  • Adds a tabbed UI to CreateUserModal, switching between an existing User form and a new CreateAIAgentForm for AI agents.
  • The AI agent form includes fields for name, position, model, endpoint (URL-validated), API key, system prompt, and avatar (upload or initials-generated placeholder).
  • Form state resets on modal reopen, and stale avatar file reads are discarded using a ref-based action ID.
  • Submitting the AI agent form currently shows a warning notification (via NotificationManager) indicating the backend is unavailable; no data is persisted.
  • Fixes FormikDropdownList blur handling so validation errors appear after blur without interrupting option selection.

Macroscope summarized 57bd2b2.

Comment thread frontend/src/public/components/Team/Users/CreateUserModal/CreateAIAgentForm.tsx Outdated
Comment thread frontend/src/public/components/Team/Users/CreateUserModal/CreateUserModal.tsx Outdated
Comment thread frontend/src/public/components/Team/Users/CreateUserModal/CreateUserModal.tsx Outdated
Comment thread frontend/src/public/components/Team/Users/CreateUserModal/CreateAIAgentForm.tsx Outdated

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 3a81ca3. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Frontend Web client changes request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant