export function previewValue(value: unknown) { try { if (value === undefined) return ''; const strValue = JSON.stringify(value); return strValue.length > 50 ? `${strValue.slice(0, 50)}...` : strValue; } catch { // Fallback for non-serializable values return ``; } }