Skip to content

style(explore): normalize typography in widget settings panels - #36781

Closed
manojshetty2004 wants to merge 10 commits into
apache:masterfrom
manojshetty2004:style/widget-settings-typography
Closed

manojshetty2004 wants to merge 10 commits into
apache:masterfrom
manojshetty2004:style/widget-settings-typography

Conversation

@manojshetty2004

@manojshetty2004 manojshetty2004 commented Dec 21, 2025 •

Copy link
Copy Markdown
Contributor

User description

SUMMARY

Normalizes typography in widget settings/sidebar panels to improve visual hierarchy and readability.

Inner sub-section titles previously relied on varying font weights, which created visual noise. This change uses a single, consistent font weight and spacing to establish hierarchy more clearly, without altering layout or behavior.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

N/A

TESTING INSTRUCTIONS

  1. Open Explore view.
  2. Open widget settings / sidebar panels.
  3. Verify that inner sub-section titles use a consistent font weight.
  4. Confirm improved readability and spacing without layout changes.

ADDITIONAL INFORMATION


CodeAnt-AI Description

Increase spacing under subsection headers in widget settings panels

What Changed

  • Subsection headers in widget settings/sidebar panels now have larger bottom spacing (double the previous gap), improving the separation between header and controls
  • Retains existing font size and strong weight so layout and behavior are unchanged aside from spacing

Impact

✅ Clearer section separation in widget settings
✅ Improved readability of settings panels
✅ Consistent typography hierarchy

💡 Usage Guide

Checking Your Pull Request

Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

Talking to CodeAnt AI

Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

Preserve Org Learnings with CodeAnt

You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

Check Your Repository Health

To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

@bito-code-review

bito-code-review Bot commented Dec 21, 2025 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #c58012

Actionable Suggestions - 0
Additional Suggestions - 2
  • superset-frontend/packages/superset-ui-chart-controls/src/components/ControlSubSectionHeader.tsx - 2
    • Theme Migration · Line 23-23
      Theme property migration from fontWeightStrong to typography.weights.medium follows AGENTS.md guidelines to prefer antd theming tokens over legacy ones.
    • Theme Migration · Line 24-24
      Theme property migration from sizeUnit to gridUnit * 2 follows AGENTS.md guidelines to prefer antd theming tokens over legacy ones.
Review Details
  • Files reviewed - 1 · Commit Range: 4a2e9fe..4a2e9fe
    • superset-frontend/packages/superset-ui-chart-controls/src/components/ControlSubSectionHeader.tsx
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

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 documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@dosubot dosubot Bot added the explore:design Related to the Explore UI/UX label Dec 21, 2025
@codeant-ai-for-open-source

Copy link
Copy Markdown
Contributor

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 ·
Reddit ·
LinkedIn

@codeant-ai-for-open-source codeant-ai-for-open-source Bot added the size:XS This PR changes 0-9 lines, ignoring generated files label Dec 21, 2025
@codeant-ai-for-open-source

Copy link
Copy Markdown
Contributor

Nitpicks 🔍

🔒 No security issues identified
⚡ Recommended areas for review

  • Theme token mismatch
    The code now references theme.typography.weights.medium which may not exist in all theme shapes used across the repo (previously theme.fontWeightStrong was used). If the theme object doesn't include this path, the runtime value could be undefined and styling may break or regress. Verify the theme API and consider providing a safe fallback.

  • Spacing token consistency
    The change uses theme.gridUnit * 2 for margin-bottom while older code used theme.sizeUnit. Ensure using gridUnit is intentionally consistent across the codebase/themes to avoid spacing regressions in other components or themes that expect sizeUnit. Consider a fallback or centralize spacing tokens.

@codeant-ai-for-open-source

Copy link
Copy Markdown
Contributor

CodeAnt AI finished reviewing your PR.

@sadpandajoe

Copy link
Copy Markdown
Member

@manojshetty2004 can you add before and after screenshots to your PR?

@manojshetty2004

Copy link
Copy Markdown
Contributor Author

@sadpandajoe

I’ve added before/after screenshots based on the code diff. I ran into local environment limitations while trying to run Superset in Codespaces (Docker isn’t available there), and will be happy to add UI screenshots if needed. Let me know if the diff screenshots are sufficient.

Before

Screenshot 2026-01-08 152116

After

Screenshot 2026-01-08 152146

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR attempts to normalize typography in widget settings/sidebar panels by standardizing font weights and spacing for sub-section headers. The changes replace theme.fontWeightStrong with theme.typography.weights.medium and theme.sizeUnit with theme.gridUnit * 2.

@codeant-ai-for-open-source codeant-ai-for-open-source Bot added size:XS This PR changes 0-9 lines, ignoring generated files and removed size:XS This PR changes 0-9 lines, ignoring generated files labels Mar 11, 2026
@codeant-ai-for-open-source

Copy link
Copy Markdown
Contributor

Sequence Diagram

This PR updates the styled ControlSubSectionHeader used in Explore widget settings so subsection titles use a medium font weight and increased bottom spacing for clearer visual hierarchy without changing functional behavior.

sequenceDiagram
    participant User
    participant ExploreUI as Explore UI
    participant Theme

    User->>ExploreUI: Open widget settings panel
    ExploreUI->>Theme: Request subsection header styles
    Theme-->>ExploreUI: Return medium weight and increased margin
    ExploreUI-->>User: Render panel with normalized subsection titles
Loading

Generated by CodeAnt AI

@manojshetty2004

manojshetty2004 commented Mar 11, 2026 •

Copy link
Copy Markdown
Contributor Author

Hi @sadpandajoe , I've addressed the CI failures and pushed the fixes. The checks are currently running. Please let me know if any further changes are needed. Looking forward to your feedback when convenient. Thanks!

@github-actions github-actions Bot added plugins dependencies:npm github_actions Pull requests that update GitHub Actions code labels Mar 12, 2026
@codecov

codecov Bot commented Mar 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.54%. Comparing base (7c4f876) to head (c81576e).

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #36781   +/-   ##
=======================================
  Coverage   64.54%   64.54%           
=======================================
  Files        2565     2565           
  Lines      133665   133663    -2     
  Branches    31056    31055    -1     
=======================================
  Hits        86269    86269           
+ Misses      45904    45902    -2     
  Partials     1492     1492           
Flag Coverage Δ
javascript 66.53% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@codeant-ai-for-open-source codeant-ai-for-open-source Bot added size:XXL This PR changes 1000+ lines, ignoring generated files and removed size:XS This PR changes 0-9 lines, ignoring generated files labels Mar 12, 2026
@codeant-ai-for-open-source

Copy link
Copy Markdown
Contributor

Sequence Diagram

This PR standardizes how subsection titles are styled in Explore widget settings and sidebar panels. It routes subsection headers through a single shared style so titles render with consistent medium weight and spacing, improving readability without changing behavior.

sequenceDiagram
    participant User
    participant Explore UI
    participant Settings Panel
    participant Shared Header Style

    User->>Explore UI: Open widget settings sidebar
    Explore UI->>Settings Panel: Render section and subsection headers
    Settings Panel->>Shared Header Style: Apply normalized header typography
    Shared Header Style-->>Settings Panel: Medium weight and consistent spacing
    Settings Panel-->>User: Show cleaner and consistent hierarchy
Loading

Generated by CodeAnt AI

@github-actions github-actions Bot removed doc Namespace | Anything related to documentation embedded plugins dependencies:npm github_actions Pull requests that update GitHub Actions code labels Mar 12, 2026
@codeant-ai-for-open-source codeant-ai-for-open-source Bot added size:XS This PR changes 0-9 lines, ignoring generated files and removed size:XXL This PR changes 1000+ lines, ignoring generated files labels Mar 12, 2026
@codeant-ai-for-open-source

Copy link
Copy Markdown
Contributor

Sequence Diagram

This PR adjusts the subsection header styling used in Explore widget settings panels by increasing bottom spacing while keeping typography tokens consistent. The core flow remains the same, but rendered headers now show clearer visual separation for improved readability.

sequenceDiagram
    participant User
    participant ExplorePanel
    participant SubSectionHeader
    participant Theme

    User->>ExplorePanel: Open widget settings panel
    ExplorePanel->>SubSectionHeader: Render subsection title
    SubSectionHeader->>Theme: Resolve typography style tokens
    Theme-->>SubSectionHeader: Return same weight and size with larger bottom spacing
    SubSectionHeader-->>User: Show clearer subsection hierarchy
Loading

Generated by CodeAnt AI

@manojshetty2004

Copy link
Copy Markdown
Contributor Author

Hi , just checking in — is there any feedback or changes needed from my side? Happy to update this PR.

@rusackas

Copy link
Copy Markdown
Member

@manojshetty2004 thanks for the ping! The branch has drifted and now has merge conflicts with master — could you rebase onto the latest master and resolve them? Once that's done and CI is green I'll take another look. Also, the current diff is just a one-line margin-bottom bump; the typography-weight changes mentioned in the title/description appear to have been reverted along the way, so it'd be worth either updating the PR title/description to reflect the narrower scope or re-introducing the weight change if that was the original intent.

@manojshetty2004

Copy link
Copy Markdown
Contributor Author

@rusackas Rebased onto latest master and resolved conflicts. Ready for another look

@rusackas

Copy link
Copy Markdown
Member

Thanks for rebasing! Heads up though — looking at the PR after the rebase, the diff is now empty (0 additions / 0 deletions / 0 changed files across 10 commits). It looks like the conflict resolution dropped the original ControlSubSectionHeader.tsx change rather than keeping it. Could you either re-apply the typography/spacing change on top of master, or close this PR if the change is no longer needed? Happy to take another look once there's something to review.

@manojshetty2004

Copy link
Copy Markdown
Contributor Author

@rusackas Thanks for pointing that out! It looks like the original change was dropped during conflict resolution and the current diff is empty. Given the scope is minimal, I’ll go ahead and close this PR. Appreciate the review and guidance.

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

Labels

explore:design Related to the Explore UI/UX packages size/XS size:XS This PR changes 0-9 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve typography hierarchy and consistency in explore panel

5 participants