You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "msyavuz (via GitHub)" <gi...@apache.org> on 2026/08/26 14:59:04 UTC
[PR] fix(dashboard): keep the chart menu usable in fullscreen on production builds [superset]
msyavuz opened a new pull request, #43555:
URL: https://github.com/apache/superset/pull/43555
### SUMMARY
The chart three-dots menu is invisible and unclickable while a chart is in native fullscreen — **on production builds only**, which is why it never reproduced in development.
Native fullscreen paints only the fullscreen element's subtree, so AntD popups portaled to `document.body` are never drawn and clicks fall through to the chart. `ChartHolder` compensates with a `getPopupContainer` that re-parents them into the chart holder, but it located the holder via `closest('[data-test="dashboard-component-chart-holder"]')`. `babel-plugin-jsx-remove-data-test-id` strips `data-test` in the `production` babel env (`babel.config.js:104`), so that returned `null` and fell back to `document.body`.
The same root cause silently killed the whole `fullscreenStyles` sheet, which keyed every rule on the same attribute — production fullscreen charts have had no background, padding, or flex layout either.
- Resolve the popup container from `document.fullscreenElement` instead of a selector, with a `contains` check so only the chart actually in fullscreen re-parents its popups.
- Move `fullscreenStyles` onto stable class hooks (`.dashboard-component-chart-holder`, new `.slice-header`).
- Fix one more dead selector with the same cause: the mobile title-truncation rule in `DashboardWrapper.tsx`.
Two deliberate removals, since fixing the selectors enables this sheet in production for the first time:
- `width: 100vw`, `height: 100vh`, `box-sizing`, `position: relative`, holder `z-index`/`opacity`/`visibility` — the [Fullscreen spec UA stylesheet](https://fullscreen.spec.whatwg.org/#user-agent-level-style-sheet-defaults) sets these with `!important`, and UA `!important` beats author `!important`, so they cannot apply.
- `:fullscreen * { pointer-events: auto }` — a blanket override that has never been active in a production build; re-arming pointer events on every descendant is the riskiest thing to switch on here.
### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
N/A — the bug is invisible in a dev build, so a local recording cannot show the before state. Reproduced and verified against a production build.
### TESTING INSTRUCTIONS
Must be a **production** build; `npm run dev` cannot reproduce this.
1. `cd superset-frontend && npm run build`
2. Serve the built assets and open a dashboard.
3. Chart three-dots menu → **Enter fullscreen**.
4. Click the three-dots menu again.
Before: nothing happens; the menu is in the DOM under `document.body` but never painted. After: the menu opens anchored to the button, and the chart has its background and padding.
### ADDITIONAL INFORMATION
- [ ] Has associated issue: No — reported through Preset support.
- [ ] Required feature flags: None.
- [x] Changes UI — chart menu now renders in fullscreen; fullscreen charts get the background/padding/layout that was always intended.
- [ ] Includes DB Migration: No — frontend only.
- [ ] Introduces new feature or API: No.
- [ ] Removes existing feature or API: No.
Follow-up worth its own PR: five more runtime `[data-test=...]` CSS selectors are dead in production for the same reason — `SqlLab/SqlLabGlobalStyles.tsx:51,55`, `ListView.tsx:79,100`, `Modal.tsx:135`. A rule in `scripts/check-custom-rules.js` banning `[data-test` in `css` templates and DOM queries would catch the whole class.
https://claude.ai/code/session_01345mdAxbJW9PgEFT9Lvumm
--
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-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(dashboard): keep the chart menu usable in fullscreen on production builds [superset]
Posted by "msyavuz (via GitHub)" <gi...@apache.org>.
msyavuz merged PR #43555:
URL: https://github.com/apache/superset/pull/43555
--
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-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(dashboard): keep the chart menu usable in fullscreen on production builds [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #43555:
URL: https://github.com/apache/superset/pull/43555#issuecomment-5454424916
**Bito Automatic Review Skipped – PR Already Merged**<br/><br/>Bito scheduled an automatic review for this pull request, but the review was skipped because this PR was merged before the review could be run.<br/>No action is needed if you didn't intend to review it. To get a review, you can type `/review` in a comment and save it
--
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-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(dashboard): keep the chart menu usable in fullscreen on production builds [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #43555:
URL: https://github.com/apache/superset/pull/43555#issuecomment-5427212078
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
--
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-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(dashboard): keep the chart menu usable in fullscreen on production builds [superset]
Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #43555:
URL: https://github.com/apache/superset/pull/43555#issuecomment-5427365671
## [Codecov](https://app.codecov.io/gh/apache/superset/pull/43555?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:x: Patch coverage is `80.00000%` with `1 line` in your changes missing coverage. Please review.
:white_check_mark: Project coverage is 78.85%. Comparing base ([`c3ed8b3`](https://app.codecov.io/gh/apache/superset/commit/c3ed8b312d5428d9577ecc5d026c611874e2b4a5?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`63d607e`](https://app.codecov.io/gh/apache/superset/commit/63d607ee8497e269305d2b53835cf8c42049d693?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
:warning: Report is 80 commits behind head on master.
| [Files with missing lines](https://app.codecov.io/gh/apache/superset/pull/43555?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Patch % | Lines |
|---|---|---|
| [...ponents/gridComponents/ChartHolder/ChartHolder.tsx](https://app.codecov.io/gh/apache/superset/pull/43555?src=pr&el=tree&filepath=superset-frontend%2Fsrc%2Fdashboard%2Fcomponents%2FgridComponents%2FChartHolder%2FChartHolder.tsx&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2Rhc2hib2FyZC9jb21wb25lbnRzL2dyaWRDb21wb25lbnRzL0NoYXJ0SG9sZGVyL0NoYXJ0SG9sZGVyLnRzeA==) | 80.00% | [1 Missing :warning: ](https://app.codecov.io/gh/apache/superset/pull/43555?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## master #43555 +/- ##
==========================================
- Coverage 78.86% 78.85% -0.01%
==========================================
Files 2876 2876
Lines 164601 164602 +1
Branches 38015 38015
==========================================
- Hits 129806 129802 -4
- Misses 32348 32353 +5
Partials 2447 2447
```
| [Flag](https://app.codecov.io/gh/apache/superset/pull/43555/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
|---|---|---|
| [javascript](https://app.codecov.io/gh/apache/superset/pull/43555/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `74.21% <80.00%> (-0.01%)` | :arrow_down: |
Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
</details>
[:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/superset/pull/43555?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<details><summary> :rocket: New features to boost your workflow: </summary>
- :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
- :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
</details>
--
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-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(dashboard): keep the chart menu usable in fullscreen on production builds [superset]
Posted by "netlify[bot] (via GitHub)" <gi...@apache.org>.
netlify[bot] commented on PR #43555:
URL: https://github.com/apache/superset/pull/43555#issuecomment-5427248881
### <span aria-hidden="true">✅</span> Deploy Preview for *superset-docs-preview* ready!
| Name | Link |
|:-:|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 63d607ee8497e269305d2b53835cf8c42049d693 |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://app.netlify.com/projects/superset-docs-preview/deploys/6a8eff39cc10d10008cba3eb |
|<span aria-hidden="true">😎</span> Deploy Preview | [https://deploy-preview-43555--superset-docs-preview.netlify.app](https://deploy-preview-43555--superset-docs-preview.netlify.app) |
|<span aria-hidden="true">📱</span> Preview on mobile | <details><summary> Toggle QR Code... </summary><br /><br /><br /><br />_Use your smartphone camera to open QR code link._</details> |
|<span aria-hidden="true">🤖</span> Make changes | [Run an agent on this branch](https://app.netlify.com/projects/superset-docs-preview/agent-runs#DctRCsMgDADQu-R7oZbC6HaDHSMmkRbUisaxbuzu9e_9vB-UeqRi8AS4ga-UeRtO7aR3_05h_0yhx9i4qmbkjaph0txxNEEhIzRtNq5oicf5krHvtGoIy4N5djI751b2tKiH_wU) |
---
<!-- [superset-docs-preview Preview](https://deploy-preview-43555--superset-docs-preview.netlify.app) -->
_To edit notification comments on pull requests, go to your [Netlify project configuration](https://app.netlify.com/projects/superset-docs-preview/configuration/notifications#deploy-notifications)._
--
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-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org