Skip to content

Conversation

@joaoviana
Copy link
Contributor

@joaoviana joaoviana commented Jan 13, 2026

Closes: #ISSUE_NUMBER

Description:

Added support for embedding individual charts with dedicated URLs. This PR creates a new route for embedded charts (/embed/:projectUuid/chart/:chartUuid) and updates the embed service to generate chart-specific URLs when the content type is a chart.

The implementation includes:

  • New URL path generation in the EmbedService based on content type
  • Added EmbedChart route in CommercialRoutes
  • Updated EmbedChart component to use chart UUID from URL parameters
  • Enhanced MinimalSavedExplorer with MetricQueryDataProvider to support underlying data functionality in embedded charts

This change allows for more granular embedding of specific charts rather than only embedding entire dashboards.

Screenshot 2026-01-14 at 13.05.55.pngScreenshot 2026-01-14 at 13.06.03.png

Copy link
Contributor Author

joaoviana commented Jan 13, 2026

@github-actions
Copy link

github-actions bot commented Jan 13, 2026

Your preview environment pr-19397 has been deployed with errors.

@github-actions
Copy link

github-actions bot commented Jan 13, 2026

Preview Environment

🌐 URL: https://lightdash-preview-pr-19397.lightdash.okteto.dev

📋 Logs: View in GCP Console

🔧 SSH: ./scripts/okteto-ssh.sh 19397

@joaoviana joaoviana force-pushed the 01-13-fix_load_embed_chart_on_generate_copy_url_action_in_embed_settings branch from a7ce129 to 2ddb2b8 Compare January 14, 2026 09:54
@joaoviana joaoviana force-pushed the 01-12-fix_can_view_underlying_data_in_non-cartesian_tiles_if_enabled_on_embedded_content branch from 0a63501 to 2ce9c45 Compare January 14, 2026 09:54
@joaoviana joaoviana force-pushed the 01-13-fix_load_embed_chart_on_generate_copy_url_action_in_embed_settings branch from 2ddb2b8 to df5b5e0 Compare January 14, 2026 10:37
@joaoviana joaoviana force-pushed the 01-12-fix_can_view_underlying_data_in_non-cartesian_tiles_if_enabled_on_embedded_content branch from 2ce9c45 to 26da9e5 Compare January 14, 2026 10:37
@joaoviana joaoviana force-pushed the 01-13-fix_load_embed_chart_on_generate_copy_url_action_in_embed_settings branch from df5b5e0 to b24822b Compare January 14, 2026 13:01
@joaoviana joaoviana force-pushed the 01-12-fix_can_view_underlying_data_in_non-cartesian_tiles_if_enabled_on_embedded_content branch from 26da9e5 to 56a6883 Compare January 14, 2026 13:01
@joaoviana joaoviana marked this pull request as ready for review January 14, 2026 13:06
@joaoviana joaoviana added 🖥 frontend This issue requires changes to the frontend ⚙️ backend This issue requires changes to the backend labels Jan 14, 2026 — with Graphite App
Copy link
Contributor

@stevelikesmusic stevelikesmusic left a comment

Choose a reason for hiding this comment

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

Legend. THANK YOU for building this. One comment on how we source the chartUuid.

Not in this PR, but would we be able to have a preview for charts as well from the admin similar to dashboards?

Copy link
Contributor

@stevelikesmusic stevelikesmusic left a comment

Choose a reason for hiding this comment

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

One more comment I just noticed. Could we add a width to the container for the embedded chart route?

Screen Shot 2026-01-14 at 3.38.09 PM.png

@joaoviana joaoviana changed the base branch from 01-12-fix_can_view_underlying_data_in_non-cartesian_tiles_if_enabled_on_embedded_content to graphite-base/19397 January 14, 2026 13:46
@joaoviana joaoviana force-pushed the graphite-base/19397 branch from 56a6883 to 2909d34 Compare January 14, 2026 13:46
@joaoviana joaoviana force-pushed the 01-13-fix_load_embed_chart_on_generate_copy_url_action_in_embed_settings branch from b24822b to fb26627 Compare January 14, 2026 13:46
@graphite-app graphite-app bot changed the base branch from graphite-base/19397 to main January 14, 2026 13:47
@joaoviana joaoviana force-pushed the 01-13-fix_load_embed_chart_on_generate_copy_url_action_in_embed_settings branch from fb26627 to 64da989 Compare January 14, 2026 13:47
Copy link
Contributor Author

on it @stevelikesmusic

Copy link
Contributor Author

done: (same styles as the container for Dashboards) + some margin :)

Screenshot 2026-01-14 at 13.53.48.png

@joaoviana joaoviana force-pushed the 01-13-fix_load_embed_chart_on_generate_copy_url_action_in_embed_settings branch from 64da989 to 21ad70c Compare January 14, 2026 13:54
Copy link
Contributor Author

joaoviana commented Jan 14, 2026

Merge activity

  • Jan 14, 2:06 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jan 14, 2:07 PM UTC: @joaoviana merged this pull request with Graphite.

@joaoviana joaoviana merged commit fb839f6 into main Jan 14, 2026
7 of 8 checks passed
@joaoviana joaoviana deleted the 01-13-fix_load_embed_chart_on_generate_copy_url_action_in_embed_settings branch January 14, 2026 14:07
lightdash-bot pushed a commit that referenced this pull request Jan 14, 2026
# [0.2336.0](0.2335.0...0.2336.0) (2026-01-14)

### Bug Fixes

* can view underlying data in non-cartesian tiles if enabled on embedded content ([#19354](#19354)) ([2909d34](2909d34))
* creating charts from editing doesn't respect tabs ([#19430](#19430)) ([39ce72f](39ce72f))
* filter dashboard parameters by active tab tiles (V2) ([#19431](#19431)) ([096f847](096f847))
* load embed chart on generate & copy URL action in embed settings ([#19397](#19397)) ([fb839f6](fb839f6))

### Features

* populate SQL for additional metrics in Slack artifact blocks ([#19435](#19435)) ([c3fee67](c3fee67))
@lightdash-bot
Copy link
Collaborator

🎉 This PR is included in version 0.2336.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚙️ backend This issue requires changes to the backend 🖥 frontend This issue requires changes to the frontend released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants