Skip to content

Commit

Permalink
refactor: Config iri -> id
Browse files Browse the repository at this point in the history
  • Loading branch information
bprusinowski committed Nov 14, 2024
1 parent f2359a7 commit 7c55a27
Show file tree
Hide file tree
Showing 97 changed files with 2,105 additions and 2,089 deletions.
4 changes: 2 additions & 2 deletions app/browse/datatable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { ascending, descending } from "d3-array";
import { useCallback, useMemo, useRef, useState } from "react";

import {
extractChartConfigComponentIris,
extractChartConfigComponentIds,
useQueryFilters,
} from "@/charts/shared/chart-helpers";
import { Loading } from "@/components/hint";
Expand Down Expand Up @@ -245,7 +245,7 @@ export const DataSetTable = ({
sx?: SxProps<Theme>;
}) => {
const locale = useLocale();
const componentIris = extractChartConfigComponentIris({ chartConfig });
const componentIris = extractChartConfigComponentIds({ chartConfig });
const commonQueryVariables = {
sourceType: dataSource.type,
sourceUrl: dataSource.url,
Expand Down
4 changes: 2 additions & 2 deletions app/charts/area/areas-state.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ const useAreasState = (
fields.segment?.useAbbreviations,
]);

const xKey = fields.x.componentIri;
const xKey = fields.x.componentId;
const sumsByX = useMemo(() => {
return Object.fromEntries(
rollup(
Expand Down Expand Up @@ -366,7 +366,7 @@ const useAreasState = (
});
const yValueFormatter = getStackedTooltipValueFormatter({
normalize,
yMeasureIri: yMeasure.id,
yMeasureId: yMeasure.id,
yMeasureUnit: yMeasure.unit,
formatters,
formatNumber,
Expand Down
2 changes: 1 addition & 1 deletion app/charts/chart-config-ui-options.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe("defaultSegmentOnChange", () => {
expect(Object.keys(chartConfig.fields)).toEqual(["segment"]);
expect(chartConfig.fields.segment).toEqual(
expect.objectContaining({
componentIri: "iri",
componentId: "iri",
palette: DEFAULT_CATEGORICAL_PALETTE_NAME,
})
);
Expand Down
Loading

0 comments on commit 7c55a27

Please sign in to comment.