From 127f176056494d5f0340d87066064784ef4ec3e7 Mon Sep 17 00:00:00 2001 From: Lucas Berger Date: Tue, 3 Feb 2026 16:34:53 -0500 Subject: [PATCH] feat(08-03): enhance update progress with explicit button removal - Update progress message uses upward arrow icon for update - Add "This may take a few minutes" notice - Explicitly pass empty inline_keyboard to remove buttons - Prevents accidental duplicate action triggers during update Co-Authored-By: Claude Opus 4.5 --- n8n-workflow.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/n8n-workflow.json b/n8n-workflow.json index 3cb8fdc..f9bce12 100644 --- a/n8n-workflow.json +++ b/n8n-workflow.json @@ -3376,7 +3376,7 @@ }, { "parameters": { - "jsCode": "// Prepare update action from confirmation - show \"Updating...\" message\nconst data = $('Parse Callback Data').item.json;\nconst containerName = data.containerName;\nconst chatId = data.chatId;\nconst messageId = data.messageId;\n\n// Show progress message\nconst text = `\\u23F3 Updating ${containerName}...\\n\\nPulling latest image and recreating container.`;\n\nreturn {\n json: {\n containerName,\n chatId,\n messageId,\n progressText: text\n }\n};" + "jsCode": "// Build update progress message - removes buttons during operation\nconst data = $('Parse Callback Data').item.json;\nconst containerName = data.containerName;\nconst chatId = data.chatId;\nconst messageId = data.messageId;\n\n// Progress message with no buttons (prevents duplicate actions)\nconst text = `\\u2B06\\uFE0F Updating ${containerName}...\\n\\nPulling latest image and recreating container.\\nThis may take a few minutes.`;\n\n// Empty keyboard removes all buttons during update\nconst reply_markup = { inline_keyboard: [] };\n\nreturn {\n json: {\n containerName,\n chatId,\n messageId,\n progressText: text,\n reply_markup\n }\n};" }, "id": "code-prepare-confirmed-update", "name": "Prepare Confirmed Update", @@ -3393,7 +3393,7 @@ "url": "=https://api.telegram.org/bot{{ $credentials.telegramApi.accessToken }}/editMessageText", "sendBody": true, "specifyBody": "json", - "jsonBody": "={{ JSON.stringify({ chat_id: $json.chatId, message_id: $json.messageId, text: $json.progressText, parse_mode: 'HTML' }) }}", + "jsonBody": "={{ JSON.stringify({ chat_id: $json.chatId, message_id: $json.messageId, text: $json.progressText, parse_mode: 'HTML', reply_markup: $json.reply_markup }) }}", "options": {} }, "id": "http-show-update-progress",