-
Notifications
You must be signed in to change notification settings - Fork 667
Scheduler: Encapsulate old view model and add collector tests #30861
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
3e60323
Scheduler: add collector screenshot tests
Ambrozy 641f329
add screenshots
Ambrozy effedd4
remove dependency of render strategy inside appointment collector
Ambrozy 6314c13
add jest tests
Ambrozy 8d2b4d0
add screenshots for month 2
Ambrozy 976e1d2
fix
Ambrozy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+6.35 KB
...r/common/layout/appointments/etalons/appointment-collector-day-0-rtl(false).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+11.7 KB
...r/common/layout/appointments/etalons/appointment-collector-day-2-rtl(false).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+27.8 KB
...ts/etalons/appointment-collector-day-adapt(false)-fluent.blue.light.compact.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+27 KB
...pointments/etalons/appointment-collector-day-adapt(false)-fluent.blue.light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+21.5 KB
...tments/etalons/appointment-collector-day-adapt(false)-generic.light.compact.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+22.2 KB
...t/appointments/etalons/appointment-collector-day-adapt(false)-generic.light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+22.7 KB
.../etalons/appointment-collector-day-adapt(false)-material.blue.light.compact.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+21.6 KB
...intments/etalons/appointment-collector-day-adapt(false)-material.blue.light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+29.9 KB
...nts/etalons/appointment-collector-day-adapt(true)-fluent.blue.light.compact.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+22.3 KB
...ppointments/etalons/appointment-collector-day-adapt(true)-fluent.blue.light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+23.9 KB
...ntments/etalons/appointment-collector-day-adapt(true)-generic.light.compact.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+19 KB
...ut/appointments/etalons/appointment-collector-day-adapt(true)-generic.light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+30 KB
...s/etalons/appointment-collector-day-adapt(true)-material.blue.light.compact.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+23 KB
...ointments/etalons/appointment-collector-day-adapt(true)-material.blue.light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+22.2 KB
...ommon/layout/appointments/etalons/appointment-collector-day-auto-rtl(false).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+22.1 KB
...common/layout/appointments/etalons/appointment-collector-day-auto-rtl(true).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18.2 KB
.../layout/appointments/etalons/appointment-collector-day-unlimited-rtl(false).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+27.2 KB
...common/layout/appointments/etalons/appointment-collector-month-0-rtl(false).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+27.9 KB
...common/layout/appointments/etalons/appointment-collector-month-2-rtl(false).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+23.4 KB
.../etalons/appointment-collector-month-adapt(false)-fluent.blue.light.compact.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+21.9 KB
...intments/etalons/appointment-collector-month-adapt(false)-fluent.blue.light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+23.7 KB
...ents/etalons/appointment-collector-month-adapt(false)-generic.light.compact.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+27.4 KB
...appointments/etalons/appointment-collector-month-adapt(false)-generic.light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+21.9 KB
...talons/appointment-collector-month-adapt(false)-material.blue.light.compact.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+19.9 KB
...tments/etalons/appointment-collector-month-adapt(false)-material.blue.light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+20.7 KB
...s/etalons/appointment-collector-month-adapt(true)-fluent.blue.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+19.8 KB
...ointments/etalons/appointment-collector-month-adapt(true)-fluent.blue.light.png
Oops, something went wrong.
Binary file added
BIN
+22.7 KB
...ments/etalons/appointment-collector-month-adapt(true)-generic.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+26.6 KB
.../appointments/etalons/appointment-collector-month-adapt(true)-generic.light.png
Oops, something went wrong.
Binary file added
BIN
+19.8 KB
...etalons/appointment-collector-month-adapt(true)-material.blue.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+18.3 KB
...ntments/etalons/appointment-collector-month-adapt(true)-material.blue.light.png
Oops, something went wrong.
Binary file added
BIN
+27.4 KB
...mon/layout/appointments/etalons/appointment-collector-month-auto-rtl(false).png
Oops, something went wrong.
Binary file added
BIN
+27.6 KB
...mmon/layout/appointments/etalons/appointment-collector-month-auto-rtl(true).png
Oops, something went wrong.
Binary file added
BIN
+22.3 KB
...ments/etalons/appointment-collector-month-double-interval-fluent.blue.light.png
Oops, something went wrong.
Binary file added
BIN
+28.7 KB
...ointments/etalons/appointment-collector-month-double-interval-generic.light.png
Oops, something went wrong.
Binary file added
BIN
+20 KB
...nts/etalons/appointment-collector-month-double-interval-material.blue.light.png
Oops, something went wrong.
Binary file added
BIN
+26 KB
...ayout/appointments/etalons/appointment-collector-month-unlimited-rtl(false).png
Oops, something went wrong.
Binary file added
BIN
+7.79 KB
.../layout/appointments/etalons/appointment-collector-timelineDay-0-rtl(false).png
Oops, something went wrong.
Binary file added
BIN
+8.75 KB
.../layout/appointments/etalons/appointment-collector-timelineDay-2-rtl(false).png
Oops, something went wrong.
Binary file added
BIN
+8.92 KB
...ns/appointment-collector-timelineDay-adapt(false)-fluent.blue.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+9 KB
...ts/etalons/appointment-collector-timelineDay-adapt(false)-fluent.blue.light.png
Oops, something went wrong.
Binary file added
BIN
+7.81 KB
...talons/appointment-collector-timelineDay-adapt(false)-generic.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+8.75 KB
...tments/etalons/appointment-collector-timelineDay-adapt(false)-generic.light.png
Oops, something went wrong.
Binary file added
BIN
+8.04 KB
.../appointment-collector-timelineDay-adapt(false)-material.blue.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+7.78 KB
.../etalons/appointment-collector-timelineDay-adapt(false)-material.blue.light.png
Oops, something went wrong.
Binary file added
BIN
+6.69 KB
...ons/appointment-collector-timelineDay-adapt(true)-fluent.blue.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+6.66 KB
...nts/etalons/appointment-collector-timelineDay-adapt(true)-fluent.blue.light.png
Oops, something went wrong.
Binary file added
BIN
+6.3 KB
...etalons/appointment-collector-timelineDay-adapt(true)-generic.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+6.88 KB
...ntments/etalons/appointment-collector-timelineDay-adapt(true)-generic.light.png
Oops, something went wrong.
Binary file added
BIN
+6.36 KB
...s/appointment-collector-timelineDay-adapt(true)-material.blue.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+6.28 KB
...s/etalons/appointment-collector-timelineDay-adapt(true)-material.blue.light.png
Oops, something went wrong.
Binary file added
BIN
+8.75 KB
...yout/appointments/etalons/appointment-collector-timelineDay-auto-rtl(false).png
Oops, something went wrong.
Binary file added
BIN
+8.5 KB
...ayout/appointments/etalons/appointment-collector-timelineDay-auto-rtl(true).png
Oops, something went wrong.
Binary file added
BIN
+8.72 KB
...appointments/etalons/appointment-collector-timelineDay-unlimited-rtl(false).png
Oops, something went wrong.
Binary file added
BIN
+4.26 KB
...ayout/appointments/etalons/appointment-collector-timelineMonth-0-rtl(false).png
Oops, something went wrong.
Binary file added
BIN
+8.42 KB
...ayout/appointments/etalons/appointment-collector-timelineMonth-2-rtl(false).png
Oops, something went wrong.
Binary file added
BIN
+11 KB
.../appointment-collector-timelineMonth-adapt(false)-fluent.blue.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+9.14 KB
.../etalons/appointment-collector-timelineMonth-adapt(false)-fluent.blue.light.png
Oops, something went wrong.
Binary file added
BIN
+9.81 KB
...lons/appointment-collector-timelineMonth-adapt(false)-generic.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+8.42 KB
...ents/etalons/appointment-collector-timelineMonth-adapt(false)-generic.light.png
Oops, something went wrong.
Binary file added
BIN
+9.72 KB
...ppointment-collector-timelineMonth-adapt(false)-material.blue.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+8.36 KB
...talons/appointment-collector-timelineMonth-adapt(false)-material.blue.light.png
Oops, something went wrong.
Binary file added
BIN
+4.26 KB
...s/appointment-collector-timelineMonth-adapt(true)-fluent.blue.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+4.42 KB
...s/etalons/appointment-collector-timelineMonth-adapt(true)-fluent.blue.light.png
Oops, something went wrong.
Binary file added
BIN
+3.63 KB
...alons/appointment-collector-timelineMonth-adapt(true)-generic.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+3.85 KB
...ments/etalons/appointment-collector-timelineMonth-adapt(true)-generic.light.png
Oops, something went wrong.
Binary file added
BIN
+4.2 KB
...appointment-collector-timelineMonth-adapt(true)-material.blue.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+4.56 KB
...etalons/appointment-collector-timelineMonth-adapt(true)-material.blue.light.png
Oops, something went wrong.
Binary file added
BIN
+8.42 KB
...ut/appointments/etalons/appointment-collector-timelineMonth-auto-rtl(false).png
Oops, something went wrong.
Binary file added
BIN
+8.67 KB
...out/appointments/etalons/appointment-collector-timelineMonth-auto-rtl(true).png
Oops, something went wrong.
Binary file added
BIN
+7.12 KB
...pointments/etalons/appointment-collector-timelineMonth-unlimited-rtl(false).png
Oops, something went wrong.
Binary file added
BIN
+7.79 KB
...layout/appointments/etalons/appointment-collector-timelineWeek-0-rtl(false).png
Oops, something went wrong.
Binary file added
BIN
+8.75 KB
...layout/appointments/etalons/appointment-collector-timelineWeek-2-rtl(false).png
Oops, something went wrong.
Binary file added
BIN
+9.02 KB
...s/appointment-collector-timelineWeek-adapt(false)-fluent.blue.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+9.22 KB
...s/etalons/appointment-collector-timelineWeek-adapt(false)-fluent.blue.light.png
Oops, something went wrong.
Binary file added
BIN
+7.55 KB
...alons/appointment-collector-timelineWeek-adapt(false)-generic.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+8.22 KB
...ments/etalons/appointment-collector-timelineWeek-adapt(false)-generic.light.png
Oops, something went wrong.
Binary file added
BIN
+8.21 KB
...appointment-collector-timelineWeek-adapt(false)-material.blue.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+7.75 KB
...etalons/appointment-collector-timelineWeek-adapt(false)-material.blue.light.png
Oops, something went wrong.
Binary file added
BIN
+7.26 KB
...ns/appointment-collector-timelineWeek-adapt(true)-fluent.blue.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+7.27 KB
...ts/etalons/appointment-collector-timelineWeek-adapt(true)-fluent.blue.light.png
Oops, something went wrong.
Binary file added
BIN
+6.29 KB
...talons/appointment-collector-timelineWeek-adapt(true)-generic.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+6.88 KB
...tments/etalons/appointment-collector-timelineWeek-adapt(true)-generic.light.png
Oops, something went wrong.
Binary file added
BIN
+6.84 KB
.../appointment-collector-timelineWeek-adapt(true)-material.blue.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+6.79 KB
.../etalons/appointment-collector-timelineWeek-adapt(true)-material.blue.light.png
Oops, something went wrong.
Binary file added
BIN
+8.22 KB
...out/appointments/etalons/appointment-collector-timelineWeek-auto-rtl(false).png
Oops, something went wrong.
Binary file added
BIN
+7.71 KB
...yout/appointments/etalons/appointment-collector-timelineWeek-auto-rtl(true).png
Oops, something went wrong.
Binary file added
BIN
+7.55 KB
...ppointments/etalons/appointment-collector-timelineWeek-unlimited-rtl(false).png
Oops, something went wrong.
Binary file added
BIN
+7.79 KB
...ut/appointments/etalons/appointment-collector-timelineWorkWeek-0-rtl(false).png
Oops, something went wrong.
Binary file added
BIN
+8.75 KB
...ut/appointments/etalons/appointment-collector-timelineWorkWeek-2-rtl(false).png
Oops, something went wrong.
Binary file added
BIN
+9.13 KB
...pointment-collector-timelineWorkWeek-adapt(false)-fluent.blue.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+9.38 KB
...alons/appointment-collector-timelineWorkWeek-adapt(false)-fluent.blue.light.png
Oops, something went wrong.
Binary file added
BIN
+7.55 KB
...s/appointment-collector-timelineWorkWeek-adapt(false)-generic.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+8.22 KB
...s/etalons/appointment-collector-timelineWorkWeek-adapt(false)-generic.light.png
Oops, something went wrong.
Binary file added
BIN
+8.49 KB
...intment-collector-timelineWorkWeek-adapt(false)-material.blue.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+8.19 KB
...ons/appointment-collector-timelineWorkWeek-adapt(false)-material.blue.light.png
Oops, something went wrong.
Binary file added
BIN
+7.38 KB
...ppointment-collector-timelineWorkWeek-adapt(true)-fluent.blue.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+7.42 KB
...talons/appointment-collector-timelineWorkWeek-adapt(true)-fluent.blue.light.png
Oops, something went wrong.
Binary file added
BIN
+6.29 KB
...ns/appointment-collector-timelineWorkWeek-adapt(true)-generic.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+6.88 KB
...ts/etalons/appointment-collector-timelineWorkWeek-adapt(true)-generic.light.png
Oops, something went wrong.
Binary file added
BIN
+7.15 KB
...ointment-collector-timelineWorkWeek-adapt(true)-material.blue.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+7.24 KB
...lons/appointment-collector-timelineWorkWeek-adapt(true)-material.blue.light.png
Oops, something went wrong.
Binary file added
BIN
+8.22 KB
...appointments/etalons/appointment-collector-timelineWorkWeek-auto-rtl(false).png
Oops, something went wrong.
Binary file added
BIN
+7.71 KB
.../appointments/etalons/appointment-collector-timelineWorkWeek-auto-rtl(true).png
Oops, something went wrong.
Binary file added
BIN
+7.55 KB
...ntments/etalons/appointment-collector-timelineWorkWeek-unlimited-rtl(false).png
Oops, something went wrong.
Binary file added
BIN
+11.9 KB
.../common/layout/appointments/etalons/appointment-collector-week-0-rtl(false).png
Oops, something went wrong.
Binary file added
BIN
+16.2 KB
.../common/layout/appointments/etalons/appointment-collector-week-2-rtl(false).png
Oops, something went wrong.
Binary file added
BIN
+20.5 KB
...s/etalons/appointment-collector-week-adapt(false)-fluent.blue.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+17.6 KB
...ointments/etalons/appointment-collector-week-adapt(false)-fluent.blue.light.png
Oops, something went wrong.
Binary file added
BIN
+14.5 KB
...ments/etalons/appointment-collector-week-adapt(false)-generic.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+15.2 KB
.../appointments/etalons/appointment-collector-week-adapt(false)-generic.light.png
Oops, something went wrong.
Binary file added
BIN
+15.4 KB
...etalons/appointment-collector-week-adapt(false)-material.blue.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+14.2 KB
...ntments/etalons/appointment-collector-week-adapt(false)-material.blue.light.png
Oops, something went wrong.
Binary file added
BIN
+21.5 KB
...ts/etalons/appointment-collector-week-adapt(true)-fluent.blue.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+17.6 KB
...pointments/etalons/appointment-collector-week-adapt(true)-fluent.blue.light.png
Oops, something went wrong.
Binary file added
BIN
+15.3 KB
...tments/etalons/appointment-collector-week-adapt(true)-generic.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+14.3 KB
...t/appointments/etalons/appointment-collector-week-adapt(true)-generic.light.png
Oops, something went wrong.
Binary file added
BIN
+16.9 KB
.../etalons/appointment-collector-week-adapt(true)-material.blue.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+15 KB
...intments/etalons/appointment-collector-week-adapt(true)-material.blue.light.png
Oops, something went wrong.
Binary file added
BIN
+15.2 KB
...mmon/layout/appointments/etalons/appointment-collector-week-auto-rtl(false).png
Oops, something went wrong.
Binary file added
BIN
+15.2 KB
...ommon/layout/appointments/etalons/appointment-collector-week-auto-rtl(true).png
Oops, something went wrong.
Binary file added
BIN
+11.4 KB
...layout/appointments/etalons/appointment-collector-week-unlimited-rtl(false).png
Oops, something went wrong.
Binary file added
BIN
+10.5 KB
...mon/layout/appointments/etalons/appointment-collector-workWeek-0-rtl(false).png
Oops, something went wrong.
Binary file added
BIN
+16.1 KB
...mon/layout/appointments/etalons/appointment-collector-workWeek-2-rtl(false).png
Oops, something went wrong.
Binary file added
BIN
+21.8 KB
...alons/appointment-collector-workWeek-adapt(false)-fluent.blue.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+18.6 KB
...ments/etalons/appointment-collector-workWeek-adapt(false)-fluent.blue.light.png
Oops, something went wrong.
Binary file added
BIN
+15.3 KB
...s/etalons/appointment-collector-workWeek-adapt(false)-generic.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+16.1 KB
...ointments/etalons/appointment-collector-workWeek-adapt(false)-generic.light.png
Oops, something went wrong.
Binary file added
BIN
+16.1 KB
...ons/appointment-collector-workWeek-adapt(false)-material.blue.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+14.8 KB
...nts/etalons/appointment-collector-workWeek-adapt(false)-material.blue.light.png
Oops, something went wrong.
Binary file added
BIN
+23.3 KB
...talons/appointment-collector-workWeek-adapt(true)-fluent.blue.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+18.1 KB
...tments/etalons/appointment-collector-workWeek-adapt(true)-fluent.blue.light.png
Oops, something went wrong.
Binary file added
BIN
+16.3 KB
...ts/etalons/appointment-collector-workWeek-adapt(true)-generic.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+14.7 KB
...pointments/etalons/appointment-collector-workWeek-adapt(true)-generic.light.png
Oops, something went wrong.
Binary file added
BIN
+17.4 KB
...lons/appointment-collector-workWeek-adapt(true)-material.blue.light.compact.png
Oops, something went wrong.
Binary file added
BIN
+15.9 KB
...ents/etalons/appointment-collector-workWeek-adapt(true)-material.blue.light.png
Oops, something went wrong.
Binary file added
BIN
+16.1 KB
.../layout/appointments/etalons/appointment-collector-workWeek-auto-rtl(false).png
Oops, something went wrong.
Binary file added
BIN
+16.1 KB
...n/layout/appointments/etalons/appointment-collector-workWeek-auto-rtl(true).png
Oops, something went wrong.
Binary file added
BIN
+12.5 KB
...ut/appointments/etalons/appointment-collector-workWeek-unlimited-rtl(false).png
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 87 additions & 0 deletions
87
packages/devextreme/js/__internal/scheduler/appointments/resizing/get_delta_time.test.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,87 @@ | ||
| import { | ||
| describe, expect, it, | ||
| } from '@jest/globals'; | ||
|
|
||
| import { VIEW_TYPES } from '../../utils/options/constants_view'; | ||
| import type { ViewType } from '../../utils/options/types'; | ||
| import { getDeltaTime } from './get_delta_time'; | ||
|
|
||
| describe('getDeltaTime', () => { | ||
| VIEW_TYPES.forEach((view) => { | ||
| it(`should return zero for not resized appointment in ${view} view`, () => { | ||
| expect(getDeltaTime( | ||
| { width: 100, height: 100 }, | ||
| { width: 100, height: 100 }, | ||
| { | ||
| viewType: view, | ||
| cellSize: { width: 50, height: 50 }, | ||
| resizableStep: 50, | ||
| cellDurationInMinutes: 30, | ||
| isAllDay: true, | ||
| }, | ||
| )).toBe(0); | ||
| }); | ||
| }); | ||
|
|
||
| ['day', 'week', 'workWeek'].forEach((view) => { | ||
| it(`should return correct delta in px for resized appointment in vertical ${view} view`, () => { | ||
| expect(getDeltaTime( | ||
| { width: 100, height: 50 }, | ||
| { width: 100, height: 100 }, | ||
| { | ||
| viewType: view as ViewType, | ||
| cellSize: { width: 50, height: 50 }, | ||
| resizableStep: 50, | ||
| cellDurationInMinutes: 30, | ||
| isAllDay: false, | ||
| }, | ||
| )).toBe(-30 * 60_000); | ||
| }); | ||
|
|
||
| it(`should return correct delta in px for resized all day appointment in vertical ${view} view`, () => { | ||
| expect(getDeltaTime( | ||
| { width: 50, height: 100 }, | ||
| { width: 100, height: 100 }, | ||
| { | ||
| viewType: view as ViewType, | ||
| cellSize: { width: 50, height: 50 }, | ||
| resizableStep: 50, | ||
| cellDurationInMinutes: 30, | ||
| isAllDay: true, | ||
| }, | ||
| )).toBe(-24 * 3600_000); | ||
| }); | ||
| }); | ||
|
|
||
| ['timelineMonth', 'month'].forEach((view) => { | ||
| it(`should return correct delta in px for resized appointment in ${view} view`, () => { | ||
| expect(getDeltaTime( | ||
| { width: 50, height: 100 }, | ||
| { width: 100, height: 100 }, | ||
| { | ||
| viewType: view as ViewType, | ||
| cellSize: { width: 50, height: 50 }, | ||
| resizableStep: 50, | ||
| cellDurationInMinutes: 30, | ||
| isAllDay: false, | ||
| }, | ||
| )).toBe(-24 * 3600_000); | ||
| }); | ||
| }); | ||
|
|
||
| ['timelineDay', 'timelineWeek', 'timelineWorkWeek'].forEach((view) => { | ||
| it(`should return zero for not resized appointment in horizontal ${view} view`, () => { | ||
| expect(getDeltaTime( | ||
| { width: 50, height: 100 }, | ||
| { width: 100, height: 100 }, | ||
| { | ||
| viewType: view as ViewType, | ||
| cellSize: { width: 50, height: 50 }, | ||
| resizableStep: 50, | ||
| cellDurationInMinutes: 30, | ||
| isAllDay: false, | ||
| }, | ||
| )).toBe(-30 * 60_000); | ||
| }); | ||
| }); | ||
| }); |
60 changes: 60 additions & 0 deletions
60
packages/devextreme/js/__internal/scheduler/appointments/resizing/get_delta_time.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| import dateUtils from '@js/core/utils/date'; | ||
|
|
||
| import { VERTICAL_VIEW_TYPES } from '../../constants'; | ||
| import type { ViewType } from '../../types'; | ||
|
|
||
| const toMs = dateUtils.dateToMilliseconds; | ||
|
|
||
| interface Size { | ||
| width: number; | ||
| height: number; | ||
| } | ||
| interface Options { | ||
| viewType: ViewType; | ||
| cellSize: Size; | ||
| cellDurationInMinutes: number; | ||
| resizableStep: number; | ||
| isAllDay: boolean; | ||
| } | ||
|
|
||
| const MIN_RESIZABLE_STEP = 2; | ||
| const getAllDayDeltaWidth = (args: Size, initialSize: Size, resizableStep: number): number => { | ||
| const intervalWidth = resizableStep || MIN_RESIZABLE_STEP; | ||
| const initialWidth = initialSize.width; | ||
|
|
||
| return Math.round((args.width - initialWidth) / intervalWidth); | ||
| }; | ||
| const getHorizontalDeltaTime = (args: Size, initialSize: Size, { | ||
| cellSize, | ||
| cellDurationInMinutes, | ||
| }: Options): number => { | ||
| const deltaWidth = args.width - initialSize.width; | ||
| const deltaTime = toMs('minute') * Math.round((deltaWidth * cellDurationInMinutes) / cellSize.width); | ||
| return deltaTime; | ||
| }; | ||
| const getVerticalDeltaTime = (args: Size, initialSize: Size, { | ||
| cellSize, | ||
| cellDurationInMinutes, | ||
| }: Options): number => { | ||
| const deltaHeight = args.height - initialSize.height; | ||
| const deltaTime = toMs('minute') * Math.round((deltaHeight * cellDurationInMinutes) / cellSize.height); | ||
| return deltaTime; | ||
| }; | ||
|
|
||
| export const getDeltaTime = ( | ||
| args: Size, | ||
| initialSize: Size, | ||
| options: Options, | ||
| ): number => { | ||
| const { viewType, resizableStep, isAllDay } = options; | ||
| switch (true) { | ||
| case ['timelineMonth', 'month'].includes(viewType) || Boolean(isAllDay): | ||
| return getAllDayDeltaWidth(args, initialSize, resizableStep) * toMs('day'); | ||
| case viewType === 'agenda': | ||
| return 0; | ||
| case VERTICAL_VIEW_TYPES.includes(viewType) && !isAllDay: | ||
| return getVerticalDeltaTime(args, initialSize, options); | ||
| default: | ||
| return getHorizontalDeltaTime(args, initialSize, options); | ||
| } | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed that
WEEK_VIEW_COLLECTOR_OFFSETandCOMPACT_THEME_WEEK_VIEW_COLLECTOR_OFFSETwere removed and are no longer used.How is this offset handled now? Could this change affect the behavior in week view or in compact theme scenarios?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was unused code