fix(dashboard): F-U-006 surface trigger.enabled with a "• disabled" pill
Trigger.enabled is a boolean on the DTO and the backend supports disabled triggers, but the trigger list never showed the state. Operators couldn't tell from the UI whether a trigger was paused. Add a small "• disabled" pill next to the kind badge when t.enabled === false, with a tooltip explaining the consequence. No PATCH endpoint yet for enabled, so toggle UI is tracked separately as a follow-up. AUDIT.md anchor: F-U-006. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1627,6 +1627,11 @@
|
||||
<li class="domain-row">
|
||||
<div>
|
||||
<span class="kind-badge">{t.kind}</span>
|
||||
{#if !t.enabled}
|
||||
<!-- F-U-006: surface the trigger.enabled flag. No PATCH endpoint
|
||||
yet, so this is read-only; toggle UI tracked for a follow-up. -->
|
||||
<span class="muted small" title="Trigger is disabled — events are not dispatched.">• disabled</span>
|
||||
{/if}
|
||||
{#if t.details.kind === 'cron'}
|
||||
<code>{t.details.schedule}</code>
|
||||
<span class="muted">— {t.details.timezone}</span>
|
||||
|
||||
Reference in New Issue
Block a user