Skip to content

Scheduler — Add hiddenDays option to hide arbitrary days of the week#33188

Merged
sjbur merged 66 commits intoDevExpress:26_1from
aleksei-semikozov:feature/scheduler-hidden-days-impl-26_1
Apr 16, 2026
Merged

Scheduler — Add hiddenDays option to hide arbitrary days of the week#33188
sjbur merged 66 commits intoDevExpress:26_1from
aleksei-semikozov:feature/scheduler-hidden-days-impl-26_1

Conversation

@aleksei-semikozov
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings April 15, 2026 12:18
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.

Copilot was unable to review this pull request because the user who requested the review is ineligible. To be eligible to request a review, you need a paid Copilot license, or your organization must enable Copilot code review.

@sjbur
Copy link
Copy Markdown
Contributor

sjbur commented Apr 15, 2026

Day view Bug

  $('#scheduler').dxScheduler({
    timeZone: 'America/Los_Angeles',
    dataSource: data,
    views: ['day', 'week', 'workWeek', 'month', {
      type: 'day',
      name: 'myday',
      intervalCount: 7,
    }],
    hiddenWeekDays: [0, 1, 2, 3, 4, 5],
    currentView: 'myday',
    currentDate: new Date(2021, 3, 29),
    startDayHour: 9,
    height: 730,
  });

Actual result: all week days are visible

Expected result: hidden week days shouldn't be visible

Looks like we forgot about this case during the spec writing 😔

I think during chat with the PM the feature support for day view was more like 'nice to have' rather than 'must have'. But I looked at the code and it was rather easy to implement it. I tested, works fine. Added necessary tests.

Copilot AI review requested due to automatic review settings April 15, 2026 12:39
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.

Copilot was unable to review this pull request because the user who requested the review is ineligible. To be eligible to request a review, you need a paid Copilot license, or your organization must enable Copilot code review.

Copilot AI review requested due to automatic review settings April 16, 2026 08:58
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.

Copilot was unable to review this pull request because the user who requested the review is ineligible. To be eligible to request a review, you need a paid Copilot license, or your organization must enable Copilot code review.

Copilot AI review requested due to automatic review settings April 16, 2026 10:09
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.

Copilot was unable to review this pull request because the user who requested the review is ineligible. To be eligible to request a review, you need a paid Copilot license, or your organization must enable Copilot code review.

Comment on lines +517 to +518
case 'skippedDays':
break;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how this option can be changed? Public option name is hiddenWeekDays

Copilot AI review requested due to automatic review settings April 16, 2026 12:13
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.

Copilot was unable to review this pull request because the user who requested the review is ineligible. To be eligible to request a review, you need a paid Copilot license, or your organization must enable Copilot code review.

switch (args.name) {
case 'currentView':
case 'views':
case 'hiddenWeekDays':
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's remove this, not relevant anymore

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

expect(getViews([input as RawViewType])).toEqual([{ ...output, skippedDays: [0, 6] }]);
});

describe('hiddenWeekDays', () => {
Copy link
Copy Markdown
Contributor

@Tucchhaa Tucchhaa Apr 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to move tests in this describe group to normalize_hidden_days.test.ts?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@sjbur sjbur requested a review from Tucchhaa April 16, 2026 13:03
@sjbur sjbur merged commit 8f03909 into DevExpress:26_1 Apr 16, 2026
103 checks passed
@aleksei-semikozov aleksei-semikozov deleted the feature/scheduler-hidden-days-impl-26_1 branch April 16, 2026 18:21
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.

5 participants