Agents Page Customization
Agents Page Customization
Documentation Version: 0.242.064
Version Implemented: 0.241.229
Updated in: 0.242.064
Implemented in version: 0.241.229
Updated in version: 0.242.064
Related Config Update: application/single_app/config.py -> VERSION = "0.242.064"
Overview
Admins can customize the public Agents page hero from the AI and Agents admin settings tab. The feature controls the hero title, subtitle, single-color or two-tone hero background, an optional markdown guidance message shown below the hero, whether agent instructions are visible in the Agents page details popup, and which agents are promoted into the Popular tab.
Purpose
The Agents page often needs organization-specific language and curation. Admins can now explain how users should request new agents, provide contact details, add governance notes, or highlight important agents before usage counts naturally make them popular without editing templates.
Dependencies
- Admin Settings page and existing settings persistence flow
/agentsfrontend route- Local
markedandDOMPurifybrowser assets for markdown rendering - Bootstrap form controls and page layout styles
Technical Specifications
Architecture Overview
functions_settings.pydefines defaults foragents_page_*settings.route_frontend_admin_settings.pyrenders and persists the fields from Admin Settings.route_frontend_agents.pybuilds a sanitized publicagents_page_configwith validated hex colors.templates/agents.htmlapplies the configured title, subtitle, hero colors, and markdown payload.functions_agent_catalog.pyannotates accessible catalog records that match admin-selected Popular tab promotions. Stored catalog keys never expose agents outside the current user’s normal visibility.static/js/agents_catalog.jsrenders the optional markdown disclaimer throughDOMPurify.sanitize(marked.parse(...)), merges promoted agents into Popular rankings, and renders the optional promoted badge.
Configuration Options
agents_page_title: Hero title text.agents_page_subtitle: Hero subtitle text.agents_page_hero_color_mode:singleortwo_tone.agents_page_hero_primary_color: Valid#RRGGBBprimary hero color.agents_page_hero_secondary_color: Valid#RRGGBBsecondary color for two-tone hero mode.agents_page_disclaimer_markdown: Optional markdown guidance text shown below the hero.agents_page_show_instructions_in_details: Shows agent instructions in the Agents page details popup when enabled. When disabled, the Agents catalog API omits theinstructionsfield for that page.agents_page_promoted_popular_agents: Ordered list of promoted agent catalog keys with display metadata and a visibility window ofall_time,30_days, orboth.agents_page_promoted_popular_order: Places promoted agentsbefore,after, ormixedwith usage-ranked agents.agents_page_promoted_popular_tag_enabled: Controls whether promoted agents show a promoted badge.agents_page_promoted_popular_tag_label: Badge text shown for promoted agents, defaulting toPromoted.
File Structure
application/single_app/functions_settings.pyapplication/single_app/route_frontend_admin_settings.pyapplication/single_app/route_frontend_agents.pyapplication/single_app/templates/admin_settings.htmlapplication/single_app/templates/agents.htmlapplication/single_app/static/css/agents-catalog.cssapplication/single_app/static/js/agents_catalog.js
Usage Instructions
- Open Admin Settings.
- Go to the AI and Agents tab.
- Use Agents Page Customization to set the title, subtitle, hero color mode, hero colors, optional guidance text, and details popup instruction visibility.
- In Promoted Popular Agents, select any visible agent, choose whether it appears in All Time, Last 30 Days, or both Popular views, set placement, and choose whether to show the promoted badge.
- Save settings.
- Open
/agentsto review the customized page.
Testing and Validation
- Functional coverage:
functional_tests/test_agents_catalog_feature.pyvalidates defaults, admin controls, persistence wiring, sanitized disclaimer rendering, instruction visibility redaction, promoted Popular tab ranking, and the public route handoff. - JavaScript syntax checks cover
static/js/agents_catalog.js. - Python parse checks cover the changed route/config/test files.
Known Limitations
- The disclaimer supports markdown formatting only. Runtime JavaScript sanitization strips unsafe HTML before display.
- Hero colors accept six-digit hex colors only.
- Promoted Popular agents only render for users who can already access the selected agent through personal, group, or enterprise catalog rules.