Files
slop-broker/templates/index.html
T
jackos1998andClaude Opus 5.5 398f5927f5
CI / Check (push) Successful in 5m59s
web: Keep pages current with Server-Sent Events
Pages polled `/api/version` every three seconds, then fetched the
pending list and replaced it, or reloaded a request's page. Now each
page follows one stream from `/events`, whose `morph` events carry a
region of the page: the pending list, or the request, as a whole
element with its `id`, rendered by the page's own templates. The page
script morphs it into the page with idiomorph, vendored, so open
details, the focus and typing stay.

The stream starts with the current region, so a page catches up when
the browser reconnects, and it ends when the approver signs out.
`/api/version` and `/pending` are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 14:46:11 +00:00

10 lines
294 B
HTML

{% extends "base.html" %}
{% block title %}Slopprovals{% endblock %}
{% block main %}
<h1>Pending requests</h1>
<section id="push" hidden>
<p><span id="push-state"></span> <button type="button" id="push-toggle" class="quiet"></button></p>
</section>
{% include "pending.html" %}
{% endblock %}