Skip to content

Conversation

@pharret31
Copy link
Contributor

No description provided.

…ements-in-demos-editors-part-1 Signed-off-by: Andrei Kharitonov <pharret31@gmail.com>
@pharret31 pharret31 marked this pull request as ready for review December 18, 2025 20:07
@pharret31 pharret31 requested a review from a team as a code owner December 18, 2025 20:07
Copilot AI review requested due to automatic review settings December 18, 2025 20:07
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 improves TypeScript typing and modernizes React patterns across multiple demo files for Editor components (part 1). The changes include adding proper type annotations, separating type imports from value imports, and refactoring components to use modern React syntax.

Key Changes:

  • Updated TypeScript lib from ES2022 to ES2023 and added 17 demo directories to type checking coverage
  • Added dedicated types.ts files for better type organization across multiple demos
  • Modernized React patterns: replaced React.FC with direct function components, replaced React.Fragment with <> syntax, converted class components to functional components

Reviewed changes

Copilot reviewed 43 out of 43 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
apps/demos/tsconfig.react-check.json Updated ES lib version and expanded TypeScript checking to include Editors demos
apps/demos/Demos/DropDownButton/Overview/React/types.ts Added type definitions for ProfileSetting, Alignment, FontSize, LineHeight, and TextAlign
apps/demos/Demos/DropDownButton/Overview/React/data.ts Refactored to export typed arrays directly instead of using service pattern
apps/demos/Demos/DropDownButton/Overview/React/DropDownButtonTemplate.tsx Modernized component structure with interface definitions and removed React.FC
apps/demos/Demos/DropDownButton/Overview/React/ColorIcon.tsx Converted class component to functional component with proper typing
apps/demos/Demos/DropDownButton/Overview/React/App.tsx Added comprehensive type annotations and separated type imports
apps/demos/Demos/DropDownBox/SingleSelection/React/App.tsx Added type annotations for state, refs, and callbacks
apps/demos/Demos/DropDownBox/MultipleSelection/React/App.tsx Added type annotations and improved ref typing
apps/demos/Demos/DateRangeBox/Overview/React/App.tsx Added type annotations and cleaned up dependency arrays
apps/demos/Demos/DateRangeBox/Formatting/React/App.tsx Added type annotations for component properties
apps/demos/Demos/DateBox/Overview/React/data.ts Refactored to export typed array directly
apps/demos/Demos/DateBox/Overview/React/App.tsx Added type annotations for state and callbacks
apps/demos/Demos/Common/PopupAndNotificationsOverview/React/types.ts Added HouseType interface definition
apps/demos/Demos/Common/PopupAndNotificationsOverview/React/data.ts Added type annotation for housesSource array
apps/demos/Demos/Common/PopupAndNotificationsOverview/React/House.tsx Replaced inline type definition with imported HouseType
apps/demos/Demos/Common/PopupAndNotificationsOverview/React/App.tsx Added type annotations and improved callback typing
apps/demos/Demos/Common/EditorsRightToLeftSupport/React/types.ts Added EuropeanUnionCountries type definition
apps/demos/Demos/Common/EditorsRightToLeftSupport/React/data.ts Added type annotation for europeanUnion array
apps/demos/Demos/Common/EditorsRightToLeftSupport/React/App.tsx Added type annotations and separated type imports
apps/demos/Demos/Common/EditorsOverview/React/Logo.tsx Converted class component to functional component with proper typing
apps/demos/Demos/Common/EditorsOverview/React/App.tsx Added type annotations throughout and replaced React.Fragment
apps/demos/Demos/Common/EditorAppearanceVariants/React/data.ts Added type annotations using imported DevExtreme types
apps/demos/Demos/Common/EditorAppearanceVariants/React/App.tsx Added type annotations and cleaned up dependency arrays
apps/demos/Demos/Common/CustomTextEditorButtons/React/App.tsx Added comprehensive type annotations for state and callbacks
apps/demos/Demos/ColorBox/Overview/React/App.tsx Added type annotations and separated type imports
apps/demos/Demos/CheckBox/Overview/React/App.tsx Added type annotations for state and callbacks
apps/demos/Demos/Chat/Overview/React/data.ts Added type annotations for functions and arrays
apps/demos/Demos/Chat/Overview/React/App.tsx Added type annotations and replaced React.Fragment
apps/demos/Demos/Chat/MessageEditing/React/data.ts Added type annotations for functions and arrays
apps/demos/Demos/Chat/MessageEditing/React/App.tsx Added comprehensive type annotations including custom types
apps/demos/Demos/Chat/FileAttachments/React/data.ts Changed import to type-only import
apps/demos/Demos/Chat/FileAttachments/React/App.tsx Added type annotations for ref and callbacks
apps/demos/Demos/Chat/Customization/React/data.ts Added type annotations using Format type
apps/demos/Demos/Chat/Customization/React/App.tsx Added type annotations for state and callbacks
apps/demos/Demos/Chat/AIAndChatbotIntegration/React/useApi.ts Added optional chaining for safety
apps/demos/Demos/Chat/AIAndChatbotIntegration/React/data.ts Changed import to type-only import
apps/demos/Demos/Chat/AIAndChatbotIntegration/React/Message.tsx Improved component typing and structure
apps/demos/Demos/Chat/AIAndChatbotIntegration/React/App.tsx Added type annotation for state
apps/demos/Demos/Calendar/Overview/React/CustomCell.tsx Added type annotations throughout component
apps/demos/Demos/Calendar/Overview/React/App.tsx Added comprehensive type annotations for state and callbacks
apps/demos/Demos/Calendar/MultipleSelection/React/App.tsx Added type annotations for state, refs, and callbacks
apps/demos/Demos/Autocomplete/Overview/React/data.ts Added type annotations for exported arrays
apps/demos/Demos/Autocomplete/Overview/React/App.tsx Added comprehensive type annotations including LoadOptions
…ke-ts-improvements-in-demos-editors-part-1' into 25_2_2978-fix-ts-problems-and-make-ts-improvements-in-demos-editors-part-1
Copilot AI review requested due to automatic review settings December 18, 2025 22: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

Copilot reviewed 64 out of 64 changed files in this pull request and generated 5 comments.

marker-dao
marker-dao previously approved these changes Dec 19, 2025
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

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

Copilot AI review requested due to automatic review settings December 19, 2025 16:51
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

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

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