SBIN2010 opened a new pull request, #45030: URL: https://github.com/apache/superset/pull/45030
<!--- Please write the PR title following the conventions at https://www.conventionalcommits.org/en/v1.0.0/ Example: fix(dashboard): load charts correctly --> ### SUMMARY <!--- Describe the change below, including rationale and design decisions --> This was mentioned in the discussion - https://github.com/apache/superset/discussions/39954 Adds a **Collapse rows by default** checkbox to Pivot Table v2. It appears only when **Show rows subtotal** is enabled, and it is off by default, so existing charts stay fully expanded. When the option is on, row groups start collapsed and show their subtotal. The existing arrows still expand or collapse a single group. Nested levels stay collapsed until they are opened. The control uses `renderTrigger`, so toggling it does not rerun the query. ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF <!--- Skip this if not applicable --> ### TESTING INSTRUCTIONS <!--- Required! What steps can be taken to manually verify the changes? --> 1. Open a Pivot Table with at least two row dimensions. 2. Enable **Show rows subtotal** and confirm **Collapse rows by default** appears beneath it. 3. Turn **Collapse rows by default** on and run or refresh the chart. Only the top-level groups and their subtotals should be visible. 4. Expand one group with its arrow. That group opens, sibling groups stay collapsed, and the next nested level stays collapsed until its own arrow is used. 5. Collapse the same group again with its arrow. 6. Turn **Show rows subtotal** off and confirm the collapse option is hidden and all row values are shown. ### ADDITIONAL INFORMATION <!--- Check any relevant boxes with "x" --> <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue --> - [ ] Has associated issue: - [ ] Required feature flags: - [X ] Changes UI - [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351)) - [ ] Migration is atomic, supports rollback & is backwards-compatible - [ ] Confirm DB migration upgrade and downgrade tested - [ ] Runtime estimates and downtime expectations provided - [ X] Introduces new feature or API - [ ] Removes existing feature or API -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
