Add clearer descriptions to all Timer actions (#132571)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Norbert Rittel 2024-12-09 22:37:32 +01:00 committed by GitHub
parent 3a65d1b611
commit 2d4fe5853f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,33 +34,33 @@
"services": { "services": {
"start": { "start": {
"name": "[%key:common::action::start%]", "name": "[%key:common::action::start%]",
"description": "Starts a timer.", "description": "Starts a timer or restarts it with a provided duration.",
"fields": { "fields": {
"duration": { "duration": {
"name": "Duration", "name": "Duration",
"description": "Duration the timer requires to finish. [optional]." "description": "Custom duration to restart the timer with."
} }
} }
}, },
"pause": { "pause": {
"name": "[%key:common::action::pause%]", "name": "[%key:common::action::pause%]",
"description": "Pauses a timer." "description": "Pauses a running timer, retaining the remaining duration for later continuation."
}, },
"cancel": { "cancel": {
"name": "Cancel", "name": "Cancel",
"description": "Cancels a timer." "description": "Resets a timer's duration to the last known initial value without firing the timer finished event."
}, },
"finish": { "finish": {
"name": "Finish", "name": "Finish",
"description": "Finishes a timer." "description": "Finishes a running timer earlier than scheduled."
}, },
"change": { "change": {
"name": "Change", "name": "Change",
"description": "Changes a timer.", "description": "Changes a timer by adding or subtracting a given duration.",
"fields": { "fields": {
"duration": { "duration": {
"name": "Duration", "name": "Duration",
"description": "Duration to add or subtract to the running timer." "description": "Duration to add to or subtract from the running timer."
} }
} }
}, },