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

+40
View File
@@ -3457,3 +3457,43 @@ html[data-theme="dark"] .value-list-count{color:#9aa7b4}
.value-list-popup label.value-list-item input[type="checkbox"]{flex:0 0 auto;width:16px;min-width:16px;height:16px;margin:0;padding:0}
.value-list-popup label.value-list-all{white-space:nowrap}
.value-list-button.is-loading{opacity:.35;cursor:progress}
/* 0.5.5.95: MeshCentral source path picker */
.picker-input-wrap{display:flex;gap:4px;align-items:center}
.picker-input-wrap input{flex:1;min-width:0}
.picker-open{white-space:nowrap;flex:0 0 auto}
.picker-open-compact{width:34px;min-width:34px;padding-left:0;padding-right:0}
.mesh-mapping-table .picker-input-wrap input.mapping-path{min-width:300px}
.mesh-path-picker-dialog{width:min(980px,96vw);max-height:92vh}
.mesh-path-picker-dialog[open]{display:flex;flex-direction:column;gap:8px}
.mesh-path-picker-dialog label{display:block;font-weight:600;font-size:13px}
.mesh-path-picker-dialog label input,.mesh-path-picker-dialog label select{width:100%;box-sizing:border-box}
.picker-device-row{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:end}
.picker-tree{height:min(46vh,460px);overflow:auto;border:1px solid var(--border-color,#d8dde2);border-radius:6px;padding:4px 0;font-size:13px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.picker-node{display:flex;align-items:baseline;gap:6px;padding:2px 8px 2px calc(8px + var(--depth,0) * 16px);cursor:pointer;white-space:nowrap}
.picker-node:hover,.picker-node:focus-visible{background:rgba(0,90,160,.08);outline:none}
.picker-node.is-selected{background:rgba(0,90,160,.18)}
.picker-node.is-unavailable{cursor:default;opacity:.5}
.picker-match{flex-wrap:wrap;white-space:normal}
.picker-toggle{width:16px;min-width:16px;padding:0;margin:0;border:0;background:transparent;color:inherit;cursor:pointer;font-size:12px}
.picker-key{font-weight:600}
.picker-value{color:#1d6b3a;overflow:hidden;text-overflow:ellipsis}
.picker-meta{color:#6b7785}
.picker-mapped{font-family:system-ui,sans-serif;font-size:11px;padding:0 6px;border-radius:8px;background:#e3eefb;color:#1f5d99}
.picker-more{margin:4px 0 4px calc(24px + var(--depth,0) * 16px)}
.picker-path{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.picker-preview,.picker-coverage{font-size:13px}
.picker-preview:empty,.picker-coverage:empty{display:none}
.picker-preview{padding:8px;border-radius:6px;background:#f5f7f9}
.picker-preview .picker-value{word-break:break-word;white-space:normal}
.picker-coverage p{margin:4px 0}
.picker-coverage-list{margin:4px 0 0}
input.picker-updated{background:#fff8d6}
html[data-theme="dark"] .picker-tree{border-color:#53606d}
html[data-theme="dark"] .picker-preview{background:#26313c}
html[data-theme="dark"] .picker-value{color:#8fd4a8}
html[data-theme="dark"] .picker-meta{color:#9aa7b4}
html[data-theme="dark"] .picker-mapped{background:#24405e;color:#cfe3fa}
html[data-theme="dark"] input.picker-updated{background:#4a4320}
html[data-theme="dark"] .picker-node:hover,html[data-theme="dark"] .picker-node.is-selected{background:rgba(120,180,240,.18)}
@media (max-width:700px){.picker-device-row{grid-template-columns:1fr}}