forked from Rockachopa/Timmy-time-dashboard
- base.html: add missing {% block extra_styles %}, mobile hamburger menu with
slide-out nav, interactive-widget viewport meta, -webkit-text-size-adjust
- style.css: define 15+ missing CSS variables (--bg-secondary, --text-muted,
--accent, --success, --danger, etc.), add missing utility classes (.grid,
.stat, .agent-card, .agent-avatar, .form-group), glassmorphism card effects,
iPhone breakpoints (768px, 390px), 44pt min touch targets, smooth animations
- mobile.html: rewrite with proper theme variables, glass cards, touch-friendly
quick actions grid, chat with proper message bubbles
- swarm_live.html: replace undefined CSS vars, use mc-panel theme cards
- marketplace.html: responsive agent cards that stack on iPhone, themed pricing
- voice_button.html & voice_enhanced.html: proper theme integration, touch-sized
buttons, themed result containers
- create_task.html: mobile-friendly forms with 16px font (prevents iOS zoom)
- tools.html & creative.html: themed headers, responsive column stacking
- spark.html: replace all hardcoded blue (#00d4ff) colors with theme purple/orange
- briefing.html: replace hardcoded bootstrap colors with theme variables
Fixes: header nav overflow on iPhone (7 links in single row), missing
extra_styles block silently dropping child template styles, undefined CSS
variables breaking mobile/swarm/marketplace/voice pages, sub-44pt touch
targets, missing -webkit-text-size-adjust, inconsistent color themes.
97 UI tests pass (91 UI-specific + 6 creative route).
https://claude.ai/code/session_01JiyhGyee2zoMN4p8xWYqEe
152 lines
4.4 KiB
HTML
152 lines
4.4 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}Tools & Capabilities — Mission Control{% endblock %}
|
|
|
|
{% block extra_styles %}
|
|
<style>
|
|
.tools-container { max-width: 1200px; margin: 0 auto; }
|
|
|
|
.tools-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
margin-bottom: 20px;
|
|
}
|
|
.tools-title {
|
|
font-size: 1.3rem;
|
|
font-weight: 700;
|
|
color: var(--text-bright);
|
|
letter-spacing: 0.08em;
|
|
}
|
|
.tools-subtitle {
|
|
font-size: 0.8rem;
|
|
color: var(--text-dim);
|
|
margin-top: 2px;
|
|
}
|
|
.tools-stat-box {
|
|
background: var(--glass-bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
padding: 10px 18px;
|
|
text-align: center;
|
|
}
|
|
.tools-stat-val {
|
|
font-size: 1.3rem;
|
|
font-weight: 700;
|
|
color: var(--text-bright);
|
|
}
|
|
.tools-stat-label {
|
|
font-size: 0.7rem;
|
|
color: var(--text-dim);
|
|
letter-spacing: 0.08em;
|
|
}
|
|
|
|
.tool-card {
|
|
height: 100%;
|
|
}
|
|
.tool-card .card-title {
|
|
font-size: 0.85rem;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
.tool-card .card-text {
|
|
font-size: 0.8rem;
|
|
color: var(--text-dim);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.tools-title { font-size: 1.1rem; }
|
|
.tools-header { flex-direction: column; }
|
|
}
|
|
</style>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="tools-container py-3">
|
|
|
|
<div class="tools-header">
|
|
<div>
|
|
<div class="tools-title">TOOLS & CAPABILITIES</div>
|
|
<div class="tools-subtitle">Agent tools and usage statistics</div>
|
|
</div>
|
|
<div class="tools-stat-box">
|
|
<div class="tools-stat-val">{{ total_calls }}</div>
|
|
<div class="tools-stat-label">TOTAL CALLS</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Available Tools -->
|
|
<div class="card mc-panel mb-3">
|
|
<div class="card-header mc-panel-header">// AVAILABLE TOOLS</div>
|
|
<div class="card-body">
|
|
<div class="row g-3">
|
|
{% for tool_id, tool_info in available_tools.items() %}
|
|
<div class="col-12 col-md-4">
|
|
<div class="card tool-card">
|
|
<div class="card-body">
|
|
<h6 class="card-title" style="color:var(--text-bright);">{{ tool_info.name }}</h6>
|
|
<p class="card-text">{{ tool_info.description }}</p>
|
|
<div style="margin-top:8px;">
|
|
<small style="color:var(--text-dim); font-size:0.65rem; letter-spacing:0.08em;">AVAILABLE TO</small>
|
|
<div class="d-flex flex-wrap gap-1 mt-1">
|
|
{% for persona in tool_info.available_in %}
|
|
<span class="badge badge-secondary">{{ persona|title }}</span>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Agent Capabilities -->
|
|
<div class="card mc-panel">
|
|
<div class="card-header mc-panel-header">// AGENT CAPABILITIES</div>
|
|
<div class="card-body">
|
|
{% if agent_tools %}
|
|
<div class="row g-3">
|
|
{% for agent in agent_tools %}
|
|
<div class="col-12 col-md-6">
|
|
<div class="card">
|
|
<div class="card-header d-flex justify-content-between align-items-center">
|
|
<span>
|
|
<strong style="color:var(--text-bright);">{{ agent.name }}</strong>
|
|
<span class="badge {% if agent.status == 'idle' %}badge-success{% elif agent.status == 'busy' %}badge-warning{% else %}badge-secondary{% endif %} ms-2">
|
|
{{ agent.status }}
|
|
</span>
|
|
</span>
|
|
{% if agent.stats %}
|
|
<small style="color:var(--text-dim);">{{ agent.stats.total_calls }} calls</small>
|
|
{% endif %}
|
|
</div>
|
|
<div class="card-body">
|
|
{% if agent.tools %}
|
|
<div class="d-flex flex-wrap gap-2">
|
|
{% for tool in agent.tools %}
|
|
<span class="badge badge-info" title="{{ tool.description }}">{{ tool.name }}</span>
|
|
{% endfor %}
|
|
</div>
|
|
{% else %}
|
|
<p style="color:var(--text-dim); margin:0; font-size:0.85rem;">No tools assigned</p>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% else %}
|
|
<div style="text-align:center; padding:20px; color:var(--text-dim); font-size:0.85rem;">
|
|
No agents registered yet.
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
{% endblock %}
|