Skip to content

Feat/merged pr features clean - #31

Closed
dsactivi-2 wants to merge 4 commits into
mainfrom
feat/merged-pr-features-clean
Closed

dsactivi-2 wants to merge 4 commits into
mainfrom
feat/merged-pr-features-clean

Conversation

@dsactivi-2

Copy link
Copy Markdown
Owner

No description provided.

dsactivi and others added 4 commits January 1, 2026 14:55
Components (with test-IDs):
- NEW: ThemeProvider.tsx - dark/light/system theme switching
- NEW: ThemeToggle.tsx - theme toggle dropdown button
- MERGED: AgentCard.tsx - added spokenLanguage, agentType, contentAutonomy
- MERGED: CreateAgentDialog.tsx - added influencer type, spoken language selector

Documentation:
- NEW: docs/AGENT_CONTROL.md - Agent Control API documentation

Fix:
- Fixed unused parameter warning in brain-proxy.ts

Features merged from PRs:
- PR #2: ThemeProvider, ThemeToggle
- PR #4: Influencer agent type, Serbian language support, content autonomy
- PR #7: AGENT_CONTROL.md API documentation

All components include data-testid attributes following naming convention:
cloudagents.{component}.{element}.{action}

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Auto-fixed by GitHub Actions
Components updated:
- ActivityLog.tsx: cloudagents.activitylog.* test-IDs
- DemoDashboard.tsx: cloudagents.demodashboard.* test-IDs
- DemoPage.tsx: cloudagents.demopage.* test-IDs
- StatsCard.tsx: cloudagents.statscard.* test-IDs
- StatusDashboard.tsx: cloudagents.statusdashboard.* test-IDs
- TeamAgentCard.tsx: cloudagents.teamagent.* test-IDs
- TeamAgentList.tsx: cloudagents.teamagentlist.* test-IDs

All test-IDs follow the naming convention: cloudagents.{component}.{element}

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Auto-fixed by GitHub Actions
@github-actions

github-actions Bot commented Jan 1, 2026

Copy link
Copy Markdown

@sentry review

Comment on lines +72 to +80
onCreate({
name,
description,
language,
code,
spokenLanguage,
agentType,
contentAutonomy: agentType === "influencer" ? contentAutonomy : false,
});

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bug: New agent properties (agentType, contentAutonomy) are passed from CreateAgentDialog but are ignored by handleCreateAgent and not stored, breaking influencer-specific UI features in AgentCard.
Severity: CRITICAL | Confidence: High

🔍 Detailed Analysis

The CreateAgentDialog component correctly passes new agent properties (spokenLanguage, agentType, contentAutonomy) to its onCreate callback. However, the handleCreateAgent function in App.tsx is not typed to receive these new properties, and they are not included in the Agent interface. Consequently, this data is lost when a new agent is created. This prevents the AgentCard component from correctly rendering UI elements specific to the "influencer" agent type, as its conditional logic relies on the agentType and contentAutonomy properties, which will be undefined.

💡 Suggested Fix

Update the handleCreateAgent function signature in App.tsx to accept the new properties (spokenLanguage, agentType, contentAutonomy). Add these properties to the Agent interface to ensure they are stored correctly with the agent object.

🤖 Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: src/components/CreateAgentDialog.tsx#L72-L80

Potential issue: The `CreateAgentDialog` component correctly passes new agent properties
(`spokenLanguage`, `agentType`, `contentAutonomy`) to its `onCreate` callback. However,
the `handleCreateAgent` function in `App.tsx` is not typed to receive these new
properties, and they are not included in the `Agent` interface. Consequently, this data
is lost when a new agent is created. This prevents the `AgentCard` component from
correctly rendering UI elements specific to the "influencer" agent type, as its
conditional logic relies on the `agentType` and `contentAutonomy` properties, which will
be `undefined`.

Did we get this right? 👍 / 👎 to inform future reviews.
Reference ID: 508902

@dsactivi-2

Copy link
Copy Markdown
Owner Author

Bereits gemerged als PR #27 (commit 11a5d01)

@dsactivi-2 dsactivi-2 closed this Jan 1, 2026
dsactivi-2 pushed a commit that referenced this pull request Mar 2, 2026
Fix Git hooks for Husky v9 compatibility
dsactivi-2 pushed a commit that referenced this pull request Mar 2, 2026
Co-authored-by: den-is9186 <257160258+den-is9186@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants