Version 0.5.5.95: pick MeshCentral source paths from device JSON

- 🔍 button next to every mapping source path (table and new-mapping
  form) opens a dialog with the stored MeshCentral JSON of a chosen
  asset as an expandable, searchable tree; already mapped paths are
  marked, keys the path syntax cannot express are greyed out, list
  entries produce "list[].key".
- Preview evaluates the path with the row's transformation, multiple
  value mode, separator and "value if empty"/guard using the sync code.
- Coverage check across all assets with stored JSON: devices with a
  value, devices where the mapping writes a value (incl. fallbacks)
  and the most frequent results.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
RolandandClaude Opus 5.5 committed 2026-11-18 21:41:02 +01:00
1 parent 40cd88871f
commit d6de4d9878
10 files changed
+723 -4

No files matched your search

+30
View File
@@ -216,6 +216,36 @@ BASE_TRANSLATIONS = {
"lists.column_resize": ("Drag to change the column width", "Ziehen, um die Spaltenbreite zu ändern"),
"lists.multi_value_filter_hint": ("One search value per line; lines within a column are OR-linked. !value excludes rows, =value compares the whole value exactly. Numbers and dates also support >x, <x, >=x, <=x and ranges such as 'from x to y'. The ▾ button opens a value list with checkboxes.", "Ein Suchwert pro Zeile; Zeilen einer Spalte sind ODER-verknüpft. !Wert schließt Zeilen aus, =Wert vergleicht den ganzen Wert exakt. Zahlen und Datumswerte unterstützen zusätzlich >x, <x, >=x, <=x sowie Bereiche wie ‚von x bis y‘. Der Knopf ▾ öffnet eine Werteliste mit Häkchen."),
"lists.advanced_filter.title": ("Advanced filter", "Erweiterter Filter"),
'mesh.picker.open': ('From device', 'Aus Gerät wählen'),
'mesh.picker.open_title': ('Choose the source path in the stored MeshCentral JSON of a device', 'Quellpfad im gespeicherten MeshCentral-JSON eines Geräts auswählen'),
'mesh.picker.mapped': ('mapped', 'gemappt'),
'mesh.picker.unavailable': ("This key contains '.' or '|' and cannot be addressed with the path syntax.", "Dieser Schlüssel enthält '.' oder '|' und lässt sich mit der Pfadsyntax nicht ansprechen."),
'mesh.picker.more': ('Show {count} more', '{count} weitere anzeigen'),
'mesh.picker.no_matches': ('No matches.', 'Keine Treffer.'),
'mesh.picker.matches_limited': ('Only the first {count} matches are shown.', 'Es werden nur die ersten {count} Treffer angezeigt.'),
'mesh.picker.values': ('Values on this device ({count})', 'Werte bei diesem Gerät ({count})'),
'mesh.picker.no_value': ('—', '—'),
'mesh.picker.result': ('Result with these mapping settings', 'Ergebnis mit diesen Mapping-Einstellungen'),
'mesh.picker.no_result': ('(no value, the field is not written)', '(kein Wert, das Feld wird nicht beschrieben)'),
'mesh.picker.fallback': ("The source is empty here; the 'value if empty' is used.", "Die Quelle ist hier leer; es wird der 'Wert, wenn leer' verwendet."),
'mesh.picker.preview_error': ('The preview could not be calculated.', 'Die Vorschau konnte nicht berechnet werden.'),
'mesh.picker.coverage_summary': ('Value present on {with} of {total} devices; the mapping writes a value on {result} devices.', 'Wert bei {with} von {total} Geräten vorhanden; das Mapping schreibt bei {result} Geräten einen Wert.'),
'mesh.picker.coverage_fallback': ("{count} of them via 'value if empty'.", "Davon {count} über 'Wert, wenn leer'."),
'mesh.picker.coverage_top': ('Most frequent results ({count} different)', 'Häufigste Ergebnisse ({count} verschiedene)'),
'mesh.picker.no_asset_match': ('No matching asset', 'Kein passendes Asset'),
'mesh.picker.no_assets': ('No asset with stored MeshCentral data yet. Run a sync first.', 'Noch kein Asset mit gespeicherten MeshCentral-Daten. Bitte zuerst einen Abgleich ausführen.'),
'mesh.picker.last_sync': ('Last sync: {time}', 'Letzter Abgleich: {time}'),
'mesh.picker.load_error': ('The device data could not be loaded.', 'Die Gerätedaten konnten nicht geladen werden.'),
'mesh.picker.save_hint': ('Path applied. Save the mappings to keep it.', 'Pfad übernommen. Zum Behalten die Mappings speichern.'),
'mesh.picker.title': ('Choose source path', 'Quellpfad auswählen'),
'mesh.picker.device': ('Device', 'Gerät'),
'mesh.picker.device_search': ('Search asset', 'Asset suchen'),
'mesh.picker.tree_search': ('Search keys and values', 'Schlüssel und Werte durchsuchen'),
'mesh.picker.path': ('Source path', 'Quellpfad'),
'mesh.picker.help': ("Click an entry to use its path. Entries inside lists produce 'list[].key' (all elements). The preview uses the transformation, multiple-value mode and 'value if empty' of the mapping row.", "Klicke auf einen Eintrag, um seinen Pfad zu übernehmen. Einträge in Listen ergeben 'liste[].schlüssel' (alle Elemente). Die Vorschau verwendet Transformation, Mehrfachwerte und 'Wert, wenn leer' der Mapping-Zeile."),
'mesh.picker.coverage': ('Check coverage across all devices', 'Abdeckung über alle Geräte prüfen'),
'mesh.picker.apply': ('Apply path', 'Pfad übernehmen'),
'errors.mesh_source_missing': ('No stored MeshCentral data was found for this asset.', 'Für dieses Asset wurden keine gespeicherten MeshCentral-Daten gefunden.'),
"lists.value_list.open": ("Select values", "Werte auswählen"),
"lists.value_list.search": ("Search values", "Werte durchsuchen"),
"lists.value_list.select_all": ("(Select all)", "(Alle auswählen)"),