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 <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -3376,7 +3376,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"parameters": {
|
"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 <b>Updating ${containerName}...</b>\\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 <b>Updating ${containerName}...</b>\\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",
|
"id": "code-prepare-confirmed-update",
|
||||||
"name": "Prepare Confirmed Update",
|
"name": "Prepare Confirmed Update",
|
||||||
@@ -3393,7 +3393,7 @@
|
|||||||
"url": "=https://api.telegram.org/bot{{ $credentials.telegramApi.accessToken }}/editMessageText",
|
"url": "=https://api.telegram.org/bot{{ $credentials.telegramApi.accessToken }}/editMessageText",
|
||||||
"sendBody": true,
|
"sendBody": true,
|
||||||
"specifyBody": "json",
|
"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": {}
|
"options": {}
|
||||||
},
|
},
|
||||||
"id": "http-show-update-progress",
|
"id": "http-show-update-progress",
|
||||||
|
|||||||
Reference in New Issue
Block a user