-
Notifications
You must be signed in to change notification settings - Fork 30
Update Alerts, Default Keys, Update Columns #2461
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
base: dev
Are you sure you want to change the base?
Conversation
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.
Pull request overview
This PR implements 508 compliance features for confidence interval columns by automatically adding them to tooltips and data tables, and warning users when trying to hide these required columns. Additionally, it enhances the Alert component to support custom font sizes.
- Auto-adds confidence key columns to tooltips and data table when selected
- Adds warning alert for confidence interval columns in the data table editor
- Enhances Alert component with customizable font size
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| packages/core/components/EditorPanel/ColumnsEditor.tsx | Adds 508 compliance warning alert when confidence interval columns are being configured |
| packages/core/components/Alert/components/Alert.tsx | Adds fontSize prop to Alert component for customizable text size |
| packages/chart/src/components/EditorPanel/EditorPanel.tsx | Auto-adds confidence key columns with default settings when selected, and formats legend position options |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| [columnName]: existingColumn | ||
| ? { ...existingColumn, dataTable: true, tooltips: true } | ||
| : { | ||
| name: columnName, | ||
| label: columnName, | ||
| dataTable: true, | ||
| tooltips: true, | ||
| prefix: '', | ||
| suffix: '', | ||
| forestPlot: false, | ||
| startingPoint: '0', | ||
| forestPlotAlignRight: false, | ||
| roundToPlace: 0, | ||
| commas: false, | ||
| showInViz: false, | ||
| forestPlotStartingPoint: 0 | ||
| } |
Copilot
AI
Dec 18, 2025
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.
The default column configuration object is duplicated in this code. Consider extracting it into a constant or factory function to avoid duplication and ensure consistency with other column creation logic in the codebase.
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.
@adamdoe was contemplating doing this.
Co-authored-by: Copilot <[email protected]>
| {type === 'danger' && <Icon display='warningCircle' size={iconSize} />} | ||
| {type === 'info' && <Icon display='info' size={iconSize} />} | ||
| <span dangerouslySetInnerHTML={sanitizedData()} /> | ||
| <span dangerouslySetInnerHTML={sanitizedData()} style={fontSize ? { fontSize } : undefined} /> |
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.
For standardization purposes, I would force the font size instead of making it a user configurable option.
adamdoe
left a comment
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.
One thing to address, the font size setting should either be removed or we should get feedback on it for standardization. Otherwise, this is looking great!
Summary