Skip to content

Add "My Agents" Page #30

@Dawe000

Description

@Dawe000

Add "My Agents" Page

Description

Create a dedicated "My Agents" page (/my-agents) that displays all agents owned by the currently connected wallet address, providing an easy way for users to view and manage their agents.

Requirements

  • Route: /my-agents page
  • Agent listing:
    • Fetch agents owned by connected wallet using SDK's searchAgents({ owners: [walletAddress] })
    • Support multi-chain search (show agents from all chains by default, or allow filtering)
    • Display agents using existing AgentCard component (consistent with search page)
    • Support both card and table view modes (reuse view toggle from search page)
  • Empty state: Show friendly message when user owns no agents, with link to create agent
  • Loading states: Show loading skeletons while fetching
  • Navigation:
    • Click agent cards to navigate to agent detail page (/agents/[agentId])
    • Add navigation link in Header component
  • Error handling: Handle errors gracefully (network errors, SDK errors, etc.)
  • Pagination: Support pagination if user owns many agents

Technical Notes

  • Use Agent0 SDK's searchAgents() method with owners filter
  • Reuse existing components:
    • AgentCard from @/components/agent/AgentCard
    • View mode toggle (card/table) similar to search page
    • Loading skeletons
  • Add "My Agents" link to Header navigation
  • Should work with same wallet connection state as admin area

Potential Sub-issues

  • Wallet connection integration for My Agents page
  • Agent listing with multi-chain support
  • Empty state and error handling

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions