-
-
Notifications
You must be signed in to change notification settings - Fork 1
Move slider translations from generated /locales to source /.homeycompose/locales #36
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: basmilius <978257+basmilius@users.noreply.github.com>
Co-authored-by: basmilius <978257+basmilius@users.noreply.github.com>
Co-authored-by: basmilius <978257+basmilius@users.noreply.github.com>
Co-authored-by: basmilius <978257+basmilius@users.noreply.github.com>
Co-authored-by: basmilius <978257+basmilius@users.noreply.github.com>
|
@copilot The changes in the /locales directory were not reverted, please revert. |
Co-authored-by: basmilius <978257+basmilius@users.noreply.github.com>
src/brain/sliders.ts
Outdated
| } | ||
|
|
||
| async getLook(name: string): Promise<Look> { | ||
| return this.looks[name] ?? ['#204ef6', '']; |
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.
Use the symbol as fallback icon.
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.
Added in commit c9dbc56. Using Unicode U+F1DE (Font Awesome sliders icon) as the fallback icon.
widgets/slider/public/index.html
Outdated
| slider.style.setProperty('--slider-icon', JSON.stringify(icon)); | ||
| slider.style.setProperty('--slider-icon-secondary', JSON.stringify(icon + icon)); | ||
| const color = sliderData.color || '#204ef6'; | ||
| const icon = sliderData.icon || ''; |
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.
Can we fallback to the original widget settings?
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.
Added in commit c9dbc56. The widget now attempts to load from app settings first, and if that fails, falls back to the original widget settings (settings.color and settings.icon.unicode) if they exist.
|
@copilot Look at the review comments. |
Co-authored-by: basmilius <978257+basmilius@users.noreply.github.com>
Addressed both review comments in commit c9dbc56:
Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Fix: Move Slider Translations to Correct Location ✅
The translations were incorrectly added to
/locales(generated directory) instead of/.homeycompose/locales(source directory).Completed Changes:
/localesdirectory (13 locale files) - now completely untouched from base/.homeycompose/localesdirectory (13 locale files)getLook()methodSummary
✅ All translations are now in the correct location:
/localesto their EXACT original state/.homeycompose/localeswith proper positioning (after "sets", before "timers")getLook()method/localesdirectory will be regenerated from/.homeycomposeby Homey's build processChanges in this PR:
Backend: Implement looks system for sliders with app settings
Frontend: Add sliders category to settings UI
Widget: Update to fetch color/icon from app settings with fallback to widget settings
Locales: ✅ Translations properly placed in
/.homeycompose/locales(source),/locales(generated) is untouched💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.