From 4424780903c87782177f7466aff1d7bc24ff4d15 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 31 Jul 2025 22:55:37 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20Clean=20up=20marketplace=20to=20?= =?UTF-8?q?keep=20only=203=20working=20agents?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove non-working agents: CSV Data Analyzer, PDF Content Analyzer, Website Data Scraper - Clean up empty categories automatically - Update marketplace UI to match workflows design with enhanced styling - Fix PDF Summarizer display issue with array-format sections - Final state: 3 agents across 3 categories (Social Ads, Job Posting, PDF Summarizer) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- CLAUDE.md | 2 +- agents/templates/agents/marketplace.html | 344 +++++++++++------------ docs_update_summary.txt | 12 +- static/js/agents-core.js | 11 +- 4 files changed, 189 insertions(+), 180 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index af2b7bd..0119d60 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -225,4 +225,4 @@ gunicorn netcop_hub.wsgi:application 4. Check WorkflowRequest/WorkflowResponse creation --- -Last updated: Last updated: Last updated: Last updated: Last updated: Last updated: 2025-07-31 19:10:15 +Last updated: Last updated: Last updated: Last updated: Last updated: Last updated: Last updated: 2025-07-31 19:18:31 diff --git a/agents/templates/agents/marketplace.html b/agents/templates/agents/marketplace.html index e8b5003..72a18a4 100644 --- a/agents/templates/agents/marketplace.html +++ b/agents/templates/agents/marketplace.html @@ -1,10 +1,10 @@ {% extends 'base.html' %} {% load static %} -{% block title %}AI Agents Marketplace - Quantum Tasks AI{% endblock %} +{% block title %}AI Agent Marketplace - Quantum Tasks AI{% endblock %} {% block extra_css %} - + @@ -263,85 +269,77 @@
-

🤖 AI Agents Marketplace

-

Discover powerful AI agents to automate your tasks and boost productivity

- - -
-
- - -
- -
-
-
+

🤖 AI Agent Marketplace

+

+ Discover powerful AI agents to automate your tasks, boost productivity, and streamline your workflow +

- -
-

{{ agents.count }} agent{{ agents.count|pluralize }} found

+ + - - -
- {% for agent in agents %} -
-
-
{{ agent.category.icon }}
-
-

{{ agent.name }}

- {{ agent.category.name }} -
-
{{ agent.price }} AED
-
- -
-

{{ agent.short_description }}

-
- - -
- {% empty %} -
-
🤖
-

No agents found

-

Try adjusting your search or filter criteria

- View All Agents -
+ + +
+ + All + + {% for category in categories %} + + {{ category.icon }} {{ category.name }} + {% endfor %}
- - {% if not selected_category and not search_query %} -
-

Browse by Category

- + +
+ {% if search_query %} + Search results for "{{ search_query }}" • + {% endif %} + {% if selected_category %} + {{ selected_category|capfirst }} category • + {% endif %} + {{ agents.count }} agent{{ agents.count|pluralize }} available +
+ + + {% if agents %} + + {% else %} +
+
🔍
+

No agents found

+

Try adjusting your search or browse all categories

+ Browse All Agents
{% endif %}
diff --git a/docs_update_summary.txt b/docs_update_summary.txt index 8485d24..62e015c 100644 --- a/docs_update_summary.txt +++ b/docs_update_summary.txt @@ -1,14 +1,18 @@ === Documentation Auto-Update Summary === -Update Date: 2025-07-31 19:10:15 +Update Date: 2025-07-31 19:18:31 Recent Commits: + - 400f2b7 📄 Add PDF Summarizer agent with advanced file upload system - cf8583d 💼 Add Job Posting Generator agent with comprehensive form schema - 27a1c7d 📚 Auto-update documentation after agents app implementation - - 5eba8fe 🚀 Complete agents app implementation with social ads frontend Agents Changes: - - agents/management/commands/create_job_posting_agent.py - - agents/views.py + - agents/management/commands/create_pdf_summarizer_agent.py + - agents/templates/agents/agent_detail.html + - static/js/agents-core.js + +Documentation Changes: + - CLAUDE.md Backend Changes: - docs_update_summary.txt diff --git a/static/js/agents-core.js b/static/js/agents-core.js index 9db4f60..47aa73c 100644 --- a/static/js/agents-core.js +++ b/static/js/agents-core.js @@ -244,8 +244,15 @@ class AgentsCore extends WorkflowsCore { // Handle different response formats from file processing if (data && typeof data === 'object') { - if (data.sections) { - // Multi-section response + if (data.sections && Array.isArray(data.sections)) { + // Multi-section response (array format) + content = data.sections.map(section => { + const heading = section.heading || 'Section'; + const sectionContent = section.content || ''; + return `## ${heading}\n\n${sectionContent}`; + }).join('\n\n'); + } else if (data.sections && typeof data.sections === 'object') { + // Multi-section response (object format) content = Object.entries(data.sections).map(([section, text]) => { return `## ${section.replace('_', ' ').toUpperCase()}\n\n${text}`; }).join('\n\n');