Skip to content

Jolore/adding work week date range#3784

Merged
johannao76 merged 5 commits into
microsoft:masterfrom
lorejoh12:jolore/addingWorkWeekDateRange
Jan 27, 2018
Merged

Jolore/adding work week date range#3784
johannao76 merged 5 commits into
microsoft:masterfrom
lorejoh12:jolore/addingWorkWeekDateRange

Conversation

@lorejoh12

@lorejoh12 lorejoh12 commented Jan 24, 2018

Copy link
Copy Markdown
Contributor

Pull request checklist

  • Addresses an existing issue: Fixes #0000
  • Include a change request file using $ npm run change

Description of changes

Adding a new date range type, WorkWeek. Updating Calendar and CalendarDay components to consume a new property, SelectableDaysOfWeek, that allows consumers to specify which days of the week are in their work week. If not provided, defaults to Mon-Fri.

Updated DateMath getDateRangeArray utility method to consume new property for workWeekDays, also optional and also using the same Mon-Fri default if not provided.

Focus areas to test

Test selection logic for all date range types (day, week, work week, month), and that styling for work week is as expected (only the days in the range are highlighted, can skip days if the range is not contiguous).

for those in msft, you can test the example page running with my changes here: http://jolore/fabric/#/examples/calendar

@lorejoh12 lorejoh12 requested a review from johannao76 as a code owner January 24, 2018 02:20
…that the property does nothing if not in WorkWeek view
@johannao76 johannao76 merged commit c91e289 into microsoft:master Jan 27, 2018
@lorejoh12 lorejoh12 deleted the jolore/addingWorkWeekDateRange branch April 11, 2018 19:07
@microsoft microsoft locked as resolved and limited conversation to collaborators Aug 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants