Version 0.5.5.94: field type conversion, exclusion filters and value lists

- Change the data type of custom fields with stored values via a preview:
  values that cannot be converted need an explicit decision, the
  conversion runs in one transaction with row locks and a stale-preview
  check, old values are saved to data/backups and recorded in history.
- Table filters: "!value" excludes rows, "=value" compares exactly;
  Excel-like value list (▾) per column in all tables. The software job
  list computes its value list on the server over the full job history.
- Bulk edit offers custom fields with type-specific input and validation.
- MeshCentral mappings: optional "value if empty" with a guard path;
  fallbacks are skipped when only basic data was delivered.
- Deleting a field removes its translations (same name can be reused);
  one confirmation with the value count replaces the checkbox.
- Job list filters recognize the "reinstall" action and the
  "software deployment" job type.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
RolandandClaude Opus 5.5 committed 2026-11-18 21:14:21 +01:00
1 parent 261b4f2029
commit 40cd88871f
20 files changed
+1400 -187

No files matched your search

+58 -4
View File
@@ -27,6 +27,8 @@ BASE_TRANSLATIONS = {
"fields.stored_values": ("Stored values", "Gespeicherte Werte"),
"fields.delete_confirm": ("Delete this field and all values?", "Dieses Feld und alle gespeicherten Werte löschen?"),
"fields.confirm_values": ("Confirm values", "Werte bestätigen"),
"fields.delete_confirm_empty": ("Delete field {field}?", "Feld {field} löschen?"),
"fields.delete_confirm_values": ("Field {field} contains values for {count} assets. Permanently delete the field and all values?", "Feld {field} enthält Werte für {count} Assets. Feld und alle Werte endgültig löschen?"),
"fields.technical_name": ("Technical field name", "Technischer Feldname"),
"fields.technical_name_help": ("Letters, numbers and underscores only.", "Nur Buchstaben, Zahlen und Unterstriche."),
"fields.automatic": ("automatic", "automatisch"),
@@ -212,8 +214,15 @@ BASE_TRANSLATIONS = {
"lists.row_number": ("Row number", "Zeilennummer"),
"lists.row_number_resize": ("Drag to change the row-number column width", "Ziehen, um die Breite der Nummernspalte zu ändern"),
"lists.column_resize": ("Drag to change the column width", "Ziehen, um die Spaltenbreite zu ändern"),
"lists.multi_value_filter_hint": ("Paste multiple search values one per line. Values within one column are OR-linked. Numeric and date values also support >x, <x, >=x, <=x and ranges such as 'from x to y'.", "Mehrere Suchwerte können zeilenweise eingefügt werden. Innerhalb einer Spalte gilt ODER. Zahlen- und Datumswerte unterstützen zusätzlich >x, <x, >=x, <=x sowie Bereiche wie ‚von x bis y‘."),
"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"),
"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)"),
"lists.value_list.empty": ("(Empty)", "(Leer)"),
"lists.value_list.error": ("The value list could not be loaded.", "Die Werteliste konnte nicht geladen werden."),
"lists.value_list.scan_limited": ("Only the newest {count} jobs were evaluated.", "Es wurden nur die neuesten {count} Jobs ausgewertet."),
"lists.value_list.limited": ("Showing {shown} of {total} values, narrow them with the search field.", "Es werden {shown} von {total} Werten angezeigt, grenze sie mit dem Suchfeld ein."),
"lists.advanced_filter.operator": ("Condition", "Bedingung"),
"lists.advanced_filter.value": ("Value", "Wert"),
"lists.advanced_filter.value_from": ("From", "Von"),
@@ -694,7 +703,7 @@ BASE_TRANSLATIONS.update({
"mesh.store_source_json": ("Store source JSON on asset", "Quell-JSON am Asset speichern"), "mesh.save_connection": ("Save connection and behavior", "Verbindung und Verhalten speichern"),
"mesh.field_mappings": ("Field mappings", "Feld-Mappings"), "mesh.mappings_help": ("Synchronization uses only the enabled rules in this table, including system and custom fields. A debug line is written for each applied mapping when a value changes. Dot notation reads nested JSON values; [] traverses lists and | separates alternative paths.", "Die Synchronisierung verwendet ausschließlich die aktivierten Regeln dieser Tabelle – auch für System- und eigene Felder. Im Live-Protokoll erscheint bei einer Änderung für jedes angewendete Mapping eine Debug-Zeile. Punktnotation liest verschachtelte JSON-Werte. [] durchläuft Listen; | trennt alternative Pfade."),
"mesh.mappings_examples": ("Examples", "Beispiele"), "mesh.priority": ("Priority", "Prio"), "mesh.target_field": ("Target field", "Zielfeld"),
"mesh.transformation": ("Transformation", "Transformation"), "mesh.multi_values": ("Multiple values", "Mehrfachwerte"), "mesh.separator": ("Separator", "Trenner"), "mesh.update_rule": ("Update rule", "Update-Regel"),
"mesh.transformation": ("Transformation", "Transformation"), "mesh.multi_values": ("Multiple values", "Mehrfachwerte"), "mesh.separator": ("Separator", "Trenner"), "mesh.update_rule": ("Update rule", "Update-Regel"), "mesh.empty_value": ("Value if empty", "Wert, wenn leer"), "mesh.empty_value_help": ("Optional. Written when the MeshCentral source is missing or empty, converted like a normal value (e.g. 'false' for a boolean field). Leave empty to keep the field untouched. Combine with 'MeshCentral wins' so later changes are applied.", "Optional. Wird geschrieben, wenn der Wert in MeshCentral fehlt oder leer ist, und wie ein normaler Wert umgewandelt (z. B. 'false' für ein Ja/Nein-Feld). Leer lassen, um das Feld unverändert zu lassen. Mit der Regel 'MeshCentral gewinnt' kombinieren, damit spätere Änderungen übernommen werden."),
"mesh.system_mapping": ("System mapping", "System-Mapping"), "mesh.custom_mapping": ("Custom rule", "Eigene Regel"),
"mesh.rule_fill_empty": ("Empty fields only", "Nur leere Felder"), "mesh.rule_mesh_wins": ("MeshCentral wins", "MeshCentral gewinnt"), "mesh.rule_local_wins": ("Local value wins", "Lokaler Wert gewinnt"),
"mesh.save_mappings": ("Save mapping rules", "Mapping-Regeln speichern"), "mesh.new_mapping": ("New mapping rule", "Neue Mapping-Regel"),
@@ -1810,7 +1819,52 @@ BASE_TRANSLATIONS.update({
"errors.asset_or_category_not_found": ("Asset or category not found.", "Asset oder Kategorie nicht gefunden."),
"errors.asset_save_unique": ("The asset could not be saved. The asset tag, serial number or MeshCentral node ID may already be in use.", "Asset konnte nicht gespeichert werden. Inventarnummer, Seriennummer oder MeshCentral Node-ID ist möglicherweise bereits vergeben."),
"errors.asset_tag_in_use": ("The asset tag {asset_tag} is already in use.", "Die Inventarnummer {asset_tag} ist bereits vergeben."),
"errors.bulk_field_not_allowed": ("The selected field is not allowed in all selected asset categories.", "Das gewählte Feld ist nicht in allen ausgewählten Gerätekategorien zugelassen."),
'fields.conversion.title': ('Change data type', 'Datentyp ändern'),
'fields.conversion.subtitle': ('Field {field}: {from_type} → {to_type}. Nothing has been changed yet.', 'Feld {field}: {from_type} → {to_type}. Es wurde noch nichts geändert.'),
'fields.conversion.summary': ('Preview', 'Vorschau'),
'fields.conversion.count_converted': ('{count} values can be converted', '{count} Werte lassen sich umwandeln'),
'fields.conversion.count_empty': ('{count} empty values (stay empty)', '{count} leere Werte (bleiben leer)'),
'fields.conversion.count_failed': ('{count} values cannot be converted and need a decision', '{count} Werte lassen sich nicht umwandeln und brauchen eine Entscheidung'),
'fields.conversion.safety_help': ('The conversion runs in one transaction: either every value is converted or nothing changes. A safety copy of all old values is written to the backup directory, and every change is recorded in the asset history.', 'Die Umwandlung läuft in einer Transaktion: Entweder werden alle Werte umgewandelt oder nichts ändert sich. Vorher wird eine Sicherungskopie aller alten Werte im Backup-Verzeichnis abgelegt, und jede Änderung wird in der Asset-Historie eingetragen.'),
'fields.conversion.failed_title': ('Values that cannot be converted', 'Nicht umwandelbare Werte'),
'fields.conversion.failed_help': ('Nothing is deleted without your decision. Replace each value with a valid value or clear it explicitly. Alternatively cancel and correct the values in the assets first.', 'Ohne deine Entscheidung wird nichts gelöscht. Ersetze jeden Wert durch einen gültigen Wert oder leere ihn ausdrücklich. Alternativ abbrechen und die Werte zuerst in den Assets korrigieren.'),
'fields.conversion.apply_all': ('For all values below', 'Für alle Werte unten'),
'fields.conversion.apply_all_button': ('Apply to all', 'Für alle übernehmen'),
'fields.conversion.replace_with': ('Replace with', 'Ersetzen durch'),
'fields.conversion.clear': ('Clear value', 'Wert leeren'),
'fields.conversion.replacement': ('Replacement value', 'Ersatzwert'),
'fields.conversion.asset': ('Asset', 'Asset'),
'fields.conversion.current_value': ('Current value', 'Aktueller Wert'),
'fields.conversion.new_value': ('New value', 'Neuer Wert'),
'fields.conversion.reason': ('Reason', 'Grund'),
'fields.conversion.decision': ('Decision', 'Entscheidung'),
'fields.conversion.converted_title': ('{count} values that will be converted', '{count} Werte, die umgewandelt werden'),
'fields.conversion.mappings_title': ('MeshCentral mappings', 'MeshCentral-Mappings'),
'fields.conversion.mappings_help': ('These mappings write into this field, but their transformation does not fit the new data type.', 'Diese Mappings schreiben in dieses Feld, ihre Transformation passt aber nicht zum neuen Datentyp.'),
'fields.conversion.adjust_mappings': ('Adjust the transformation of these mappings', 'Transformation dieser Mappings anpassen'),
'fields.conversion.execute': ('Convert and save', 'Umwandeln und speichern'),
'fields.conversion.confirm': ('Convert all values of {field} to {to_type} now?', 'Alle Werte von {field} jetzt in {to_type} umwandeln?'),
'fields.conversion.changed': ('The stored values have changed since the preview. Please check the conversion again.', 'Die gespeicherten Werte haben sich seit der Vorschau geändert. Bitte prüfe die Umwandlung erneut.'),
'fields.conversion.decisions_missing': ('Please decide for every value that cannot be converted.', 'Bitte entscheide für jeden nicht umwandelbaren Wert.'),
'fields.conversion.done': ('Data type changed: {count} values converted. Safety copy: {file}', 'Datentyp geändert: {count} Werte umgewandelt. Sicherungskopie: {file}'),
'fields.conversion.reason.not_a_boolean': ('Not a yes/no value', 'Kein Ja/Nein-Wert'),
'fields.conversion.reason.not_a_number': ('Not a number', 'Keine Zahl'),
'fields.conversion.reason.decimals_would_be_lost': ('Decimal places would be lost', 'Nachkommastellen würden verloren gehen'),
'fields.conversion.reason.not_a_date': ('Not a date (YYYY-MM-DD or DD.MM.YYYY)', 'Kein Datum (JJJJ-MM-TT oder TT.MM.JJJJ)'),
'fields.conversion.reason.not_a_datetime': ('Not a date and time', 'Kein Datum mit Uhrzeit'),
'fields.conversion.reason.time_would_be_lost': ('The time would be lost', 'Die Uhrzeit würde verloren gehen'),
'fields.conversion.reason.not_an_email': ('Not an e-mail address', 'Keine E-Mail-Adresse'),
'fields.conversion.reason.not_a_url': ('Not a URL', 'Keine URL'),
'fields.conversion.reason.not_an_ip': ('Not an IP address', 'Keine IP-Adresse'),
'fields.conversion.reason.unsupported': ('Not convertible', 'Nicht umwandelbar'),
'fields.conversion.reason.undecided': ('Decision missing', 'Entscheidung fehlt'),
'fields.conversion.reason.empty_replacement': ('Replacement value missing', 'Ersatzwert fehlt'),
'errors.data_type_conversion_unsupported': ('Stored values of type {from_type} cannot be converted to {to_type}. Supported are text, number, yes/no, date, date and time, URL, e-mail and IP address.', 'Gespeicherte Werte vom Typ {from_type} lassen sich nicht in {to_type} umwandeln. Unterstützt werden Text, Zahl, Ja/Nein, Datum, Datum mit Uhrzeit, URL, E-Mail und IP-Adresse.'),
'errors.conversion_backup_failed': ('The safety copy of the old values could not be written. Nothing was changed.', 'Die Sicherungskopie der alten Werte konnte nicht geschrieben werden. Es wurde nichts geändert.'),
'mesh.empty_value_guard': ('Only if present', 'Nur wenn vorhanden'),
'mesh.empty_value_guard_help': ('Optional path in the device JSON. The value for empty sources is only written if this path exists for the device. Empty = parent path of the source path.', 'Optionaler Pfad im Geräte-JSON. Der Wert für leere Quellen wird nur geschrieben, wenn dieser Pfad beim Gerät vorhanden ist. Leer = übergeordneter Pfad des Quellpfads.'),
"errors.bulk_value_invalid": ("The value is not valid for the field type {data_type}.", "Der Wert ist für den Feldtyp {data_type} nicht gültig."),
"errors.bulk_field_not_allowed":("The selected field is not allowed in all selected asset categories.", "Das gewählte Feld ist nicht in allen ausgewählten Gerätekategorien zugelassen."),
"errors.bulk_save_failed": ("The data could not be saved for all assets.", "Die Daten konnten nicht für alle Assets gespeichert werden."),
"errors.callback_part_too_large": ("{label} is too large.", "{label} ist zu groß."),
"errors.callback_token_expired": ("Callback token has expired.", "Callback-Token ist abgelaufen."),
@@ -1829,7 +1883,7 @@ BASE_TRANSLATIONS.update({
"errors.data_type_locked": ("The data type can only be changed while the custom field has no stored values.", "Der Datentyp kann nur geändert werden, solange das eigene Feld keine gespeicherten Werte hat."),
"errors.excel_invalid": ("The Excel file is invalid or damaged.", "Die Excel-Datei ist ungültig oder beschädigt."),
"errors.excel_no_header": ("The Excel file has no header row.", "Die Excel-Datei enthält keine Kopfzeile."),
"errors.field_has_values": ("This field contains values for {count} assets. Confirm deletion of all values.", "Dieses Feld enthält Werte für {count} Assets. Bitte das Löschen aller Werte bestätigen."),
"errors.field_has_values": ("This field now contains values for {count} assets. Please reload the page and confirm the deletion again.", "Dieses Feld enthält inzwischen Werte für {count} Assets. Bitte die Seite neu laden und das Löschen erneut bestätigen."),
"errors.field_name_exists": ("A field with this name already exists.", "Ein Feld mit diesem Namen existiert bereits."),
"errors.field_name_invalid": ("The field name is invalid or already reserved.", "Der Feldname ist ungültig oder bereits reserviert."),
"errors.field_not_found": ("Field not found.", "Feld nicht gefunden."),