Skip to content

Open-source personal finance manager. Self-hosted, privacy-first.

feat(rules): reuse full rule editor when adding a transaction to an existing rule (#906)

Victor Hugo dos Santosfd25c2b8ad0b
diff --git a/frontend/src/components/rule-dialog.tsx b/frontend/src/components/rule-dialog.tsx
index d8d7955c..e9ac4b83 100644
--- a/frontend/src/components/rule-dialog.tsx
+++ b/frontend/src/components/rule-dialog.tsx
@@ -408,6 +408,8 @@ export interface RuleDialogInitialData {
name?: string
conditions?: RuleConditionNode[]
actions?: RuleAction[]
+ applyToExisting?: boolean
+ overwriteExistingCategories?: boolean
}
export function RuleDialog({
@@ -444,8 +446,10 @@ export function RuleDialog({
// preserves the rule's own state instead of resetting it to on, and so
// the preview can still say "this will match, but the rule is off".
const [isActive] = useState(rule?.is_active ?? true)
- const [applyToExisting, setApplyToExisting] = useState(!rule)
- const [overwriteExistingCategories, setOverwriteExistingCategories] = useState(false)
+ const [applyToExisting, setApplyToExisting] = useState(initialData?.applyToExisting ?? !rule)
+ const [overwriteExistingCategories, setOverwriteExistingCategories] = useState(
+ initialData?.overwriteExistingCategories ?? false
+ )
const [previewOpen, setPreviewOpen] = useState(false)
function updateCondition(i: number, field: keyof RuleCondition, val: string | number) {
@@ -525,6 +529,11 @@ export function RuleDialog({
function handleSubmit(e: React.FormEvent) {
e.preventDefault()
+ // Dialog renders its content through a portal, but React still bubbles
+ // events along the component tree rather than the DOM tree, so without
+ // this the submit would also reach the transaction form wrapping this
+ // dialog and trigger an unrelated save of it.
+ e.stopPropagation()
if (hasBlankCondition || hasInvalidDescriptionAction) return
onSave({
name,
diff --git a/frontend/src/components/transaction-dialog.tsx b/frontend/src/components/transaction-dialog.tsx
index a4bd66e9..e9d8609f 100644
--- a/frontend/src/components/transaction-dialog.tsx
+++ b/frontend/src/components/transaction-dialog.tsx
@@ -33,20 +33,14 @@ import {
DropdownMenuItem,
DropdownMenuTrigger,
} from '@/components/ui/dropdown-menu'
-import {
- Select,
- SelectContent,
- SelectItem,
- SelectTrigger,
- SelectValue,
-} from '@/components/ui/select'
import { CategorySelect } from '@/components/category-select'
+import { RuleDialog, type RuleDialogInitialData } from '@/components/rule-dialog'
import { TransactionAttachments } from '@/components/transaction-attachments'
import type { AttachmentPreview } from '@/components/transaction-attachments'
import { TransactionSplitsSection } from '@/components/transaction-splits-section'
import { buildInstallmentSeriesInput, hasNonStatusChange, isManualInstallmentSeriesRow } from '@/lib/installment-series'
import { usePrivacyMode } from '@/hooks/use-privacy-mode'
-import type { Transaction, RecurringTransaction, TransactionSplitsInput, TransactionEditPayload, InstallmentSeriesInput, TransactionApplyScope, CategoryGroup, Category, Rule, RuleCondition } from '@/types'
+import type { Transaction, RecurringTransaction, TransactionSplitsInput, TransactionEditPayload, InstallmentSeriesInput, TransactionApplyScope, CategoryGroup, Category, Rule, RuleCondition, RuleConditionNode } from '@/types'
import { toast } from 'sonner'
export type SaveAction = 'save' | 'saveAndNew' | 'saveAndDuplicate'
@@ -75,6 +69,26 @@ function canExtendRuleFromTransaction(rule: Rule): boolean {
return rule.is_active && !!getRuleCategoryId(rule) && (rule.conditions_op === 'or' || rule.conditions.length <= 1)
}
+/** Appends a "description contains" condition for this transaction, unless the
+ * rule already has an equivalent one. Also flips a single-condition rule to OR
+ * so the new condition extends the match instead of narrowing it. */
+function buildExtendedRuleConditions(
+ rule: Rule,
+ description: string,
+): { conditions: RuleConditionNode[]; conditionsOp: 'and' | 'or'; isDuplicate: boolean } {
+ const newCondition: RuleCondition = { field: 'description', op: 'contains', value: description }
+ const isDuplicate = flattenConditions(rule.conditions).some(existing =>
+ existing.field === newCondition.field &&
+ existing.op === newCondition.op &&
+ normalizeRuleMatchValue(existing.value) === normalizeRuleMatchValue(newCondition.value)
+ )
+ return {
+ conditions: isDuplicate ? rule.conditions : [...rule.conditions, newCondition],
+ conditionsOp: rule.conditions.length <= 1 ? 'or' : rule.conditions_op,
+ isDuplicate,
+ }
+}
+
export function TransactionDialog({
open,
onClose,
@@ -512,12 +526,27 @@ function TransactionForm({
const [recurringLinked, setRecurringLinked] = useState(seed?.recurring_transaction_id != null)
const [unlinkingRecurring, setUnlinkingRecurring] = useState(false)
const [addToRuleOpen, setAddToRuleOpen] = useState(false)
+ const [extendRuleTarget, setExtendRuleTarget] = useState<Rule | null>(null)
const { data: rulesList, isLoading: rulesLoading } = useQuery({
queryKey: ['rules'],
queryFn: rulesApi.list,
enabled: !!transaction && !!onCreateRule,
})
+ // Hidden categories can still be the target of an existing rule; the picker's
+ // grouping and the rule editor's "current category" lookup both need them.
+ const { data: allCategoriesList } = useQuery({
+ queryKey: ['categories', 'management'],
+ queryFn: categoriesApi.listIncludingHidden,
+ enabled: !!transaction && !!onCreateRule,
+ })
+ const { data: allCategoryGroupsList } = useQuery({
+ queryKey: ['categoryGroups', 'management'],
+ queryFn: categoryGroupsApi.listIncludingHidden,
+ enabled: !!transaction && !!onCreateRule,
+ })
+ const displayCategories = allCategoriesList ?? categories
+ const displayCategoryGroups = allCategoryGroupsList ?? categoryGroups
// Counterpart leg of a transfer. Fetched lazily so only transfer dialogs
// pay for it — the list response carries just the shared pair id.
@@ -531,28 +560,36 @@ function TransactionForm({
[rulesList],
)
- const extendRuleMutation = useMutation({
- mutationFn: async ({
- rule,
- condition,
- }: {
- rule: Rule
- condition: RuleCondition
- }) => {
- const duplicate = flattenConditions(rule.conditions).some(existing =>
- existing.field === condition.field &&
- existing.op === condition.op &&
- normalizeRuleMatchValue(existing.value) === normalizeRuleMatchValue(condition.value)
- )
- if (duplicate) {
- throw new Error('duplicate-condition')
- }
+ // Picking an existing rule opens the same rich editor used for creating a
+ // rule (RuleDialog), pre-filled with that rule's data plus the extra
+ // "description contains" condition — instead of a separate, cut-down form.
+ const extendRuleDialogProps = useMemo(() => {
+ if (!extendRuleTarget || !transaction) return null
+ const { conditions, conditionsOp } = buildExtendedRuleConditions(extendRuleTarget, transaction.description)
+ return {
+ rule: { ...extendRuleTarget, conditions_op: conditionsOp },
+ // The user is extending this rule specifically so it covers the
+ // transaction they're editing right now, so default to applying the
+ // rule's category to matching existing transactions (including this
+ // one) instead of leaving it stuck on its old category.
+ initialData: {
+ conditions,
+ applyToExisting: true,
+ overwriteExistingCategories: true,
+ } as RuleDialogInitialData,
+ }
+ }, [extendRuleTarget, transaction])
- return rulesApi.update(rule.id, {
- conditions_op: rule.conditions.length <= 1 ? 'or' : rule.conditions_op,
- conditions: [...rule.conditions, condition],
- })
- },
+ function handlePickRuleToExtend(rule: Rule) {
+ if (transaction && buildExtendedRuleConditions(rule, transaction.description).isDuplicate) {
+ toast.info(t('transactions.duplicateRuleCondition'))
+ }
+ setExtendRuleTarget(rule)
+ setAddToRuleOpen(false)
+ }
+
+ const updateRuleMutation = useMutation({
+ mutationFn: (data: Partial<Rule>) => rulesApi.update(extendRuleTarget!.id, data),
onSuccess: (updatedRule) => {
const targetCategoryId = getRuleCategoryId(updatedRule)
if (targetCategoryId) setCategoryId(targetCategoryId)
@@ -561,19 +598,15 @@ function TransactionForm({
if (applied > 0) {
invalidateFinancialQueries(queryClient)
}
- setAddToRuleOpen(false)
+ setExtendRuleTarget(null)
toast.success(
applied > 0
? t('rules.updatedAndApplied', { count: applied })
: t('transactions.addedToExistingRule'),
)
},
- onError: (error) => {
- if (error instanceof Error && error.message === 'duplicate-condition') {
- toast.info(t('transactions.duplicateRuleCondition'))
- } else {
- toast.error(t('common.error'))
- }
+ onError: () => {
+ toast.error(t('common.error'))
},
})
@@ -1065,8 +1098,8 @@ function TransactionForm({
<CategorySelect
value={categoryId}
onChange={setCategoryId}
- categories={categories}
- groups={categoryGroups}
+ categories={displayCategories}
+ groups={displayCategoryGroups}
currentCategory={seed?.category}
allowNone={true}
className="bg-card"
@@ -1344,7 +1377,7 @@ function TransactionForm({
variant="outline"
aria-label={t('transactions.ruleActions')}
className="rounded-l-none border-l-0 px-1.5 sm:px-2 has-[>svg]:px-1.5 sm:has-[>svg]:px-2 h-8 sm:h-9"
- disabled={extendRuleMutation.isPending}
+ disabled={updateRuleMutation.isPending}
>
<ChevronDown size={14} />
</Button>
@@ -1404,13 +1437,26 @@ function TransactionForm({
<AddTransactionToRuleDialog
open={true}
onOpenChange={setAddToRuleOpen}
- transactionDescription={transaction.description}
rules={extendableRules}
+ categories={displayCategories}
+ categoryGroups={displayCategoryGroups}
+ loadingRules={rulesLoading}
+ onSubmit={handlePickRuleToExtend}
+ />
+ )}
+ {extendRuleDialogProps && (
+ <RuleDialog
+ open={true}
+ onClose={() => setExtendRuleTarget(null)}
+ rule={extendRuleDialogProps.rule}
categories={categories}
categoryGroups={categoryGroups}
- loadingRules={rulesLoading}
- loading={extendRuleMutation.isPending}
- onSubmit={({ rule, condition }) => extendRuleMutation.mutate({ rule, condition })}
+ currentCategories={displayCategories}
+ accounts={sortedAccounts}
+ payees={payeesList ?? []}
+ onSave={(data) => updateRuleMutation.mutate(data)}
+ loading={updateRuleMutation.isPending}
+ initialData={extendRuleDialogProps.initialData}
/>
)}
</form>
@@ -1420,39 +1466,23 @@ function TransactionForm({
function AddTransactionToRuleDialog({
open,
onOpenChange,
- transactionDescription,
rules,
- categories,
- categoryGroups,
+ categories: displayCategories,
+ categoryGroups: displayCategoryGroups,
loadingRules,
- loading,
onSubmit,
}: {
open: boolean
onOpenChange: (open: boolean) => void
- transactionDescription: string
rules: Rule[]
categories: Category[]
categoryGroups: CategoryGroup[]
loadingRules: boolean
- loading: boolean
- onSubmit: (data: { rule: Rule; condition: RuleCondition }) => void
+ onSubmit: (rule: Rule) => void
}) {
const { t } = useTranslation()
const [ruleId, setRuleId] = useState('')
const [openCombobox, setOpenCombobox] = useState(false)
- const [matchOp, setMatchOp] = useState<'contains' | 'starts_with'>('contains')
- const [matchText, setMatchText] = useState(transactionDescription)
- const { data: allCategories } = useQuery({
- queryKey: ['categories', 'management'],
- queryFn: categoriesApi.listIncludingHidden,
- })
- const { data: allCategoryGroups } = useQuery({
- queryKey: ['categoryGroups', 'management'],
- queryFn: categoryGroupsApi.listIncludingHidden,
- })
- const displayCategories = allCategories ?? categories
- const displayCategoryGroups = allCategoryGroups ?? categoryGroups
const effectiveRuleId = ruleId && rules.some(rule => rule.id === ruleId)
? ruleId
@@ -1502,15 +1532,8 @@ function AddTransactionToRuleDialog({
// propagation the submit event bubbles up the React tree (portals preserve
// it) and also triggers the parent transaction save.
event.stopPropagation()
- if (!selectedRule || !matchText.trim()) return
- onSubmit({
- rule: selectedRule,
- condition: {
- field: 'description',
- op: matchOp,
- value: matchText.trim(),
- },
- })
+ if (!selectedRule) return
+ onSubmit(selectedRule)
}
return (
@@ -1529,7 +1552,7 @@ function AddTransactionToRuleDialog({
<PopoverTrigger asChild>
<button
type="button"
- disabled={loadingRules || loading || rules.length === 0}
+ disabled={loadingRules || rules.length === 0}
className="flex w-full items-center justify-between gap-2 rounded-md border border-input bg-card px-3 py-2 text-sm text-left shadow-xs transition-[color,box-shadow] outline-hidden focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-input/30 dark:hover:bg-input/50 h-9 cursor-pointer"
>
<span className="flex-1 truncate text-left">
@@ -1586,45 +1609,16 @@ function AddTransactionToRuleDialog({
)}
</div>
- <div className="grid grid-cols-[auto_1fr] gap-3">
- <div className="space-y-2">
- <Label className="whitespace-nowrap">{t('transactions.matchOperator')}</Label>
- <Select
- value={matchOp}
- onValueChange={(value) => setMatchOp(value as 'contains' | 'starts_with')}
- disabled={loading}
- >
- <SelectTrigger className="w-full">
- <SelectValue />
- </SelectTrigger>
- <SelectContent>
- <SelectItem value="contains">{t('rules.opContains')}</SelectItem>
- <SelectItem value="starts_with">{t('rules.opStartsWith')}</SelectItem>
- </SelectContent>
- </Select>
- </div>
- <div className="space-y-2 min-w-0">
- <Label>{t('transactions.matchText')}</Label>
- <Input
- value={matchText}
- onChange={(event) => setMatchText(event.target.value)}
- disabled={loading}
- autoFocus
- />
- </div>
- </div>
-
<DialogFooter className="pt-2">
<Button
type="button"
variant="outline"
onClick={() => onOpenChange(false)}
- disabled={loading}
>
{t('common.cancel')}
</Button>
- <Button type="submit" disabled={!selectedRule || !matchText.trim() || loading}>
- {loading ? t('common.loading') : t('transactions.assignRule')}
+ <Button type="submit" disabled={!selectedRule}>
+ {t('transactions.assignRule')}
</Button>
</DialogFooter>
</form>
diff --git a/frontend/src/locales/de.json b/frontend/src/locales/de.json
index 61b44fb1..808b0aa1 100644
--- a/frontend/src/locales/de.json
+++ b/frontend/src/locales/de.json
@@ -576,8 +576,6 @@
"addToExistingRuleTitle": "Transaktion zur Regel hinzufügen",
"addToExistingRuleDescription": "Wähle eine aktive Kategorieregel aus und füge diese Transaktionsbeschreibung als weiteres zukünftiges Suchkriterium hinzu.",
"existingRule": "Bestehende Regel",
- "matchOperator": "Übereinstimmungstyp",
- "matchText": "Beschreibungs-Übereinstimmung",
"assignRule": "Zur Regel hinzufügen",
"noExistingRules": "Keine aktiven Kategorieregeln verfügbar",
"addedToExistingRule": "Regel aktualisiert. Zukünftige Übereinstimmungen werden diese Kategorie verwenden.",
diff --git a/frontend/src/locales/el.json b/frontend/src/locales/el.json
index a1b66dc5..10017572 100644
--- a/frontend/src/locales/el.json
+++ b/frontend/src/locales/el.json
@@ -753,8 +753,6 @@
"addToExistingRuleTitle": "Προσθήκη συναλλαγής σε κανόνα",
"addToExistingRuleDescription": "Επιλέξτε έναν ενεργό κανόνα κατηγορίας και προσθέστε αυτήν την περιγραφή συναλλαγής ως μελλοντικό κριτήριο αντιστοίχισης.",
"existingRule": "Υπάρχων κανόνας",
- "matchOperator": "Τύπος αντιστοίχισης",
- "matchText": "Κείμενο αντιστοίχισης περιγραφής",
"assignRule": "Προσθήκη στον κανόνα",
"noExistingRules": "Δεν υπάρχουν διαθέσιμοι ενεργοί κανόνες κατηγορίας",
"addedToExistingRule": "Ο κανόνας ενημερώθηκε. Οι μελλοντικές αντιστοιχίσεις θα χρησιμοποιούν αυτήν την κατηγορία.",
diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json
index 85d266f4..0e39b1dd 100644
--- a/frontend/src/locales/en.json
+++ b/frontend/src/locales/en.json
@@ -576,8 +576,6 @@
"addToExistingRuleTitle": "Add transaction to rule",
"addToExistingRuleDescription": "Choose an active category rule and add this transaction description as another future match.",
"existingRule": "Existing rule",
- "matchOperator": "Match type",
- "matchText": "Description match",
"assignRule": "Add to rule",
"noExistingRules": "No active category rules available",
"addedToExistingRule": "Rule updated. Future matches will use this category.",
diff --git a/frontend/src/locales/es.json b/frontend/src/locales/es.json
index 1f5980cf..ee48ed1c 100644
--- a/frontend/src/locales/es.json
+++ b/frontend/src/locales/es.json
@@ -576,8 +576,6 @@
"addToExistingRuleTitle": "Agregar transacción a una regla",
"addToExistingRuleDescription": "Elige una regla de categoría activa y agrega la descripción de esta transacción como otra coincidencia futura.",
"existingRule": "Regla existente",
- "matchOperator": "Tipo de coincidencia",
- "matchText": "Coincidencia en descripción",
"assignRule": "Agregar a regla",
"noExistingRules": "No hay reglas de categoría activas disponibles",
"addedToExistingRule": "Regla actualizada. Las próximas coincidencias usarán esta categoría.",
diff --git a/frontend/src/locales/fr.json b/frontend/src/locales/fr.json
index 8cd95799..19ed587d 100644
--- a/frontend/src/locales/fr.json
+++ b/frontend/src/locales/fr.json
@@ -576,8 +576,6 @@
"addToExistingRuleTitle": "Ajouter la transaction à une règle",
"addToExistingRuleDescription": "Choisissez une règle de catégorisation active et ajoutez cette description de transaction comme correspondance future.",
"existingRule": "Règle existante",
- "matchOperator": "Type de correspondance",
- "matchText": "Correspondance de description",
"assignRule": "Ajouter à la règle",
"noExistingRules": "Aucune règle de catégorisation active disponible",
"addedToExistingRule": "Règle mise à jour. Les correspondances futures utiliseront cette catégorie.",
diff --git a/frontend/src/locales/hi.json b/frontend/src/locales/hi.json
index 38917dab..9a70d516 100644
--- a/frontend/src/locales/hi.json
+++ b/frontend/src/locales/hi.json
@@ -576,8 +576,6 @@
"addToExistingRuleTitle": "लेन-देन को नियम में जोड़ें",
"addToExistingRuleDescription": "कोई सक्रिय श्रेणी नियम चुनें और इस लेन-देन के विवरण को भविष्य के एक और मिलान के रूप में जोड़ें।",
"existingRule": "मौजूदा नियम",
- "matchOperator": "मिलान प्रकार",
- "matchText": "विवरण मिलान",
"assignRule": "नियम में जोड़ें",
"noExistingRules": "कोई सक्रिय श्रेणी नियम उपलब्ध नहीं",
"addedToExistingRule": "नियम अपडेट हुआ। भविष्य के मिलान इस श्रेणी का उपयोग करेंगे।",
diff --git a/frontend/src/locales/it.json b/frontend/src/locales/it.json
index b21f5e5c..8575a746 100644
--- a/frontend/src/locales/it.json
+++ b/frontend/src/locales/it.json
@@ -576,8 +576,6 @@
"addToExistingRuleTitle": "Aggiungi transazione a una regola",
"addToExistingRuleDescription": "Scegli una regola di categoria attiva e aggiungi la descrizione di questa transazione come futura corrispondenza.",
"existingRule": "Regola esistente",
- "matchOperator": "Tipo di corrispondenza",
- "matchText": "Corrispondenza descrizione",
"assignRule": "Aggiungi alla regola",
"noExistingRules": "Nessuna regola di categoria attiva disponibile",
"addedToExistingRule": "Regola aggiornata. Le prossime corrispondenze useranno questa categoria.",
diff --git a/frontend/src/locales/ja.json b/frontend/src/locales/ja.json
index 48738d3b..a36d4687 100644
--- a/frontend/src/locales/ja.json
+++ b/frontend/src/locales/ja.json
@@ -576,8 +576,6 @@
"addToExistingRuleTitle": "取引をルールに追加",
"addToExistingRuleDescription": "有効なカテゴリルールを選び、この取引の摘要を今後の一致条件に追加します。",
"existingRule": "既存のルール",
- "matchOperator": "一致方法",
- "matchText": "摘要の一致",
"assignRule": "ルールに追加",
"noExistingRules": "利用できる有効なカテゴリルールはありません",
"addedToExistingRule": "ルールを更新しました。今後の一致にはこのカテゴリが使われます。",
diff --git a/frontend/src/locales/nl.json b/frontend/src/locales/nl.json
index 0a8acd6b..9daa480e 100644
--- a/frontend/src/locales/nl.json
+++ b/frontend/src/locales/nl.json
@@ -576,8 +576,6 @@
"addToExistingRuleTitle": "Voeg transactie toe aan regel",
"addToExistingRuleDescription": "Kies een actieve categorieregel en voeg deze transactiebeschrijving toe als een nieuwe toekomstige match.",
"existingRule": "Bestaande regel",
- "matchOperator": "Overeenkomsttype",
- "matchText": "Beschrijving komt overeen",
"assignRule": "Toevoegen aan regel",
"noExistingRules": "Geen actieve categorieregels beschikbaar",
"addedToExistingRule": "Regel bijgewerkt. Toekomstige wedstrijden zullen deze categorie gebruiken.",
diff --git a/frontend/src/locales/pl.json b/frontend/src/locales/pl.json
index 3350acc8..afc6fa12 100644
--- a/frontend/src/locales/pl.json
+++ b/frontend/src/locales/pl.json
@@ -586,8 +586,6 @@
"addToExistingRuleTitle": "Dodaj transakcję do reguły",
"addToExistingRuleDescription": "Wybierz aktywną regułę kategorii i dodaj opis tej transakcji jako kolejne przyszłe dopasowanie.",
"existingRule": "Istniejąca reguła",
- "matchOperator": "Typ dopasowania",
- "matchText": "Dopasowanie opisu",
"assignRule": "Dodaj do reguły",
"noExistingRules": "Brak aktywnych reguł kategorii",
"addedToExistingRule": "Reguła zaktualizowana. Przyszłe dopasowania użyją tej kategorii.",
diff --git a/frontend/src/locales/pt-BR.json b/frontend/src/locales/pt-BR.json
index 2edd9f99..7f98fd03 100644
--- a/frontend/src/locales/pt-BR.json
+++ b/frontend/src/locales/pt-BR.json
@@ -576,8 +576,6 @@
"addToExistingRuleTitle": "Adicionar transação a uma regra",
"addToExistingRuleDescription": "Escolha uma regra de categoria ativa e adicione a descrição desta transação como outra correspondência futura.",
"existingRule": "Regra existente",
- "matchOperator": "Tipo de correspondência",
- "matchText": "Correspondência na descrição",
"assignRule": "Adicionar à regra",
"noExistingRules": "Nenhuma regra de categoria ativa disponível",
"addedToExistingRule": "Regra atualizada. Próximas correspondências usarão esta categoria.",
diff --git a/frontend/src/locales/pt-PT.json b/frontend/src/locales/pt-PT.json
index 761b0d5c..d2347a1e 100644
--- a/frontend/src/locales/pt-PT.json
+++ b/frontend/src/locales/pt-PT.json
@@ -576,8 +576,6 @@
"addToExistingRuleTitle": "Adicionar transação a uma regra",
"addToExistingRuleDescription": "Escolhe uma regra de categoria ativa e adiciona a descrição desta transação como outra correspondência futura.",
"existingRule": "Regra existente",
- "matchOperator": "Tipo de correspondência",
- "matchText": "Correspondência na descrição",
"assignRule": "Adicionar à regra",
"noExistingRules": "Nenhuma regra de categoria ativa disponível",
"addedToExistingRule": "Regra atualizada. Próximas correspondências usarão esta categoria.",
diff --git a/frontend/src/locales/ru.json b/frontend/src/locales/ru.json
index 2f9dffd3..c7c32cb1 100644
--- a/frontend/src/locales/ru.json
+++ b/frontend/src/locales/ru.json
@@ -580,8 +580,6 @@
"addToExistingRuleTitle": "Добавить транзакцию в правило",
"addToExistingRuleDescription": "Выберите активное правило категории и добавьте описание этой транзакции как будущее совпадение.",
"existingRule": "Существующее правило",
- "matchOperator": "Тип совпадения",
- "matchText": "Совпадение описания",
"assignRule": "Добавить в правило",
"noExistingRules": "Нет активных правил категорий",
"addedToExistingRule": "Правило обновлено. Будущие совпадения будут использовать эту категорию.",
diff --git a/frontend/src/locales/sk.json b/frontend/src/locales/sk.json
index 2c265efc..523834fd 100644
--- a/frontend/src/locales/sk.json
+++ b/frontend/src/locales/sk.json
@@ -588,8 +588,6 @@
"addToExistingRuleTitle": "Pridať transakciu do pravidla",
"addToExistingRuleDescription": "Vyber aktívne pravidlo kategórie a pridaj popis tejto transakcie ako ďalšiu budúcu zhodu.",
"existingRule": "Existujúce pravidlo",
- "matchOperator": "Typ zhody",
- "matchText": "Zhoda popisu",
"assignRule": "Pridať do pravidla",
"noExistingRules": "Nie sú dostupné žiadne aktívne pravidlá kategórií",
"addedToExistingRule": "Pravidlo aktualizované. Budúce zhody dostanú túto kategóriu.",
diff --git a/frontend/src/locales/uk.json b/frontend/src/locales/uk.json
index a3b6e711..edaddb67 100644
--- a/frontend/src/locales/uk.json
+++ b/frontend/src/locales/uk.json
@@ -580,8 +580,6 @@
"addToExistingRuleTitle": "Додати транзакцію до правила",
"addToExistingRuleDescription": "Виберіть активне правило категорії та додайте опис цієї транзакції як майбутній збіг.",
"existingRule": "Наявне правило",
- "matchOperator": "Тип збігу",
- "matchText": "Збіг опису",
"assignRule": "Додати до правила",
"noExistingRules": "Немає активних правил категорій",
"addedToExistingRule": "Правило оновлено. Майбутні збіги використовуватимуть цю категорію.",