Skip to content

Commit

Permalink
Move out common files of LineChartWidget
Browse files Browse the repository at this point in the history
  • Loading branch information
gggritso committed Dec 11, 2024
1 parent f8dbf86 commit 1c4d1de
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {formatChartValue} from './formatChartValue';
import {formatChartValue} from '../lineChartWidget/formatChartValue';

describe('formatChartValue', () => {
describe('integer', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type {TimeseriesData} from '../common/types';
import type {TimeseriesData} from './types';

export function shiftTimeserieToNow(timeserie: TimeseriesData): TimeseriesData {
const currentTimestamp = new Date().getTime();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import storyBook from 'sentry/stories/storyBook';
import type {DateString} from 'sentry/types/core';
import usePageFilters from 'sentry/utils/usePageFilters';

import {shiftTimeserieToNow} from '../common/shiftTimeserieToNow';
import type {Release, TimeseriesData} from '../common/types';

import {LineChartWidget} from './lineChartWidget';
import sampleDurationTimeSeries from './sampleDurationTimeSeries.json';
import sampleThroughputTimeSeries from './sampleThroughputTimeSeries.json';
import {shiftTimeserieToNow} from './shiftTimeserieToNow';

const sampleDurationTimeSeries2 = {
...sampleDurationTimeSeries,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ import useOrganization from 'sentry/utils/useOrganization';
import usePageFilters from 'sentry/utils/usePageFilters';

import {useWidgetSyncContext} from '../../contexts/widgetSyncContext';
import {formatChartValue} from '../common/formatChartValue';
import {ReleaseSeries} from '../common/releaseSeries';
import type {Meta, Release, TimeseriesData} from '../common/types';

import {formatChartValue} from './formatChartValue';
import {splitSeriesIntoCompleteAndIncomplete} from './splitSeriesIntoCompleteAndIncomplete';

export interface LineChartWidgetVisualizationProps {
Expand Down

0 comments on commit 1c4d1de

Please sign in to comment.