Add type picker for entity creation, icon grid filter, and serial port placeholder

- Replace inline type selectors with pre-modal type picker grid for devices,
  color strip sources, and value sources
- Add filterable search to icon grid when items > 9 (no auto-focus on touch)
- Show disabled (grayed-out) filtered items instead of hiding them
- Responsive grid columns (2-5 cols based on viewport width)
- Add "Select a port..." placeholder to serial port dropdown
- Update en/ru/zh locales with new keys

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-14 21:44:26 +03:00
parent 6395709bb8
commit a922c6e052
9 changed files with 233 additions and 16 deletions

View File

@@ -112,6 +112,7 @@
"templates.test.error.no_display": "Please select a display",
"templates.test.error.failed": "Test failed",
"devices.title": "Devices",
"device.select_type": "Select Device Type",
"devices.add": "Add New Device",
"devices.loading": "Loading devices...",
"devices.none": "No devices configured",
@@ -211,6 +212,7 @@
"device.serial_port": "Serial Port:",
"device.serial_port.hint": "Select the COM port of the Adalight device",
"device.serial_port.none": "No serial ports found",
"device.serial_port.select": "Select a port...",
"device.led_count_manual.hint": "Number of LEDs on the strip (must match your Arduino sketch)",
"device.baud_rate": "Baud Rate:",
"device.baud_rate.hint": "Serial communication speed. Higher = more FPS but requires matching Arduino sketch.",
@@ -827,6 +829,7 @@
"aria.previous": "Previous",
"aria.next": "Next",
"aria.hint": "Show hint",
"color_strip.select_type": "Select Color Strip Type",
"color_strip.add": "Add Color Strip Source",
"color_strip.edit": "Edit Color Strip Source",
"color_strip.name": "Name:",
@@ -1179,6 +1182,7 @@
"tree.group.picture": "Picture",
"tree.group.utility": "Utility",
"value_source.group.title": "Value Sources",
"value_source.select_type": "Select Value Source Type",
"value_source.add": "Add Value Source",
"value_source.edit": "Edit Value Source",
"value_source.name": "Name:",

View File

@@ -112,6 +112,7 @@
"templates.test.error.no_display": "Пожалуйста, выберите дисплей",
"templates.test.error.failed": "Тест не удался",
"devices.title": "Устройства",
"device.select_type": "Выберите тип устройства",
"devices.add": "Добавить Новое Устройство",
"devices.loading": "Загрузка устройств...",
"devices.none": "Устройства не настроены",
@@ -160,6 +161,7 @@
"device.serial_port": "Серийный порт:",
"device.serial_port.hint": "Выберите COM порт устройства Adalight",
"device.serial_port.none": "Серийные порты не найдены",
"device.serial_port.select": "Выберите порт...",
"device.led_count_manual.hint": "Количество светодиодов на ленте (должно совпадать с вашим скетчем Arduino)",
"device.baud_rate": "Скорость порта:",
"device.baud_rate.hint": "Скорость серийного соединения. Выше = больше FPS, но требует соответствия скетчу Arduino.",
@@ -776,6 +778,7 @@
"aria.previous": "Назад",
"aria.next": "Вперёд",
"aria.hint": "Показать подсказку",
"color_strip.select_type": "Выберите тип цветовой полосы",
"color_strip.add": "Добавить источник цветовой полосы",
"color_strip.edit": "Редактировать источник цветовой полосы",
"color_strip.name": "Название:",
@@ -1128,6 +1131,7 @@
"tree.group.picture": "Изображения",
"tree.group.utility": "Утилиты",
"value_source.group.title": "Источники значений",
"value_source.select_type": "Выберите тип источника значений",
"value_source.add": "Добавить источник значений",
"value_source.edit": "Редактировать источник значений",
"value_source.name": "Название:",

View File

@@ -112,6 +112,7 @@
"templates.test.error.no_display": "请选择显示器",
"templates.test.error.failed": "测试失败",
"devices.title": "设备",
"device.select_type": "选择设备类型",
"devices.add": "添加新设备",
"devices.loading": "正在加载设备...",
"devices.none": "尚未配置设备",
@@ -160,6 +161,7 @@
"device.serial_port": "串口:",
"device.serial_port.hint": "选择 Adalight 设备的 COM 端口",
"device.serial_port.none": "未找到串口",
"device.serial_port.select": "选择端口...",
"device.led_count_manual.hint": "灯带上的 LED 数量(必须与 Arduino 程序匹配)",
"device.baud_rate": "波特率:",
"device.baud_rate.hint": "串口通信速率。越高 FPS 越高,但需要与 Arduino 程序匹配。",
@@ -776,6 +778,7 @@
"aria.previous": "上一个",
"aria.next": "下一个",
"aria.hint": "显示提示",
"color_strip.select_type": "选择色带类型",
"color_strip.add": "添加色带源",
"color_strip.edit": "编辑色带源",
"color_strip.name": "名称:",
@@ -1128,6 +1131,7 @@
"tree.group.picture": "图片",
"tree.group.utility": "工具",
"value_source.group.title": "值源",
"value_source.select_type": "选择值源类型",
"value_source.add": "添加值源",
"value_source.edit": "编辑值源",
"value_source.name": "名称:",