Review stream tweaks (#20648)
CI / AMD64 Build (push) Waiting to run
CI / ARM Build (push) Waiting to run
CI / Jetson Jetpack 6 (push) Waiting to run
CI / AMD64 Extra Build (push) Blocked by required conditions
CI / ARM Extra Build (push) Blocked by required conditions
CI / Synaptics Build (push) Blocked by required conditions
CI / Assemble and push default build (push) Blocked by required conditions

* add detail stream selector to mobile drawer

* tweak getDurationFromTimestamps for i18n and abbreviations

* improve lifecycle description labeling

* i18n

* match figma

* fix progress line and add area and ratio tooltip

* allow clicking on chevron without triggering playback

* tweaks

* add key

* change wording

* clean up

* clean up

* remove check

* clean up
This commit is contained in:
Josh Hawkins
2025-10-24 07:50:06 -05:00
committed by GitHub
parent e2da8aa04c
commit 49f5d595ea
8 changed files with 450 additions and 232 deletions
+9 -3
View File
@@ -9,7 +9,9 @@ export function getLifecycleItemDescription(
? lifecycleItem.data.sub_label[0]
: lifecycleItem.data.sub_label || lifecycleItem.data.label;
const label = getTranslatedLabel(rawLabel);
const label = lifecycleItem.data.sub_label
? rawLabel
: getTranslatedLabel(rawLabel);
switch (lifecycleItem.class_type) {
case "visible":
@@ -44,14 +46,18 @@ export function getLifecycleItemDescription(
{
ns: "views/explore",
label,
attribute: lifecycleItem.data.attribute.replaceAll("_", " "),
attribute: getTranslatedLabel(
lifecycleItem.data.attribute.replaceAll("_", " "),
),
},
);
} else {
title = t("objectLifecycle.lifecycleItemDesc.attribute.other", {
ns: "views/explore",
label: lifecycleItem.data.label,
attribute: lifecycleItem.data.attribute.replaceAll("_", " "),
attribute: getTranslatedLabel(
lifecycleItem.data.attribute.replaceAll("_", " "),
),
});
}
return title;