forked from Rockachopa/Timmy-time-dashboard
Major:
- Extract all inline <style> blocks from 22 Jinja2 templates into
static/css/mission-control.css — single cacheable stylesheet
- Add tox lint check that fails on inline <style> in templates
Minor:
1. Connection status indicator in topbar (green/amber/red dot) reflecting
WebSocket + Ollama reachability, with auto-reconnect
2. Jinja2 {% macro panel(title) %} in macros.html — eliminates repeated
.card.mc-panel markup; index.html converted as example
3. SVG favicon (purple T + orange dot)
4. 30-second TTL cache on _check_ollama() to avoid blocking the event loop
on every health poll (asyncio.to_thread was already in place)
5. Toast notification system (McToast.show) for transient status messages —
wired into connection status for Ollama/WebSocket state changes
Enforcement:
- CLAUDE.md updated with conventions 11-14 (no inline CSS, use panel macro,
use toasts, never block the event loop)
- tox lint + pre-push environments now fail on inline <style> blocks
https://claude.ai/code/session_014FQ785MQdyJQ4BAXrRSo9w
Co-authored-by: Claude <noreply@anthropic.com>
53 lines
1.7 KiB
HTML
53 lines
1.7 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}Thought Stream{% endblock %}
|
|
|
|
{% block extra_styles %}{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="container thinking-container py-4">
|
|
|
|
<div class="thinking-header mb-4">
|
|
<div class="thinking-title">Thought Stream</div>
|
|
<div class="thinking-subtitle">
|
|
Inner monologue — always thinking, always pondering.
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card mc-panel">
|
|
<div class="card-header mc-panel-header d-flex justify-content-between align-items-center">
|
|
<span>// INNER THOUGHTS</span>
|
|
<span class="badge" style="background:var(--purple-dim); color:var(--purple);">{{ thoughts | length }} thoughts</span>
|
|
</div>
|
|
<div class="card-body p-3"
|
|
id="thought-stream"
|
|
hx-get="/thinking/api"
|
|
hx-trigger="every 60s"
|
|
hx-swap="innerHTML"
|
|
hx-select-oob="false">
|
|
|
|
{% if thoughts %}
|
|
{% for thought in thoughts %}
|
|
<div class="thought-card">
|
|
<div class="thought-meta">
|
|
<span class="seed-badge seed-{{ thought.seed_type }}">{{ thought.seed_type }}</span>
|
|
<span class="thought-time">{{ thought.created_at[:19] }}</span>
|
|
{% if thought.parent_id %}
|
|
<a href="/thinking/api/{{ thought.id }}/chain" class="thought-chain-link" title="View thought chain">chain</a>
|
|
{% endif %}
|
|
</div>
|
|
<div class="thought-content">{{ thought.content | e }}</div>
|
|
</div>
|
|
{% endfor %}
|
|
{% else %}
|
|
<div class="no-thoughts">
|
|
No thoughts generated yet. The thinking thread will begin shortly after startup.
|
|
</div>
|
|
{% endif %}
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
{% endblock %}
|