Skip to content

Conversation

@Viseghoh
Copy link
Collaborator

Summary

  1. Auto-Add Confidence Key Columns for 508 Compliance
  2. 508 Compliance Warning for CI Columns
  3. Enhanced Alert Component

@Viseghoh Viseghoh requested review from adamdoe and Copilot December 18, 2025 23:27
Copy link
Contributor

Copilot AI left a 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.

Comment on lines +843 to +859
[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
}
Copy link

Copilot AI Dec 18, 2025

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.

Copilot uses AI. Check for mistakes.
Copy link
Collaborator Author

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.

{type === 'danger' && <Icon display='warningCircle' size={iconSize} />}
{type === 'info' && <Icon display='info' size={iconSize} />}
<span dangerouslySetInnerHTML={sanitizedData()} />
<span dangerouslySetInnerHTML={sanitizedData()} style={fontSize ? { fontSize } : undefined} />
Copy link
Collaborator

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.

Copy link
Collaborator

@adamdoe adamdoe left a 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!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants