Skip to content

fix(dashboard): open the chart editor modal from the empty-state Add tile - #28648

Merged
pimmey merged 1 commit into
mainfrom
fix/empty-dashboard-new-chart-modal
Sep 4, 2026
Merged

fix(dashboard): open the chart editor modal from the empty-state Add tile#28648
pimmey merged 1 commit into
mainfrom
fix/empty-dashboard-new-chart-modal

Conversation

@pimmey

@pimmey pimmey commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Relates: GLITCH-722

Description:

On an empty dashboard, the centered "Add tile" renders its own AddTileButton (via EmptyStateNoTiles) which never received onNewChart — so with the dashboard-custom-metrics flag on, "New chart" from the empty state still navigated away instead of opening the in-dashboard editor modal. The header's Add tile worked; the empty state didn't.

Threads the same flag-gated handler through DashboardTabsEmptyStateNoTilesAddTileButton, and hoists it into a stable handleOpenNewChart callback shared with the header. Flag off: onNewChart stays undefined, behaviour unchanged.

Risk assessment:

  • This is a high-risk change

High-risk changes require approval from a reviewer other than the author before merging.

…tile

The empty dashboard's centered Add tile rendered its own AddTileButton
without onNewChart, so New chart navigated away instead of opening the
in-dashboard editor. Thread the handler through DashboardTabs and
EmptyStateNoTiles.

Relates: GLITCH-722
@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown

🧪 Test Selection

✅ Tests that will run

Test Description
Preview Environment Deploys a preview environment for testing
Frontend E2E Tests Runs Cypress app tests

⏭️ Tests skipped (no relevant file changes detected)

Test How to trigger manually
Backend API Tests Add test-backend to PR description
Timezone Tests Add test-timezone to PR description
CLI Tests Add test-cli to PR description

Tip: Add test-all to your PR description to run all tests.

@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown

Your preview environment pr-28648 has been deployed.

Preview environment endpoints are available at:

@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown

Preview Environment

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

📋 Logs: View in GCP Console

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

@pimmey
pimmey merged commit ca14cc6 into main Sep 4, 2026
24 of 29 checks passed
@pimmey
pimmey deleted the fix/empty-dashboard-new-chart-modal branch September 4, 2026 10:38
lightdash-bot pushed a commit that referenced this pull request Sep 4, 2026
# [2.124.0](2.123.0...2.124.0) (2026-09-04)

### Bug Fixes

* **ai:** clarify expression value quoting ([#28639](#28639)) ([e7fc05e](e7fc05e))
* **dashboard:** open the chart editor modal from the empty-state Add tile ([#28648](#28648)) ([ca14cc6](ca14cc6))
* **data-apps:** expose safe external fetch response headers ([#28641](#28641)) ([464f356](464f356))
* **merge:** refuse a merge over a result source cut short at its own limit ([#28642](#28642)) ([9b9451f](9b9451f))
* **query-history:** reserve space while loading so the page stops shifting ([#28652](#28652)) ([4178a38](4178a38))

### Features

* **dashboard:** badge dashboard custom metrics from creation ([#28643](#28643)) ([4333777](4333777))
@lightdash-bot

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 2.124.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants