-
-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rule edit: Remove redundant module title prefix #2352
Conversation
Job #1518: Bundle Size — 11.01MiB (~+0.01%).Warning Bundle contains 19 duplicate packages – View duplicate packages Bundle metrics
Bundle size by type
View job #1518 report View jimtng:lowercase-module-descript... branch activity View project dashboard |
ee05291
to
dfbc40c
Compare
I've updated the screenshots |
dfbc40c
to
9287764
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this was also bugging me. LGTM except for the lowercasing of the cronstrue expressions.
case 'timer.GenericCronTrigger': | ||
if (!config.cronExpression) return moduleType.label | ||
try { | ||
return cronstrue.toString(config.cronExpression, { | ||
use24HourTimeFormat: true | ||
}) | ||
}).toLowerCase() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This won't work well with labels like "At 08:00, only on Monday and Thursday".
Just lowercase the first character.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I force pushed - habit. But it's now only lowercasing the first letter.
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
9287764
to
60107f4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The last change LGTM - luckily GitHub allows to compare between force pushes.
Fix regression from #2352. Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
See openhab/openhab-core#4090
Before:
After: