Page Projets : copie URL dans le menu ⋯ + refonte thème barre Fusion/Spark (#44, #45)
CI / test (push) Failing after 2s

This commit is contained in:
2026-10-29 08:21:21 -04:00
parent 9653f851c8
commit a2ebefbda1
+5 -5
View File
@@ -27,13 +27,13 @@
{% for err in errors %} {% for err in errors %}
<p class="chip-warn">{{ err }}</p> <p class="chip-warn">{{ err }}</p>
{% endfor %} {% endfor %}
<p><button type="button" class="btn-save btn-inline" id="rules-run">▶️ Évaluer maintenant</button> <p><button type="button" class="btn-save btn-inline" id="rules-run">Évaluer maintenant</button>
<span id="rules-run-result" class="notes-hint"></span></p> <span id="rules-run-result" class="notes-hint"></span></p>
</section> </section>
{% if rules %} {% if rules %}
<section class="briefing-card"> <section class="briefing-card">
<h2>📜 Règles actives ({{ rules|length }})</h2> <h2>Règles actives ({{ rules|length }})</h2>
<ul class="forecast-milestones"> <ul class="forecast-milestones">
{% for rule in rules %} {% for rule in rules %}
<li><strong>{{ rule.name }}</strong> — quand <li><strong>{{ rule.name }}</strong> — quand
@@ -46,7 +46,7 @@
{% if last_run %} {% if last_run %}
<section class="briefing-card"> <section class="briefing-card">
<h2>🕐 Dernière évaluation — {{ last_run.at }}</h2> <h2>Dernière évaluation — {{ last_run.at }}</h2>
{% if last_run.actions %} {% if last_run.actions %}
<ul class="forecast-milestones"> <ul class="forecast-milestones">
{% for action in last_run.actions %} {% for action in last_run.actions %}
@@ -75,10 +75,10 @@
const r = await fetch('/api/rules/run', { method: 'POST', body: data }); const r = await fetch('/api/rules/run', { method: 'POST', body: data });
const body = await r.json(); const body = await r.json();
if (!r.ok || !body.ok) throw new Error((body && body.error) || ('HTTP ' + r.status)); if (!r.ok || !body.ok) throw new Error((body && body.error) || ('HTTP ' + r.status));
out.textContent = '✔ ' + body.summary.actions.length + ' action(s) — rechargement…'; out.textContent = '' + body.summary.actions.length + ' action(s) — rechargement…';
setTimeout(() => location.reload(), 700); setTimeout(() => location.reload(), 700);
} catch (e) { } catch (e) {
out.textContent = '❌ ' + e.message; out.textContent = '' + e.message;
} }
}); });
</script> </script>