DALI: host capabilities for hosts that are not a controller - #1226
Closed
evgeny-boger wants to merge 1 commit into
Closed
DALI: host capabilities for hosts that are not a controller#1226evgeny-boger wants to merge 1 commit into
evgeny-boger wants to merge 1 commit into
Conversation
The DALI page has a second home — the standalone WASM device editor — with no syslog and no broker anyone else can see. daliHostCapabilities lets such a host switch off what it cannot honour before the first render: the "Save to syslog" toggle, and the MQTT id editor (the daemon keeps its default id). Topic copy on cell click, and its "copied" tooltip, sit behind a policy the same host clears; the cell value update path is one helper. Controller homeui keeps every default. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Duplication | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
This was referenced Aug 31, 2026
Member
Author
|
Эти швы ( Они уже целиком входят в #1223 (ветка PR закрываю без мержа, ветку |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Первый из серии PR, на которые разбит #1223 (он закрывается в пользу этих). Каждый — самостоятельная единица от
master; остальные не зависят друг от друга, кроме отмеченного.Что сделано
У страницы DALI второй дом — автономный WASM-редактор устройств — без syslog и без брокера, который видит кто-то ещё.
daliHostCapabilities(stores/dali/host-capabilities.ts) — неглубокий набор флагов, которые такой хост выставляет до первого рендера:syslogMonitor— переключатель «Сохранять в syslog» на вкладке шины показывается только там, где syslog есть;externalBroker— редактор MQTT-id устройства скрывается там, где id никому не виден (демон оставляет id по умолчанию; схема демона его требует — прячется только редактор).Копирование топика по клику на контрол и его тултип «скопировано» — за
topicCopyPolicy, которую хост без брокера очищает; путь записи значения контрола сведён в один хелперsendCellValueUpdate.Контроллерный homeui сохраняет все умолчания — поведение не меняется.
Тесты
device-store-mqtt-id-hidden.test.ts— редактор id скрыт приexternalBroker = falseи не тронут иначе.tsc --noEmit,eslint,vitestпо затронутым каталогам — чисто.Связанные: wirenboard/wb-wasm-device-editor#96 (хост, который эти флаги выставляет).
🤖 Generated with Claude Code