Skip to content

Conversation

@pharret31
Copy link
Contributor

Cherry-pick of #32010

@pharret31 pharret31 self-assigned this Dec 23, 2025
@pharret31 pharret31 marked this pull request as ready for review December 23, 2025 17:14
@pharret31 pharret31 requested a review from a team as a code owner December 23, 2025 17:14
Copilot AI review requested due to automatic review settings December 23, 2025 17:14
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 addresses TypeScript issues and improves type safety in React demos for the Editors section (part 1). The changes upgrade the TypeScript lib configuration, add comprehensive type checking for editor demos, and improve code quality through better typing and modern React patterns.

Key Changes

  • Upgraded TypeScript lib from ES2020/ES2022 to ES2023 for better feature support
  • Added TypeScript checking for 12 demo categories (Editors, Autocomplete, Calendar, Chat, CheckBox, ColorBox, DateBox, DateRangeBox, DropDownBox, DropDownButton)
  • Refactored data exports from default exports with methods to named exports with explicit types
  • Converted class components to functional components with proper TypeScript typing
  • Separated type imports from value imports following best practices
  • Improved useCallback dependency arrays by removing redundant setState functions
  • Replaced React.Fragment with <> shorthand syntax

Reviewed changes

Copilot reviewed 65 out of 65 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
apps/demos/utils/ts-to-js-converter/converter.ts Updated TypeScript lib to ES2023
apps/demos/tsconfig.react-check.json Updated lib and added 28 new demo paths for type checking
apps/demos/Demos/DropDownButton/Overview/React/types.ts Added type definitions for ProfileSetting, Alignment, FontSize, LineHeight, TextAlign
apps/demos/Demos/DropDownButton/Overview/React/data.ts Converted to typed named exports
apps/demos/Demos/DropDownButton/Overview/React/ColorIcon.tsx Converted class to functional component with proper types
apps/demos/Demos/DropDownButton/Overview/React/App.tsx Added comprehensive type annotations and improved imports
apps/demos/Demos/DropDownBox/*/React/App.tsx Added type annotations and improved ref typing
apps/demos/Demos/DateRangeBox/*/React/App.tsx Added type annotations and fixed dependency arrays
apps/demos/Demos/DateBox/Overview/React/* Refactored data exports and added types
apps/demos/Demos/Common/PopupAndNotificationsOverview/React/* Added HouseType and improved type safety
apps/demos/Demos/Common/EditorsRightToLeftSupport/React/* Added EuropeanUnionCountries type
apps/demos/Demos/Common/EditorsOverview/React/* Refactored Logo class to functional component
apps/demos/Demos/Common/EditorAppearanceVariants/React/* Added EditorStyle and LabelMode types
apps/demos/Demos/Common/CustomTextEditorButtons/React/App.tsx Comprehensive type improvements for button handlers
apps/demos/Demos/ColorBox/Overview/React/App.tsx Separated type imports
apps/demos/Demos/CheckBox/Overview/React/App.tsx Separated type imports and added types
apps/demos/Demos/Chat//React/ Added comprehensive type annotations across all Chat demos
apps/demos/Demos/Calendar//React/ Added type annotations and improved CalendarTypes usage
apps/demos/Demos/Autocomplete/Overview/React/* Added type annotations for data and handlers

@pharret31 pharret31 merged commit 36a3d32 into DevExpress:26_1 Dec 24, 2025
122 of 124 checks passed
@pharret31 pharret31 deleted the 26_1_2978-cherry-pick-part-1 branch December 24, 2025 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants