Skip to content
Snippets Groups Projects
Unverified Commit 59f79c5f authored by Sameer Al-Sakran's avatar Sameer Al-Sakran Committed by GitHub
Browse files

Merge pull request #7576 from metabase/issue-7537

Issue 7537
parents 822b430f 38bcc555
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,8 @@ import { t } from "c-3po";
import Input from "metabase/components/Input.jsx";
import ProgressBar from "metabase/components/ProgressBar.jsx";
import { normal } from "metabase/lib/colors";
import _ from "underscore";
import cx from "classnames";
......@@ -120,7 +122,12 @@ export default class MetadataTable extends Component {
{this.renderVisibilityWidget()}
<span className="flex-align-right flex align-center">
<span className="text-uppercase mr1">{t`Metadata Strength`}</span>
<ProgressBar percentage={tableMetadata.metadataStrength} />
<span style={{ width: 64 }}>
<ProgressBar
percentage={tableMetadata.metadataStrength}
color={normal.grey2}
/>
</span>
</span>
</div>
<div className={"mt2 " + (this.isHidden() ? "disabled" : "")}>
......
......@@ -32,6 +32,9 @@ export default ({ question, clicked }: ClickActionProps): ClickAction[] => {
return [];
}
const { column } = clicked;
const pivotFieldRef = isDate(column)
? getFieldRefFromColumn(column)
: ["field-id", dateField.id];
return ["sum", "count"]
.map(getAggregator)
......@@ -51,6 +54,6 @@ export default ({ question, clicked }: ClickActionProps): ClickAction[] => {
? [aggregator.short, getFieldRefFromColumn(column)]
: [aggregator.short],
)
.pivot([["datetime-field", ["field-id", dateField.id], "day"]]),
.pivot([["datetime-field", pivotFieldRef, "day"]]),
}));
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment