feat: add screenshot ready indicator for more reliable dashboard captures
Closes: GLITCH-95
Description:
This PR improves dashboard and chart screenshot reliability by adding a new indicator mechanism that explicitly signals when content is ready to be captured.
The implementation adds a hidden DOM element (#lightdash-ready-indicator) that appears only when all tiles have finished loading. Each visualization component now tracks its loading state and signals when it's ready for screenshot. The backend can be configured to use this new approach via the SCHEDULER_USE_SCREENSHOT_READY_INDICATOR=true environment variable.
This approach is more reliable than the previous method which relied on waiting for loading overlays to disappear, as it provides a positive signal when content is ready rather than waiting for the absence of loading indicators.
- #18765

- #18742
👈 (View in Graphite) main
This stack of pull requests is managed by Graphite. Learn more about stacking.
Your preview environment pr-18742 has been deployed.
Preview environment endpoints are available at:
Preview Environment
🌐 URL: https://lightdash-preview-pr-18742.lightdash.okteto.dev
📋 Logs: View in GCP Console
🔧 SSH: ./scripts/okteto-ssh.sh 18742
Nice catch!
Repro'd and fixed.
Before/After
| Before | After |
|---|---|
:tada: This PR is included in version 0.2269.0 :tada:
The release is available on:
0.2269.0- GitHub release
Your semantic-release bot :package::rocket: