From 84fc63663e76e62867b8222cf5e2f87c17db83a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=85=E8=86=80?= Date: Sat, 17 Oct 2026 00:58:24 +0800 Subject: [PATCH] feat(console): confirm removing filled editor rows Filter conditions and groups, delivery targets, saved fragments and forge hosts vanished on a single click, taking whatever had been typed with them. Rows holding content now ask first, while empty, never-filled rows (`isBlankNode`: default operator, no path, no values, not negated) are still removed directly. --- app/components/FilterNodeEditor.vue | 20 ++++++++++++++++---- app/components/GroupEditor.vue | 12 +++++++++++- app/components/RouteEditor.vue | 28 +++++++++++++++++++++++----- app/composables/useFilterNode.ts | 15 +++++++++++++++ app/composables/useI18n.ts | 10 ++++++++++ docs/guide/configuration.md | 2 +- docs/zh/guide/configuration.md | 2 +- tests/filter-node.test.ts | 27 +++++++++++++++++++++++++++ 8 files changed, 104 insertions(+), 12 deletions(-) create mode 100644 tests/filter-node.test.ts diff --git a/app/components/FilterNodeEditor.vue b/app/components/FilterNodeEditor.vue index 4bd8c60..8011bc2 100644 --- a/app/components/FilterNodeEditor.vue +++ b/app/components/FilterNodeEditor.vue @@ -1,6 +1,6 @@