fix: improve alert visibility and styling in dataset components#584
Merged
Conversation
cristian-tamblay
approved these changes
Apr 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Improve alert visibility and enforce semantic color separation across the UI. Alert messages were visually indistinguishable from regular cards due to small icons, low background contrast, and a warning color nearly identical to the primary brand color. Additionally, alert colors (success, warning, error, info) were reused for unrelated purposes like data type chips, chart traces, and pie slices, diluting their meaning as status indicators. The retrain button was also changed to always use the primary color for consistency.
Type of Change
Check all that apply like this [x]:
Changes (by file)
DashAI/front/src/styles/theme.js: Change warning color from#f1ae61to#fbc02d(golden yellow) to differentiate from primary#ef9f27. UpdatedataTypecolors so they no longer overlap with alert colors (integer→ indigo,text→ caramel,boolean→ lime). Replacechart.train/chart.testwith dedicated values and add achart.palettearray for general-purpose chart coloring.DashAI/front/src/utils/index.js: Update hardcoded fallback colors forinteger,text, andbooleandata types to match the new theme values.DashAI/front/src/components/notebooks/dataset/QualityAlerts.jsx: Increase icon size fromsmall(~20px) to 24px, raise background opacity from ~3% to ~25%, and make the accordion border fully opaque.DashAI/front/src/components/models/modelSession/PrepareDatasetStep.jsx: Increase icon size to 24px, add solid 1px severity-colored border, raise background opacity to ~25%, and reorder alerts so the missing values warning appears before column validation.DashAI/front/src/components/notebooks/dataset/tabs/TextTab.jsx: Replacesuccess/info/warning/errorcolors for length statistics (min/median/avg/max) withchart.train/test/validation/primary.DashAI/front/src/components/notebooks/dataset/tabs/CategoricalTab.jsx: Replace pie chart slice colors withchart.paletteinstead of mixing alert and brand colors.DashAI/front/src/components/notebooks/dataset/tabs/CorrelationsTab.jsx: Replaceerror.main/success.mainin the correlation heatmap colorscale with dedicated soft red/green (#e57373/#81c784).DashAI/front/src/pages/results/constants/graphsMaking.jsx: Replace alert-color-based trace palette withchart.palettefrom the theme.DashAI/front/src/components/models/RunCard.jsx: Change retrain button from conditionalwarning/primarycolor to always useprimarycolor.