From 22722ae9e98b638654596410d33e6619898d8b74 Mon Sep 17 00:00:00 2001
From: Vladimir Bryzgalov
Date: Tue, 21 Apr 2026 17:16:34 +0500
Subject: [PATCH] feat(admin): silent-drop counter line in dashboard widget
---
admin/class-dashboard-widget.php | 2 ++
admin/views/dashboard-widget.php | 10 ++++++++++
2 files changed, 12 insertions(+)
diff --git a/admin/class-dashboard-widget.php b/admin/class-dashboard-widget.php
index 04ffa09..8f89d9d 100644
--- a/admin/class-dashboard-widget.php
+++ b/admin/class-dashboard-widget.php
@@ -30,6 +30,8 @@ final class Dashboard_Widget
$pending = Queue::count_by_status(Queue::STATUS_PENDING);
$sent_24h = Queue::count_sent_last_24h();
$configured = Settings::is_configured();
+ $dry_run_on = Settings::is_dry_run_drop();
+ $drop_counters = Settings::get_drop_counters();
$settings_url = admin_url('options-general.php?page=cf7stg-settings');
include CF7STG_PLUGIN_DIR . 'admin/views/dashboard-widget.php';
}
diff --git a/admin/views/dashboard-widget.php b/admin/views/dashboard-widget.php
index 2bc3993..1a0056d 100644
--- a/admin/views/dashboard-widget.php
+++ b/admin/views/dashboard-widget.php
@@ -5,6 +5,8 @@
/** @var int $sent_24h */
/** @var bool $configured */
/** @var string $settings_url */
+/** @var bool $dry_run_on */
+/** @var array $drop_counters */
?>
⚙️ Плагин не настроен — укажите Bot Token и Chat ID в настройках.
@@ -20,6 +22,14 @@
+
+
+ Dry-run: за сегодня было бы дропнуто , всего .
+
+ Дропнуто сегодня: (вчера , всего ).
+
+
+
0): ?>
Последние ошибки доставки (TG-API):