Encourage to use UID instead of name for update and delete todos (#143556)

This commit is contained in:
Timothy 2025-04-30 20:45:26 +02:00 committed by GitHub
parent dbc38cdc6b
commit 53df69ee6e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 6 deletions

View File

@ -100,6 +100,7 @@ remove_item:
fields: fields:
item: item:
required: true required: true
example: "Submit income tax return"
selector: selector:
text: text:

View File

@ -40,11 +40,11 @@
}, },
"update_item": { "update_item": {
"name": "Update item", "name": "Update item",
"description": "Updates an existing to-do list item based on its name.", "description": "Updates an existing to-do list item based on its name or UID.",
"fields": { "fields": {
"item": { "item": {
"name": "Item name", "name": "Item name or UID",
"description": "The current name of the to-do item." "description": "The name/summary of the to-do item. If you have items with duplicate names, you can reference specific ones using their UID instead."
}, },
"rename": { "rename": {
"name": "Rename item", "name": "Rename item",
@ -74,11 +74,11 @@
}, },
"remove_item": { "remove_item": {
"name": "Remove item", "name": "Remove item",
"description": "Removes an existing to-do list item by its name.", "description": "Removes an existing to-do list item by its name or UID.",
"fields": { "fields": {
"item": { "item": {
"name": "Item name", "name": "[%key:component::todo::services::update_item::fields::item::name%]",
"description": "The name for the to-do list item." "description": "[%key:component::todo::services::update_item::fields::item::description%]"
} }
} }
} }