-
Notifications
You must be signed in to change notification settings - Fork 14.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(charts): add subtitle option and metric customization controls #32975
base: master
Are you sure you want to change the base?
Conversation
Based on your review schedule, I'll hold off on reviewing this PR until it's marked as ready for review. If you'd like me to take a look now, comment
|
04cbbcf
to
dddd052
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review by Korbit AI
Korbit automatically attempts to detect when you fix issues in new commits.
Category | Issue | Status |
---|---|---|
Unexplained Magic Number in Styles ▹ view | 🧠 Not in standard | |
Unsafe DOM cleanup in renderSubtitle ▹ view | ✅ Fix detected | |
Inconsistent Debounce Delays ▹ view |
Files scanned
File Path | Reviewed |
---|---|
superset-frontend/src/explore/components/controls/ColumnConfigControl/types.ts | ✅ |
superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberPeriodOverPeriod/types.ts | ✅ |
superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/types.ts | ✅ |
superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberTotal/transformProps.ts | ✅ |
superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/sharedControls.ts | ✅ |
superset-frontend/plugins/plugin-chart-table/src/types.ts | ✅ |
superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberTotal/controlPanel.ts | ✅ |
superset-frontend/src/explore/components/controls/ColumnConfigControl/ColumnConfigItem.tsx | ✅ |
superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberPeriodOverPeriod/controlPanel.ts | ✅ |
superset-frontend/src/explore/components/controls/ColumnConfigControl/ColumnConfigControl.tsx | ✅ |
superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberPeriodOverPeriod/transformProps.ts | ✅ |
superset-frontend/src/explore/components/controls/ColumnConfigControl/constants.tsx | ✅ |
superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberWithTrendline/transformProps.ts | ✅ |
superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberWithTrendline/controlPanel.tsx | ✅ |
superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberViz.tsx | ✅ |
superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberPeriodOverPeriod/PopKPI.tsx | ✅ |
superset-frontend/plugins/plugin-chart-table/src/transformProps.ts | ✅ |
superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx | ✅ |
Explore our documentation to understand the languages and file types we support and the files we ignore.
Need a new review? Comment
/korbit-review
on this PR and I'll review your latest changes.Korbit Guide: Usage and Customization
Interacting with Korbit
- You can manually ask Korbit to review your PR using the
/korbit-review
command in a comment at the root of your PR.- You can ask Korbit to generate a new PR description using the
/korbit-generate-pr-description
command in any comment on your PR.- Too many Korbit comments? I can resolve all my comment threads if you use the
/korbit-resolve
command in any comment on your PR.- On any given comment that Korbit raises on your pull request, you can have a discussion with Korbit by replying to the comment.
- Help train Korbit to improve your reviews by giving a 👍 or 👎 on the comments Korbit posts.
Customizing Korbit
- Check out our docs on how you can make Korbit work best for you and your team.
- Customize Korbit for your organization through the Korbit Console.
Feedback and Support
superset-frontend/src/explore/components/controls/ColumnConfigControl/constants.tsx
Show resolved
Hide resolved
const SubtitleText = styled.div` | ||
${({ theme }) => ` | ||
font-family: ${theme.typography.families.sansSerif}; | ||
font-weight: ${theme.typography.weights.medium}; | ||
text-align: center; | ||
margin-top: -10px; | ||
margin-bottom: ${theme.gridUnit * 4}px; | ||
`} | ||
`; |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberViz.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some first-pass comments. This seems great so far!
superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberViz.tsx
Outdated
Show resolved
Hide resolved
superset-frontend/src/explore/components/controls/ColumnConfigControl/ColumnConfigItem.tsx
Outdated
Show resolved
Hide resolved
superset-frontend/src/explore/components/controls/ColumnConfigControl/ColumnConfigItem.tsx
Outdated
Show resolved
Hide resolved
@geido Processing your ephemeral environment request here. Action: up. More information on how to use or configure ephemeral environments |
@geido Ephemeral environment spinning up at http://34.222.109.82:8080. Credentials are 'admin'/'admin'. Please allow several minutes for bootstrapping and startup. |
@LevisNgigi Thanks for the contribution, it's looking good! 1 more thing - I think that the metric item is unnecessarily indented in the Customize columns control (see on the recording). Screen.Recording.2025-04-09.at.13.49.11.mov |
Oh and 1 more thing, not sure if related to your PR - the changes in Customize columns applied to the columns generated by time comparison (e.g. # count__1 month ago) have no effect on the table |
superset-frontend/src/explore/components/controls/ColumnConfigControl/ColumnConfigControl.tsx
Outdated
Show resolved
Hide resolved
superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx
Outdated
Show resolved
Hide resolved
superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx
Outdated
Show resolved
Hide resolved
superset-frontend/src/explore/components/controls/ColumnConfigControl/ColumnConfigItem.tsx
Outdated
Show resolved
Hide resolved
@kgabryje About the not user friendly being displayed, I fixed that in my last commit such that if label is left empty(unchecked) and no custom column name,column name remains empty(as suggested in design) instead of displaying metric name. |
@geido Processing your ephemeral environment request here. Action: up. More information on how to use or configure ephemeral environments |
@geido Ephemeral environment spinning up at http://18.246.212.242:8080. Credentials are 'admin'/'admin'. Please allow several minutes for bootstrapping and startup. |
feat(charts): add subtitle option and metric customization controls
SUMMARY
This PR adds two key improvements to visualization controls:
Added subtitle functionality to big number charts visualizations.Moved subheader input previously in BigNumber to subtitle under customize tab.
Enhanced the explore view with controls that allow users to:
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
metric_rename.mp4
TESTING INSTRUCTIONS
Big Number with Trendline:
**Big Number **:
Big Number with Time Comparisons (requires CHART_PLUGINS_EXPERIMENTAL flag):
Metric Customization:
ADDITIONAL INFORMATION