hermes-trace/templates/layout.html
XLion 09f6817706
refactor(frontend): extract CSS, fix bugs, improve a11y, and show all session turns
- Extract inline CSS from layout.html into static/hermes-trace.css
  (-42%, dead selectors from legacy side-panel/three-pane/waterfall removed)
- Fix fragile query-string building in openTurn (URLSearchParams)
- Fix payload race: beforeSwap guard drops stale JSON payloads when
  switching turns mid-flight
- Show Loading placeholder and surface HTMX failures instead of
  failing silently
- Extract inline x-data into Alpine.data("turnDetail") component
- a11y: keyboard-operable rows (tabindex + Enter/Space), Esc closes
  overlay, aria-label on close button, focusable token tooltip,
  higher-contrast latency-medium
- Table consistency: LLM latency renders with 's' unit, truncated
  cells get title attributes
- Show all turns in session view (drop default limit of 100) and
  remove now-dead _order offset logic
- Add X-Content-Type-Options: nosniff header and data: favicon
- Sync docs (frontend.md, database.md, AGENTS.md) with the above
2026-07-19 01:53:31 +08:00

18 lines
857 B
HTML

<!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}hermes-trace{% endblock %}</title>
<link rel="stylesheet" href="/static/hermes-trace.css">
<link rel="icon" href="data:,">
<script src="https://unpkg.com/[email protected]" integrity="sha384-H5SrcfygHmAuTDZphMHqBJLc3FhssKjG7w/CeCpFReSfwBWDTKpkzPP8c+cLsK+V" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/cdn.min.js" integrity="sha384-pb6hrQvo4s23cEUFtj0CZkzGE3jyK3pj26RIupXXxhSrrcUA/Cn0lZgcCrGH0t6L" crossorigin="anonymous"></script>
<script src="/static/hermes-trace.js"></script>
</head>
<body>
<div class="container">
{% block content %}{% endblock %}
</div>
</body>
</html>