Skip to content

feat(explore-chart-panel): darken the color of vertical split for better recognizability - #38086

Open
hainenber wants to merge 7 commits into
masterfrom
feat/better-recognizability-for-explore-chart-panel-split
Open

hainenber wants to merge 7 commits into
masterfrom
feat/better-recognizability-for-explore-chart-panel-split

Conversation

@hainenber

Copy link
Copy Markdown
Contributor

feat(explore-chart-panel): darken the color of vertical split for better recognizability

SUMMARY

This should help users to find the vertical split to resize the explore panel in Charts page better. I have a whole white background and couldn't find it very easily, only knowing that it should be in the middle.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before
image

After
image

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@bito-code-review

bito-code-review Bot commented Feb 19, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #5c0c5f

Actionable Suggestions - 0
Review Details
  • Files reviewed - 1 · Commit Range: 9ab099a..9ab099a
    • superset-frontend/src/explore/components/ExploreChartPanel/index.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 evan@preset.io.

Documentation & Help

AI Code Review powered by Bito Logo

@dosubot dosubot Bot added the explore:design Related to the Explore UI/UX label Feb 19, 2026
@bito-code-review

bito-code-review Bot commented Feb 19, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #7f87f5

Actionable Suggestions - 0
Additional Suggestions - 1
  • superset-frontend/plugins/plugin-chart-echarts/test/Timeseries/transformProps.test.ts - 1
    • Missing Data Assertions in Test · Line 387-387
      The backward compatibility test verifies that a formula series is added but skips checks on its data property that are present in the first test. To ensure the annotation logic correctly populates data, add the missing assertions: expect(formulaSeries?.data).toBeDefined(); expect(Array.isArray(formulaSeries?.data)).toBe(true); expect((formulaSeries?.data as unknown[])?.length).toBeGreaterThan(0); before accessing the first data point.
Review Details
  • Files reviewed - 3 · Commit Range: 9ab099a..bbe438b
    • superset-frontend/plugins/plugin-chart-echarts/test/MixedTimeseries/transformProps.test.ts
    • superset-frontend/plugins/plugin-chart-echarts/test/Timeseries/transformProps.test.ts
    • superset-frontend/src/explore/components/ExploreChartPanel/index.tsx
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful
    • Eslint (Linter) - ✔︎ 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 evan@preset.io.

Documentation & Help

AI Code Review powered by Bito Logo

@alexandrusoare alexandrusoare 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.

Great job, to me it looks more readable now! @kasiazjc what do you think about this?

)?.find((s: SeriesOption) => s.name === 'My Formula');
expect(formulaSeries).toBeDefined();
const firstDataPoint = (formulaSeries?.data as [number, number][])[0];
const firstDataPoint = (formulaSeries?.data as [number, number][])?.[0];

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.

Why do we need to add this ? now? You only changed the blackness of the border colors

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It's to help with the failing CI since there was another phase ofoxlint rule enforcement

@bito-code-review

Copy link
Copy Markdown
Contributor

The ? adds optional chaining to prevent errors if formulaSeries.data is undefined. Without it, accessing .length or [0] on an undefined value would throw a TypeError. This makes the test more robust, likely due to potential undefined data in some scenarios.

@sadpandajoe
sadpandajoe requested a review from msyavuz March 2, 2026 18:30
Comment on lines +116 to +119
border-top: 1px solid
color-mix(in srgb, ${({ theme }) => theme.colorSplit}, black 15%);
border-bottom: 1px solid
color-mix(in srgb, ${({ theme }) => theme.colorSplit}, black 15%);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Per @alexandrusoare:

What happens when you have another theme config with colorSplit?

I think it looks better as a customizaiton but maybe we should change this in theme default instead

@rusackas

Copy link
Copy Markdown
Member

@hainenber thanks for this. Rather than color-mix-ing colorSplit with black, could we lean on an existing theme token (e.g. colorBorder) so the gutter still tracks the theme in dark mode? Happy to help resove the conflicts here if you'd like (probably my fault).

@apache apache deleted a comment from codeant-ai-for-open-source Bot Jun 28, 2026
@github-actions github-actions Bot added the requires:rebase Requires rebasing on top of current master label Aug 1, 2026
@rusackas

rusackas commented Sep 7, 2026

Copy link
Copy Markdown
Member

@hainenber circling back — did you get a chance to look at swapping the color-mix for a theme token like colorBorder? Also there's an open question from @msyavuz on whether this should be a customization or the antd theme default. Happy to help sort the rebase if you'd like once you're back on it.

@hainenber

Copy link
Copy Markdown
Contributor Author

I'll take a 2nd look in upcoming days 😁

…ter recognizability

Signed-off-by: hainenber <dotronghai96@gmail.com>
Signed-off-by: hainenber <dotronghai96@gmail.com>
@rusackas
rusackas force-pushed the feat/better-recognizability-for-explore-chart-panel-split branch from bbe438b to a113651 Compare October 13, 2026 17:01
@codeant-ai-for-open-source

codeant-ai-for-open-source Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

CodeAnt  CodeAnt PR Risk

🟢  Low Risk

  • The PR appears safe to merge; no actionable issues were identified in the review.

Assessed commit: 2066d71626f4

@github-actions github-actions Bot removed the plugins label Oct 13, 2026
@codecov

codecov Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 65.37%. Comparing base (fcfa730) to head (140a103).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #38086   +/-   ##
=======================================
  Coverage   65.36%   65.37%           
=======================================
  Files        3097     3097           
  Lines      213013   212994   -19     
  Branches    50262    50257    -5     
=======================================
- Hits       139244   139239    -5     
+ Misses      70561    70547   -14     
  Partials     3208     3208           
Flag Coverage Δ
javascript 81.82% <100.00%> (+<0.01%) ⬆️

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

☔ View full report in Codecov by Harness.
📢 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.

@github-actions github-actions Bot removed the requires:rebase Requires rebasing on top of current master label Oct 13, 2026

@rusackas rusackas left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Formalizing this as a review. Checked and nothing's changed since September (the two commits here are both from February; the bot's "Low Risk" note from last week was just a rescan, not a new push). My ask still stands: swap the color-mix(in srgb, colorSplit, black 15%) for an existing theme token like colorBorder instead, so the gutter still tracks dark mode correctly rather than hardcoding a black-mix that assumes a light-ish colorSplit to begin with. That's the same root concern msyavuz/alexandrusoare raised about custom theme configs.

Still happy to help sort it out, @hainenber, whenever you get back to it.

@hainenber

Copy link
Copy Markdown
Contributor Author

Fixed with theme.colorBorder in

Dark

Before

image

After

image

Light

Before

image

After

image

@hainenber
hainenber force-pushed the feat/better-recognizability-for-explore-chart-panel-split branch from cf1b81d to bc34416 Compare November 14, 2026 09:37
@github-actions github-actions Bot removed i18n Namespace | Anything related to localization risk:db-migration PRs that require a DB migration labels Nov 14, 2026

@rusackas rusackas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@hainenber LGTM! Thanks for switching to colorBorder in bc34416, and for the light/dark screenshots.

@msyavuz since it's a theme token now, each theme brings its own colorBorder. Does that cover your question about other theme configs?

This branch has not been deployed

No deployments
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 size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants