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

Add button for selecting pivot fields via dropdown #4020

Merged
merged 8 commits into from
Feb 12, 2024

Conversation

briangregoryholmes
Copy link
Contributor

@briangregoryholmes briangregoryholmes commented Feb 12, 2024

This PR adds a button to the pivot columns and rows drag lists that allows the user to select pivot fields via dropdown. To support this, the dimension and measure aggregators have been moved to the pivot selectors.

@briangregoryholmes briangregoryholmes changed the title add pivot field buton Add button for selecting pivot fields via dropdown Feb 12, 2024
@briangregoryholmes briangregoryholmes self-assigned this Feb 12, 2024
Copy link
Member

@djbarnwal djbarnwal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and works as intended 👍

measures: ({ metricsSpecQueryResult, dashboard }: DashboardDataSources) => {
const measures =
metricsSpecQueryResult.data?.measures?.filter(
(d) => d.name && dashboard.visibleMeasureKeys.has(d.name),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering if we should only limit to visible measures and dimensions in the pivot. We don't have controls to change the visibility in the pivot view. Probably better if we show all available dimensions and measures cc @mindspank What do you recon we should do here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@djbarnwal Yes I would display all dimensions and measures

@djbarnwal djbarnwal merged commit cfb463e into main Feb 12, 2024
6 checks passed
@djbarnwal djbarnwal deleted the bgh/add-pivot-button branch February 12, 2024 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants