You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "eschutho (via GitHub)" <gi...@apache.org> on 2026/01/20 19:03:57 UTC
[PR] feat(dashboard): show applied filters in chart title tooltip [superset]
eschutho opened a new pull request, #37293:
URL: https://github.com/apache/superset/pull/37293
## Summary
- When a chart title is truncated (overflows), the tooltip now displays filter information
- Shows count of filters applied to the chart and list of each filter with name, column, and value
- Adds new `useAppliedFilterIndicators` hook for reusable filter indicator logic
## Test plan
- [ ] Navigate to a dashboard with charts that have long titles (truncated)
- [ ] Apply filters to the dashboard
- [ ] Hover over a truncated chart title
- [ ] Verify the tooltip shows the filter count and list of applied filters
๐ค Generated with [Claude Code](https://claude.com/claude-code)
--
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] feat(dashboard): show applied filters in chart title tooltip [superset]
Posted by "codeant-ai-for-open-source[bot] (via GitHub)" <gi...@apache.org>.
codeant-ai-for-open-source[bot] commented on PR #37293:
URL: https://github.com/apache/superset/pull/37293#issuecomment-3786075936
## **Sequence Diagram**
When a chart title is truncated, the SliceHeader queries the new hook for applied filter indicators and augments the tooltip with a filter count and list so users can see which filters affect the chart.
```mermaid
sequenceDiagram
participant User
participant SliceHeader
participant useAppliedFilterIndicators
participant ReduxStore
participant Tooltip
User->>SliceHeader: Hover over truncated chart title
SliceHeader->>useAppliedFilterIndicators: Request applied indicators for slice_id
useAppliedFilterIndicators->>ReduxStore: Select dashboard/native filters, dataMask, chart state
ReduxStore-->>useAppliedFilterIndicators: Applied indicators + count
useAppliedFilterIndicators-->>SliceHeader: Return filterCount and list
SliceHeader->>Tooltip: Build tooltip (title + "N filter(s) applied" + filter list)
Tooltip-->>User: Show enhanced tooltip
```
---
*Generated by [CodeAnt AI](https://codeant.ai)*
--
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] feat(dashboard): show applied filters in chart title tooltip [superset]
Posted by "codeant-ai-for-open-source[bot] (via GitHub)" <gi...@apache.org>.
codeant-ai-for-open-source[bot] commented on PR #37293:
URL: https://github.com/apache/superset/pull/37293#issuecomment-3774513628
CodeAnt AI finished reviewing your 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] feat(dashboard): show applied filters in chart title tooltip [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on PR #37293:
URL: https://github.com/apache/superset/pull/37293#issuecomment-4605754151
@eschutho do you still want to keep this open? It hit my stale drafts radar.
--
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] feat(dashboard): show applied filters in chart title tooltip [superset]
Posted by "netlify[bot] (via GitHub)" <gi...@apache.org>.
netlify[bot] commented on PR #37293:
URL: https://github.com/apache/superset/pull/37293#issuecomment-3774505744
### <span aria-hidden="true">โ
</span> Deploy Preview for *superset-docs-preview* ready!
| Name | Link |
|:-:|------------------------|
|<span aria-hidden="true">๐จ</span> Latest commit | cb94c87751bc972906d01fd5bcdff3663473493b |
|<span aria-hidden="true">๐</span> Latest deploy log | https://app.netlify.com/projects/superset-docs-preview/deploys/696fd19f8b858d0008ee5faa |
|<span aria-hidden="true">๐</span> Deploy Preview | [https://deploy-preview-37293--superset-docs-preview.netlify.app](https://deploy-preview-37293--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> |
---
<!-- [superset-docs-preview Preview](https://deploy-preview-37293--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
Re: [PR] feat(dashboard): show applied filters in chart title tooltip [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas closed pull request #37293: feat(dashboard): show applied filters in chart title tooltip
URL: https://github.com/apache/superset/pull/37293
--
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] feat(dashboard): show applied filters in chart title tooltip [superset]
Posted by "codeant-ai-for-open-source[bot] (via GitHub)" <gi...@apache.org>.
codeant-ai-for-open-source[bot] commented on PR #37293:
URL: https://github.com/apache/superset/pull/37293#issuecomment-3774488359
CodeAnt AI is reviewing your PR.
---
### Thanks for using CodeAnt! ๐
We're free for open-source projects. if you're enjoying it, help us grow by sharing.
[Share on X](https://twitter.com/intent/tweet?text=Just%20tried%20%40CodeAntAI%20for%20automated%20code%20review%20and%20I%27m%20impressed%21%20Free%20for%20open%20source%20with%20a%20free%20trial%20for%20private%20repos.%20Worth%20checking%20out%3A&url=https%3A//codeant.ai) ยท
[Reddit](https://www.reddit.com/submit?title=Check%20out%20CodeAnt%20for%20automated%20code%20review&text=Just%20tried%20CodeAnt%20for%20automated%20code%20review%20and%20I%27m%20impressed%21%20Free%20for%20open%20source%20with%20a%20free%20trial%20for%20private%20repos.%20Worth%20checking%20out%3A%20https%3A//codeant.ai) ยท
[LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcodeant.ai&mini=true&title=Check%20out%20CodeAnt%20for%20automated%20code%20review&summary=Just%20tried%20CodeAnt%20for%20automated%20code%20review%20and%20I%27m%20impressed%21%20Free%20for%20open%20source%20with%20a%20free%20trial%20for%20private%20repos)
--
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] feat(dashboard): show applied filters in chart title tooltip [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #37293:
URL: https://github.com/apache/superset/pull/37293#issuecomment-3774488648
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] feat(dashboard): show applied filters in chart title tooltip [superset]
Posted by "codeant-ai-for-open-source[bot] (via GitHub)" <gi...@apache.org>.
codeant-ai-for-open-source[bot] commented on code in PR #37293:
URL: https://github.com/apache/superset/pull/37293#discussion_r2709731820
##########
superset-frontend/packages/superset-ui-core/src/components/Label/index.tsx:
##########
@@ -37,7 +37,7 @@ export function Label(props: LabelProps) {
...rest
} = props;
- const baseColor = themeObject.getColorVariants(type);
+ const baseColor = getColorVariants(theme, type);
Review Comment:
**Suggestion:** The label now directly passes `type` into `getColorVariants`, but elsewhere in the app `type` is sometimes set to unsupported values like `'danger'` (cast to the `LabelType` union), which makes `getColorVariants` look up non-existent theme keys such as `colorDangerActive` and returns `undefined` colors, resulting in broken or invisible label styling; normalize unsupported variants (e.g., map `'danger'` to `'error'`) before calling `getColorVariants`. [logic error]
<details>
<summary><b>Severity Level:</b> Critical ๐จ</summary>
```mdx
- โ Many pages render labels with wrong styling (visual regressions).
- โ ๏ธ Affects AnnotationLayerList label displays (src/pages/AnnotationLayerList).
- โ ๏ธ Affects DatasetList label displays (src/pages/DatasetList).
- โ ๏ธ Affects RowLevelSecurityList label displays (src/pages/RowLevelSecurityList).
- โ ๏ธ Multiple other list pages using 'danger' labels.
```
</details>
```suggestion
const baseColor = getColorVariants(
theme,
(type as string) === 'danger' ? 'error' : type,
);
```
<details>
<summary><b>Steps of Reproduction โ
</b></summary>
```mdx
1. Open a page that renders Label with type 'danger' (example: file
superset-frontend/src/pages/AnnotationLayerList/index.tsx line 334 where an object uses
type: 'danger' โ discovered via Grep).
2. That page renders the Label component exported from
packages/superset-ui-core/src/components/Label/index.tsx (Label definition located at
packages/superset-ui-core/src/components/Label/index.tsx:26 per Grep).
3. At runtime Label receives props.type === 'danger' and executes the line
packages/superset-ui-core/src/components/Label/index.tsx:40 which calls
getColorVariants(theme, type).
4. Grep across the repo shows many call sites passing literal 'danger' (pages such as
src/pages/AnnotationLayerList/index.tsx:334,
src/pages/RowLevelSecurityList/index.tsx:344,
src/pages/DatasetList/index.tsx:893, etc.). When 'danger' is passed, getColorVariants
looks up theme keys for that variant; because the theme uses 'error' variant names, the
lookup can return undefined fields (baseColor.active / .border / .bg).
5. The Label then assigns color = baseColor.active (packages/.../Label/index.tsx:41). If
baseColor.active is undefined the rendered CSS gets undefined values and the label styling
appears broken or inconsistent in the browser (visual regression on the referenced pages).
6. Reproducing locally: run the app, navigate to any of the pages listed (e.g.
AnnotationLayerList), inspect a rendered Label whose type prop is 'danger' and verify
computed CSS color / background-color are missing or incorrect, confirming the unresolved
variant lookup.
7. Reasoning: Grep evidence shows widespread usage of 'danger' as a Label type.
Normalizing or mapping unsupported variants prior to calling getColorVariants avoids
undefined lookups. If this suggestion is ignored, many existing pages using 'danger' will
continue to risk broken/inconsistent label styling.
```
</details>
<details>
<summary><b>Prompt for AI Agent ๐ค </b></summary>
```mdx
This is a comment left during a code review.
**Path:** superset-frontend/packages/superset-ui-core/src/components/Label/index.tsx
**Line:** 40:40
**Comment:**
*Logic Error: The label now directly passes `type` into `getColorVariants`, but elsewhere in the app `type` is sometimes set to unsupported values like `'danger'` (cast to the `LabelType` union), which makes `getColorVariants` look up non-existent theme keys such as `colorDangerActive` and returns `undefined` colors, resulting in broken or invisible label styling; normalize unsupported variants (e.g., map `'danger'` to `'error'`) before calling `getColorVariants`.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
```
</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] feat(dashboard): show applied filters in chart title tooltip [superset]
Posted by "codeant-ai-for-open-source[bot] (via GitHub)" <gi...@apache.org>.
codeant-ai-for-open-source[bot] commented on PR #37293:
URL: https://github.com/apache/superset/pull/37293#issuecomment-3774493887
## **Sequence Diagram**
When a chart title is truncated, hovering shows a tooltip that queries applied dashboard filters (via a new useAppliedFilterIndicators hook) and displays the filters count and list. This diagram captures the main success path added by the PR.
```mermaid
sequenceDiagram
participant User
participant ChartTitle
participant useAppliedFilterIndicators
participant DashboardStore
participant Tooltip
User->>ChartTitle: Hover truncated title
ChartTitle->>useAppliedFilterIndicators: Request applied filter indicators
useAppliedFilterIndicators->>DashboardStore: Read active dashboard filters
DashboardStore-->>useAppliedFilterIndicators: Applied filters (count + details)
useAppliedFilterIndicators-->>ChartTitle: Return filter count & list
ChartTitle->>Tooltip: Render tooltip with filter count and filter list
Tooltip-->>User: Show tooltip (filter summary)
```
---
*Generated by [CodeAnt AI](https://codeant.ai)*
--
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] feat(dashboard): show applied filters in chart title tooltip [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #37293:
URL: https://github.com/apache/superset/pull/37293#issuecomment-3786343323
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
<details>
<summary>
Bito Usage Guide
</summary>
**Commands**
Type the following command in the pull request comment and save the comment.
- `/review` - Manually triggers a full AI review.
- `/pause` - Pauses automatic reviews on this pull request.
- `/resume` - Resumes automatic reviews.
- `/resolve` - Marks all Bito-posted review comments as resolved.
- `/abort` - Cancels all in-progress reviews.
Refer to the <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/available-commands" target="_blank" rel="noopener noreferrer">documentation</a> for additional commands.
**Configuration**
This repository uses `Superset` You can customize the agent settings <a href="https://alpha.bito.ai/home/ai-agents/code-review-agent" target="_blank" rel="noopener noreferrer">here</a> or contact your Bito workspace admin at evan@preset.io.
**Documentation & Help**
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/getting-started/install-run-using-bito-cloud/create-or-customize-an-agent-instance" target="_blank" rel="noopener noreferrer">Customize agent settings</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/implementing-custom-code-review-rules" target="_blank" rel="noopener noreferrer">Review rules</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent" target="_blank" rel="noopener noreferrer">General documentation</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/faqs" target="_blank" rel="noopener noreferrer">FAQ</a>
</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] feat(dashboard): show applied filters in chart title tooltip [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on PR #37293:
URL: https://github.com/apache/superset/pull/37293#issuecomment-4635873635
Closing for now to thin the herd... please reopen if you'd like!
--
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