Skip to content

Scheduler: refactor core files (TS) - Part 3#33883

Merged
bit-byte0 merged 4 commits into
DevExpress:26_1from
bit-byte0:refactor/scheduler-core-ts-part-3
Jun 8, 2026
Merged

Scheduler: refactor core files (TS) - Part 3#33883
bit-byte0 merged 4 commits into
DevExpress:26_1from
bit-byte0:refactor/scheduler-core-ts-part-3

Conversation

@bit-byte0
Copy link
Copy Markdown
Contributor

What

Renamed m_table_creator.tstable_creator.ts and added TypeScript types to enable strict ESLint/TS rules + updated all 4 consumer imports

How

Added interfaces (CellData, MakeTableOptions, GroupCssClasses, GroupedTableConfig, TableCell, GroupCell) and type aliases (TemplateCallback, TableRow, GroupCellRow). Fixed depth issues with optional chaining, conditional spread, and Object.assign. Eliminated all pre-existing eslint-disable comments

@bit-byte0 bit-byte0 self-assigned this Jun 7, 2026
Copilot AI review requested due to automatic review settings June 7, 2026 08:55
@bit-byte0 bit-byte0 requested a review from a team as a code owner June 7, 2026 08:55
@bit-byte0 bit-byte0 added the 26_1 label Jun 7, 2026
Copy link
Copy Markdown
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

Refactors the internal Scheduler table creator module by renaming m_table_creator.ts to table_creator.ts and introducing stronger TypeScript typing to support stricter ESLint/TS rules, with corresponding import updates across Scheduler workspaces and tests.

Changes:

  • Renamed the internal Scheduler table creator module and updated consumer imports.
  • Added TypeScript interfaces/type aliases for table/group row generation logic.
  • Adjusted Agenda group-header customization typings to align with the new table creator API.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/devextreme/testing/tests/DevExpress.ui.widgets.scheduler/tableCreator.tests.js Updates test import to the renamed internal module.
packages/devextreme/js/__internal/scheduler/workspaces/timeline.ts Switches workspace import to table_creator.
packages/devextreme/js/__internal/scheduler/workspaces/m_work_space.ts Switches workspace import to table_creator.
packages/devextreme/js/__internal/scheduler/workspaces/agenda.ts Switches import to table_creator and aligns groupCellCustomContent parameter types with the new TS typing.
packages/devextreme/js/__internal/scheduler/table_creator.ts New typed implementation replacing m_table_creator.ts.
packages/devextreme/js/__internal/scheduler/m_table_creator.ts Removes the old module implementation.

Comment thread packages/devextreme/js/__internal/scheduler/table_creator.ts
@bit-byte0 bit-byte0 force-pushed the refactor/scheduler-core-ts-part-3 branch from 4ad7819 to c9e76bf Compare June 8, 2026 07:11
Copilot AI review requested due to automatic review settings June 8, 2026 07:23
@bit-byte0 bit-byte0 force-pushed the refactor/scheduler-core-ts-part-3 branch from c9e76bf to 47f44e6 Compare June 8, 2026 07:23
Tucchhaa
Tucchhaa previously approved these changes Jun 8, 2026
Copy link
Copy Markdown
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 6 out of 6 changed files in this pull request and generated 2 comments.

Comment thread packages/devextreme/js/__internal/scheduler/table_creator.ts
Comment thread packages/devextreme/js/__internal/scheduler/table_creator.ts
Copilot AI review requested due to automatic review settings June 8, 2026 07:35
@bit-byte0 bit-byte0 force-pushed the refactor/scheduler-core-ts-part-3 branch from 02cc02e to 1d8f0ba Compare June 8, 2026 07:35
Copy link
Copy Markdown
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 6 out of 6 changed files in this pull request and generated 4 comments.

Comment thread packages/devextreme/js/__internal/scheduler/table_creator.ts
Comment thread packages/devextreme/js/__internal/scheduler/table_creator.ts
Comment thread packages/devextreme/js/__internal/scheduler/table_creator.ts
Comment thread packages/devextreme/js/__internal/scheduler/table_creator.ts
@bit-byte0 bit-byte0 merged commit 8b49dcc into DevExpress:26_1 Jun 8, 2026
107 of 108 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants