mirror of
https://github.com/AJaySi/ALwrity.git
synced 2026-04-25 08:55:58 +03:00
[PR #365] [MERGED] feat: load Team Huddle widget data from agents APIs #667
Labels
No labels
AI Content Agents
AI Content Strategy
AI Content planning
AI Marketing Tools
AI SEO
AI personalization
AI writer
ALwrity Copi-lot
Alwrity web search
Anthropic
DeepSeek
Gemini AI
Integration
LLM
OnBoarding
OnBoarding
RAG knowledgebase Memory
bug
documentation
enhancement
good first issue
help wanted
invalid
openai
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ALwrity#667
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/AJaySi/ALwrity/pull/365
Author: @AJaySi
Created: 3/2/2026
Status: ✅ Merged
Merged: 3/3/2026
Merged by: @AJaySi
Base:
main← Head:codex/remove-static-agent_team-and-implement-data-loading📝 Commits (1)
124de13feat: load team huddle agents from API endpoints📊 Changes
1 file changed (+241 additions, -99 deletions)
View changed files
📝
frontend/src/components/MainDashboard/components/TeamHuddleWidget.tsx(+241 -99)📄 Description
Motivation
AGENT_TEAMmock with real backend data so the Team Huddle reflects live agent state and activity./api/agents/status,/api/agents/runs, and optionally/api/agents/alertsto provide richer context and surfaced unread alerts.Description
AGENT_TEAMarray and importedapiClientto fetch agent data with a newfetchTeamDataflow that callsGET /api/agents/status,GET /api/agents/runs?limit=20, andGET /api/agents/alerts?unread_only=true&limit=20usingPromise.allSettledto tolerate optional endpoints.AGENT_METAand helper functionsnormalizeAgentKeyandnormalizeStatusto map backend keys (strategy/content/seo/social/competitor, etc.) and status variants into stable card metadata (icon, color, name, role) and normalized status values.current_activityfrom recent runs when the status payload lacks activity, stored agents in state, and exposedalertCountfrom alerts results.Retry, empty-state message) and wired the refresh icon to re-fetch while showing an inline spinner during refresh.Testing
npx eslint src/components/MainDashboard/components/TeamHuddleWidget.tsxwhich passed without errors.npx tsc --noEmitwhich failed in this environment due to pre-existing parse/type errors in third-party declaration files (@copilotkit/react-core), unrelated to the widget changes.Codex Task
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.