Skip to content

Improve Agents list empty state with inline actions #898

Closed

Description

@propr-dev

Context

When navigating to the AI Agents page for the first time, the empty state is plain text and doesn't provide a direct button to start the setup flow, requiring the user to find the small button in the header.

Requirements

  • Update the AgentsListSection empty state to be more visually prominent.
  • Add an inline call-to-action button that triggers the add modal.
  • Allow AgentsListSection to accept a callback prop onAddClick.

Implementation Specification

  • Modify propr-ui/src/pages/SettingsPage/AgentsListSection.tsx to add onAddClick and render the new empty state.

Acceptance Criteria

  • The empty state includes an icon and descriptive text.
  • The "Add First Agent" button successfully opens the configuration modal.

Created by ProPR AI Planner

Activity

  1. propr-dev commented on Mar 3, 2026

    @propr-dev
    ContributorAuthor

    Suggested Implementation:

    Implementation Approach

    Enhancing empty states with illustrations (or clear icons) and direct CTAs is a key UX pattern for onboarding. By adding the onAddClick prop, we allow the parent page to control the modal opening directly from the center of the screen.

    File: propr-ui/src/pages/SettingsPage/AgentsListSection.tsx

    --- a/propr-ui/src/pages/SettingsPage/AgentsListSection.tsx
    +++ b/propr-ui/src/pages/SettingsPage/AgentsListSection.tsx
    @@ -24,6 +24,12 @@
       </svg>
     );
     
    +const PlusIcon: React.FC<{ className?: string }> = ({ className = "w-4 h-4" }) => (
    +  <svg className={className} fill="none" viewBox="0 0 24 24" stroke="currentColor">
    +    <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 4v16m8-8H4" />
    +  </svg>
    +);
    +
     const GitHubIcon: React.FC<{ className?: string }> = ({ className = "w-4 h-4" }) => (
       <svg className={className} fill="currentColor" viewBox="0 0 24 24">
         <path fillRule="evenodd" clipRule="evenodd" d="M12 2C6.477 2 2 6.477 2 12c0 4.42 2.865 8.17 6.839 9.49.5.092.682-.217.682-.482 0-.237-.008-.866-.013-1.7-2.782.604-3.369-1.34-3.369-1.34-.454-1.156-1.11-1.463-1.11-1.463-.908-.62.069-.608.069-.608 1.003.07 1.531 1.03 1.531 1.03.892 1.529 2.341 1.087 2.91.831.092-.646.35-1.086.636-1.336-2.22-.253-4.555-1.11-4.555-4.943 0-1.091.39-1.984 1.029-2.683-.103-.253-.446-1.27.098-2.647 0 0 .84-.269 2.75 1.025A9.578 9.578 0 0112 6.836c.85.004 1.705.114 2.504.336 1.909-1.294 2.747-1.025 2.747-1.025.546 1.377.203 2.394.1 2.647.64.699 1.028 1.592 1.028 2.683 0 3.842-2.339 4.687-4.566 4.935.359.309.678.919.678 1.852 0 1.336-.012 2.415-.012 2.743 0 .267.18.578.688.48C19.138 20.167 22 16.418 22 12c0-5.523-4.477-10-10-10z" />
    @@ -165,6 +171,7 @@
       onSaveAgents: (agents: AgentConfig[]) => void;
       showAddModal?: boolean;
       onCloseAddModal?: () => void;
    +  onAddClick?: () => void;
     }
     
     // Code Chip component for consistent styling of IDs, aliases, and paths
    @@ -201,7 +208,8 @@
       error,
       success,
       onSaveAgents,
       showAddModal = false,
    -  onCloseAddModal
    +  onCloseAddModal,
    +  onAddClick
     }) => {
       const [showModal, setShowModal] = useState(false);
       const [editingAgent, setEditingAgent] = useState<AgentConfig | null>(null);
    @@ -258,11 +266,20 @@
                 />
               ))}
               {agents.length === 0 && (
    -            <div className="text-center py-8">
    -              <p className="text-gray-500">No agents configured.</p>
    -              <p className="text-gray-400 text-sm mt-1">
    -                Click "+ Add Agent" to configure your first AI agent.
    +            <div className="text-center py-12 px-4 bg-slate-50 border border-dashed border-slate-300 rounded-lg mt-4">
    +              <div className="w-12 h-12 bg-white border border-gray-200 shadow-sm text-indigo-600 rounded-full flex items-center justify-center mx-auto mb-3">
    +                <svg className="w-6 h-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
    +                  <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />
    +                </svg>
    +              </div>
    +              <h3 className="text-base font-semibold text-gray-900 mb-1">No agents configured</h3>
    +              <p className="text-gray-500 text-sm mb-4">
    +                The system needs an AI agent to execute tasks. Configure Claude, Gemini, or Codex to get started.
                   </p>
    +              {onAddClick && (
    +                <button
    +                  onClick={onAddClick}
    +                  className="inline-flex items-center gap-2 px-4 py-2 bg-indigo-600 text-white text-sm font-medium rounded-lg hover:bg-indigo-700 transition-colors shadow-sm"
    +                >
    +                  <PlusIcon size={16} />
    +                  Add First Agent
    +                </button>
    +              )}
                 </div>
               )}
             </div>
  2. propr-dev commented on Mar 3, 2026

    @propr-dev
    ContributorAuthor

    🤖 AI processing has started for this issue using claude agent with claude-opus-4-5-20251101 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-4-5-20251101
    • Branch: 898/claude-opus-4-5-20251101-improve-agents-list-empty-20260303-1230-11k
    • Base Branch: 892-epic-create-usesystemreadiness-xcn
    • Worktree: issue-898-20260303-1230-claude-opus-4-5-20251101-11k

    🔍 Track Task Execution

  3. added a commit that references this issue on Mar 3, 2026
  4. added a commit that references this issue on Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions