justinpark opened a new pull request, #33341: URL: https://github.com/apache/superset/pull/33341
### SUMMARY The "View Query" feature was previously used to display SQL in a formatted manner. However, the prettier formatting was reverted in [this pull request](https://github.com/apache/superset/pull/30350) due to unintended changes in the original SQL. To minimize the impact while retaining the formatting option, this commit introduces a "Format SQL" feature in SQL Lab and an option to show the original SQL for comparison. Additionally, this commit adds a "View in SQL Lab" button, allowing users to conveniently connect to SQL Lab directly from the dashboard, which is particularly useful for users. ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF Before:  After: https://github.com/user-attachments/assets/504b1e61-0dad-4c1a-8c57-d6c9b3c47842 ### TESTING INSTRUCTIONS Click "View Query" in the chart or explore and then check the toolbars above. ### 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: - [ ] 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 - [ ] 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: notifications-unsubscr...@superset.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org