feat: подсказка к настройке связей Zigbee

User-Visible: yes
Issue: #459
This commit is contained in:
Codex
2026-09-05 11:10:44 +03:00
parent 7320937f62
commit b4898583d7
11 changed files with 210 additions and 19 deletions
+26
View File
@@ -5793,6 +5793,32 @@ const MUTANT_DEFINITIONS = [
replace: ' if (candidates.length >= 1) placements.set(node.key, {',
}],
},
{
id: 'topology-help-renders-without-aria',
guard: 'node --test --test-name-pattern="кружок справки не рисуется|вызывается из блока" '
+ 'test/zigbee-topology.test.mjs',
because: 'a help circle that opens without an accessible name is worse than no circle, and '
+ 'topologyT answers a missing key with the key itself — so absence has to be asked of the '
+ 'dictionary, not of the resolved string (#459 AC2)',
patches: [{
file: 'src/i18n/topology.ts',
find: ' const value = DICTIONARIES[lang]?.[key] ?? en[key];',
replace: ' const value = DICTIONARIES[lang]?.[key] ?? en[key] ?? key;',
}],
},
{
id: 'topology-help-drops-arrow-legend',
guard: 'node --test --test-name-pattern="все шесть пунктов легенды|не путь пакета" '
+ 'test/zigbee-topology.test.mjs',
because: 'a hint that names only colour and dashes passes «the help exists» while answering '
+ 'none of the questions the arrows raise — the very content this task waited for #457 to '
+ 'write (#459 AC3, AC3b)',
patches: [{
file: 'src/i18n/topology/ru.json',
find: ' Стрелка ведёт к следующему устройству по пути к координатору: исходящая одна, входящие — те, кто ходит через это устройство. Линия без стрелки — запасной сосед. Это дерево маршрутов, которое строит House Plan, а не путь пакета в эту секунду: подпись на конце стрелки значит, что цель не на этом плане, а отсутствие стрелки — что путь неизвестен.',
replace: '',
}],
},
{
id: 'zigbee-topology-z2m-camelcase-node-rejected',
guard: 'node --test --test-name-pattern="real anonymized camelCase" test/zigbee-topology.test.mjs',