feat(graph): добавлен поиск по справочникам в Graph view
Top-left dark-glass input на странице /graph. Substring match case-insensitive по name + displayName (admin помнит либо technical id `antenna`, либо русское название `Антенны`). UX: - Matched nodes остаются в full opacity, остальные dim'ятся (0.25) — как при hover-focus. Force-layout не трогаем (positions стабильны). - При единственном match → matched node получает focused border (orange accent + glow) — легко найти результат. - Edges светятся только когда оба конца — match. Иначе dim. - Counter chip `N из M` под input'ом + `ничего не найдено` для empty. - Esc clears query и снимает focus. ✕-кнопка тоже clears (focus остаётся на input). - Search dominates над hover dim — non-matched nodes остаются dim даже если hover их затрагивает. i18n: graph.search.placeholder / .empty / .count для ru-RU и en-US. Force-simulation не пересчитываем при изменении query — это намеренно. Иначе nodes прыгали бы по экрану на каждый символ, ломая spatial recognition (юзер уже привык где какой node лежит).
This commit is contained in:
@@ -42,6 +42,9 @@ i18n
|
||||
'graph.description': 'Сетевая диаграмма всех справочников и их FK-связей. Кликните по узлу — откроется детальный вид.',
|
||||
'graph.comingSoon.title': 'Скоро',
|
||||
'graph.comingSoon.description': 'Visualization через d3-force — 40+ справочников с linked edges. В разработке (Stage 3.3 redesign roadmap).',
|
||||
'graph.search.placeholder': 'Найти справочник…',
|
||||
'graph.search.empty': 'ничего не найдено',
|
||||
'graph.search.count': '{{count}} из {{total}}',
|
||||
'updateBanner.message': 'Доступна новая версия НСИ ({{version}}). Обновите страницу, чтобы получить последние исправления.',
|
||||
'updateBanner.messageGeneric': 'Доступна новая версия НСИ. Обновите страницу, чтобы получить последние исправления.',
|
||||
'updateBanner.reload': 'Обновить',
|
||||
@@ -919,6 +922,9 @@ i18n
|
||||
'graph.description': 'Network diagram of all dictionaries and their FK links. Click a node for detail.',
|
||||
'graph.comingSoon.title': 'Coming soon',
|
||||
'graph.comingSoon.description': 'd3-force visualization of 40+ dictionaries with linked edges. WIP (Stage 3.3 redesign roadmap).',
|
||||
'graph.search.placeholder': 'Find dictionary…',
|
||||
'graph.search.empty': 'no matches',
|
||||
'graph.search.count': '{{count}} of {{total}}',
|
||||
'updateBanner.message': 'A new NSI version ({{version}}) is available. Reload to get the latest fixes.',
|
||||
'updateBanner.messageGeneric': 'A new NSI version is available. Reload to get the latest fixes.',
|
||||
'updateBanner.reload': 'Reload',
|
||||
|
||||
Reference in New Issue
Block a user