@get-dx/cli 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -275,6 +275,7 @@ function renderStudioReport(report) {
|
|
|
275
275
|
ui.dl([
|
|
276
276
|
ui.dli("URL", ui.link(report.url)),
|
|
277
277
|
ui.dli("Description", formatOptionalText(report.description)),
|
|
278
|
+
ui.dli("Owner", formatOwner(report.owner)),
|
|
278
279
|
ui.dli("View access", formatViewAccessType(report.view_access_type)),
|
|
279
280
|
ui.dli("Edit access", formatEditAccessType(report.edit_access_type)),
|
|
280
281
|
ui.dli("Tiles", report.tiles.length.toString()),
|
|
@@ -373,6 +374,11 @@ function formatTileTitle(tile) {
|
|
|
373
374
|
function formatOptionalText(value) {
|
|
374
375
|
return value && value.trim().length > 0 ? value : ui.dim("(None)");
|
|
375
376
|
}
|
|
377
|
+
function formatOwner(owner) {
|
|
378
|
+
if (!owner)
|
|
379
|
+
return ui.dim("(None)");
|
|
380
|
+
return `${owner.name} (${owner.email})`;
|
|
381
|
+
}
|
|
376
382
|
function formatViewAccessType(value) {
|
|
377
383
|
switch (value) {
|
|
378
384
|
case "owner_and_direct_url_only":
|