Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: don't fill inferred label in visual metrics sidebar #5943

Merged
merged 1 commit into from
Oct 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion web-common/src/components/forms/InputLabel.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<div class="text-gray-500">
<InfoCircle size="13px" />
</div>
<TooltipContent maxWidth="400px" slot="tooltip-content">
<TooltipContent maxWidth="240px" slot="tooltip-content">
{@html hint}
</TooltipContent>
</Tooltip>
Expand Down
4 changes: 2 additions & 2 deletions web-common/src/features/visual-metrics-editing/Sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
fields: [
{
key: "label",
hint: "Used on dashboards and charts",
hint: "Used on dashboards and charts. Inferred from name when not provided",
label: "Label",
},
Expand Down Expand Up @@ -176,7 +176,7 @@
fields: [
{
key: "label",
hint: "Used on dashboards and charts",
hint: "Used on dashboards and charts. Inferred from name when not provided",
label: "Label",
},
Expand Down
2 changes: 1 addition & 1 deletion web-common/src/features/visual-metrics-editing/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class YAMLMeasure {
constructor(item?: YAMLMap<string, string>) {
this.expression = item?.get("expression") ?? "";
this.name = item?.get("name") ?? "";
this.label = item?.get("label") ?? item?.get("name") ?? "";
this.label = item?.get("label") ?? "";
this.description = item?.get("description") ?? "";
this.valid_percent_of_total =
item?.get("valid_percent_of_total") === undefined
Expand Down
Loading