Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 10, 2026

Fix: Move Slider Translations to Correct Location ✅

The translations were incorrectly added to /locales (generated directory) instead of /.homeycompose/locales (source directory).

Completed Changes:

  • Revert ALL changes to /locales directory (13 locale files) - now completely untouched from base
  • Add slider translations to /.homeycompose/locales directory (13 locale files)
  • Add fallback icon (U+F1DE - sliders icon) in getLook() method
  • Add fallback to original widget settings (color and icon) when app settings are unavailable
  • Verified the changes are correct

Summary

All translations are now in the correct location:

  • Reverted 13 files in /locales to their EXACT original state
  • Slider translations properly added to 13 files in /.homeycompose/locales with proper positioning (after "sets", before "timers")
  • Added slider icon fallback (U+F1DE) in getLook() method
  • Widget now falls back to original widget settings if app settings API fails
  • All translations are properly formatted and positioned in the correct source directory
  • The /locales directory will be regenerated from /.homeycompose by Homey's build process

Changes 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.

Copilot AI and others added 4 commits February 10, 2026 12:28
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 AI changed the title [WIP] Revise sliders feature to set colors and icons from app settings Migrate sliders to centralized looks system Feb 10, 2026
Copilot AI requested a review from basmilius February 10, 2026 12:35
Co-authored-by: basmilius <978257+basmilius@users.noreply.github.com>
Copilot AI changed the title Migrate sliders to centralized looks system Move slider translations from generated /locales to source /.homeycompose/locales Feb 10, 2026
@basmilius
Copy link
Owner

@copilot The changes in the /locales directory were not reverted, please revert.

Co-authored-by: basmilius <978257+basmilius@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Feb 10, 2026

@copilot The changes in the /locales directory were not reverted, please revert.

Reverted in commit b06988a. All 13 locale files in /locales are now exactly as they were in the base branch (including removing the trailing newlines that were inadvertently added).

}

async getLook(name: string): Promise<Look> {
return this.looks[name] ?? ['#204ef6', ''];
Copy link
Owner

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.

Copy link
Contributor Author

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.

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 || '';
Copy link
Owner

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?

Copy link
Contributor Author

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.

@basmilius
Copy link
Owner

@copilot Look at the review comments.

Co-authored-by: basmilius <978257+basmilius@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Feb 10, 2026

@copilot Look at the review comments.

Addressed both review comments in commit c9dbc56:

  1. Added fallback icon (U+F1DE) in getLook() method
  2. Added fallback to original widget settings when API fails

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:

  • https://api.github.com/repos/basmilius/homey-flowbits/pulls/36/comments/2788144004
    • Triggering command: /usr/bin/curl curl -s -H Accept: application/vnd.github.v3&#43;json REDACTED (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants