diff --git a/static/app/views/dashboards/widgetBuilder/buildSteps/yAxisStep/yAxisSelector/index.tsx b/static/app/views/dashboards/widgetBuilder/buildSteps/yAxisStep/yAxisSelector/index.tsx index 3d97d2e92edbce..f860de7be2913f 100644 --- a/static/app/views/dashboards/widgetBuilder/buildSteps/yAxisStep/yAxisSelector/index.tsx +++ b/static/app/views/dashboards/widgetBuilder/buildSteps/yAxisStep/yAxisSelector/index.tsx @@ -169,7 +169,7 @@ export function YAxisSelector({ diff --git a/static/app/views/dashboards/widgetBuilder/widgetBuilder.spec.tsx b/static/app/views/dashboards/widgetBuilder/widgetBuilder.spec.tsx index fcee0f09421985..717653def0ee5f 100644 --- a/static/app/views/dashboards/widgetBuilder/widgetBuilder.spec.tsx +++ b/static/app/views/dashboards/widgetBuilder/widgetBuilder.spec.tsx @@ -581,8 +581,8 @@ describe('WidgetBuilder', function () { // Select line chart display await userEvent.click(screen.getByText('Line Chart')); - // Click the Add Data button - await userEvent.click(screen.getByLabelText('Add Data')); + // Click the Add Series button + await userEvent.click(screen.getByLabelText('Add Series')); await selectEvent.select(screen.getByText('(Required)'), ['count_unique(…)']); await userEvent.click(screen.getByLabelText('Add Widget')); @@ -1259,7 +1259,7 @@ describe('WidgetBuilder', function () { expect(await screen.findByText('Area Chart')).toBeInTheDocument(); // Add a group by - await userEvent.click(screen.getByText('Add Data')); + await userEvent.click(screen.getByText('Add Series')); await selectEvent.select(screen.getByText('Select group'), /project/); // Change the y-axis @@ -1308,7 +1308,7 @@ describe('WidgetBuilder', function () { await selectEvent.select(await screen.findByText('Select group'), 'project'); - await userEvent.click(screen.getByText('Add Data')); + await userEvent.click(screen.getByText('Add Series')); await selectEvent.select(screen.getByText('(Required)'), /count_unique/); await waitFor(() => { @@ -1375,7 +1375,7 @@ describe('WidgetBuilder', function () { screen.getByText('Limit to 5 results'); await userEvent.click(screen.getByText('Add Query')); - await userEvent.click(screen.getByText('Add Data')); + await userEvent.click(screen.getByText('Add Series')); expect(screen.getByText('Limit to 2 results')).toBeInTheDocument(); }); diff --git a/static/app/views/dashboards/widgetBuilder/widgetBuilderSortBy.spec.tsx b/static/app/views/dashboards/widgetBuilder/widgetBuilderSortBy.spec.tsx index c072cd51b37aba..98c77e0f9b0718 100644 --- a/static/app/views/dashboards/widgetBuilder/widgetBuilderSortBy.spec.tsx +++ b/static/app/views/dashboards/widgetBuilder/widgetBuilderSortBy.spec.tsx @@ -524,7 +524,7 @@ describe('WidgetBuilder', function () { await userEvent.keyboard('{Enter}'); // Add a y-axis - await userEvent.click(screen.getByText('Add Data')); + await userEvent.click(screen.getByText('Add Series')); // The equation should still be visible expect(screen.getByPlaceholderText('Enter Equation')).toHaveValue( @@ -662,7 +662,7 @@ describe('WidgetBuilder', function () { }, }); - await userEvent.click(await screen.findByText('Add Data')); + await userEvent.click(await screen.findByText('Add Series')); await selectEvent.select(screen.getByText('Select group'), 'project'); // Change the sort by to count_unique diff --git a/static/app/views/dashboards/widgetCard/releaseWidgetQueries.tsx b/static/app/views/dashboards/widgetCard/releaseWidgetQueries.tsx index 930bcf82fed464..62af5aaeab263c 100644 --- a/static/app/views/dashboards/widgetCard/releaseWidgetQueries.tsx +++ b/static/app/views/dashboards/widgetCard/releaseWidgetQueries.tsx @@ -256,7 +256,7 @@ class ReleaseWidgetQueries extends Component { widget.queries.map(q => omit(q, ignoredQueryProps)), prevProps.widget.queries.map(q => omit(q, ignoredQueryProps)) ) || - // If the fields changed (ignore falsy/empty fields -> they can happen after clicking on Add Data) + // If the fields changed (ignore falsy/empty fields -> they can happen after clicking on Add Series) !isEqual( widget.queries.flatMap(q => q.fields?.filter(field => !!field)), prevProps.widget.queries.flatMap(q => q.fields?.filter(field => !!field)) diff --git a/static/app/views/explore/toolbar/index.spec.tsx b/static/app/views/explore/toolbar/index.spec.tsx index eb75c1f8dd460f..93c83e951b33d6 100644 --- a/static/app/views/explore/toolbar/index.spec.tsx +++ b/static/app/views/explore/toolbar/index.spec.tsx @@ -138,7 +138,7 @@ describe('ExploreToolbar', function () { ]); // try adding an overlay - await userEvent.click(within(section).getByRole('button', {name: 'Add Data'})); + await userEvent.click(within(section).getByRole('button', {name: 'Add Series'})); await userEvent.click(within(section).getByRole('button', {name: 'span.duration'})); await userEvent.click(within(section).getByRole('option', {name: 'span.self_time'})); expect(visualizes).toEqual([ diff --git a/static/app/views/explore/toolbar/toolbarVisualize.tsx b/static/app/views/explore/toolbar/toolbarVisualize.tsx index 11c71207191bd7..9e21cc8895a01f 100644 --- a/static/app/views/explore/toolbar/toolbarVisualize.tsx +++ b/static/app/views/explore/toolbar/toolbarVisualize.tsx @@ -205,9 +205,9 @@ export function ToolbarVisualize({}: ToolbarVisualizeProps) { icon={} onClick={() => addOverlay(group)} priority="link" - aria-label={t('Add Data')} + aria-label={t('Add Series')} > - {t('Add Data')} + {t('Add Series')}