feat: bot reset with hard confirm and event-driven purge

This commit is contained in:
Joseph Doherty
2026-04-26 14:07:56 -04:00
parent 46062973c2
commit 82be8b3f51
5 changed files with 279 additions and 1 deletions
+12 -1
View File
@@ -8,7 +8,18 @@
{% if bots %}
<ul class="bot-list">
{% for bot in bots %}
<li><a href="/bots/{{ bot.id }}">{{ bot.name }}</a></li>
<li>
<a href="/bots/{{ bot.id }}">{{ bot.name }}</a>
<details class="bot-row-reset">
<summary>Reset</summary>
<form method="post" action="/bots/{{ bot.id }}/reset" class="inline-edit">
<label>Type "{{ bot.name }}" to confirm:
<input type="text" name="confirm_name" required>
</label>
<button type="submit">Reset bot</button>
</form>
</details>
</li>
{% endfor %}
</ul>
{% else %}