castodius opened a new pull request, #32958:
URL: https://github.com/apache/superset/pull/32958

   <!---
   Please write the PR title following the conventions at 
https://www.conventionalcommits.org/en/v1.0.0/
   Example:
   fix(dashboard): load charts correctly
   -->
   
   ### SUMMARY
   This change adds a Dashboard advanced setting allowing the expansion of all 
chart descriptions. The setting respects individual chart descriptions - if one 
is set to not expand upon Dashboard load then it won't. A description shown 
upon load via this setting can be hidden using **Hide chart description** and 
the expanded again using **Show chart description**.
   
   At the time of creation this PR does not include new integration tests. If 
the intended functionality looks good I will be happy to add tests. I have 
edited the minimal number of files I think makes sense, but it is a large 
project which makes it harder to navigate.
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   
   Before:
   
   
![image](https://github.com/user-attachments/assets/7fe98048-b57e-47ca-a94b-6634439ae0f3)
   *Video Games Sales Dashboard with no descriptions shown upon load*
   
   After:
   
![image](https://github.com/user-attachments/assets/a8e0abbe-15f1-4fd3-aedb-08f0ec384f37)
   *Enabling the setting*
   
   
![image](https://github.com/user-attachments/assets/241387f6-20d1-49e1-b4da-a8b3a03e3e3b)
   *All chart descriptions shown*
   
   
![image](https://github.com/user-attachments/assets/6dee39cb-c443-44cf-afd0-1ca992406b1f)
   *Disabling showing of description for chart 70*
   
   
![image](https://github.com/user-attachments/assets/b2a6cede-7ace-495b-b166-55cec4dda00a)
   *Description for chart 70 does not get shown by default*
   
   ### TESTING INSTRUCTIONS
   
   Basic test
   
   - Add descriptions to two charts that are part of the same Dashboard
   - Edit advanced settings for the Dashboard, setting "expand_all_slices" to 
be true
   - Load the Dashboard, the chart descriptions should be shown
   - Edit advanced settings to disable expansion of one the dashboards
   - Load the Dashboard. Only one chart description should be shown by default
   
   Extensive testing
   
   - Iterate over the nine options of undefined, true and false for chart times 
expand all
   - Ensure default expansion is handled as expected in the table below
   
   
![image](https://github.com/user-attachments/assets/29524c82-1681-4d18-a27e-11240426db0d)
   
   
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [x] Has associated issue: 
https://github.com/apache/superset/discussions/32916
   - [ ] Required feature flags:
   - [ ] 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]

Reply via email to