Skip to content
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

Editor External Media Google Photos: add date filters #25737

Conversation

jakejones1984
Copy link
Contributor

Adds a dropdown with the ability to filter the media list by a given date range.

As discussed at

#25583

Add both a config feature flag and prop to determine whether to show the Date Filters. Append `?flags=external-media/google-photos/date-filters` to enable the feature for testing
Updates DatePicker component to allow for usage of selectedDays and to show more than 1 month at a time. MediaDateRange component can now take advantage of this functionality to enable a date-range style picker.
…uld be displayed

Previously props which determine whether the previous and next nav buttons should be displayed were ignored. Minor modification to take account of this prior to rendering the buttons
Previously DatePicker component was missing support for toMonth, fromMonth and selectedDays props. This limited ability of consumers of DatePicker component to utilise features of React Day Picker library. Particularly useful if you need to create a range picker.

See http://react-day-picker.js.org/examples/selected-range
Previously component render was one huge method. Refactored to several smaller utliity methods to make main render more concise.
# Conflicts:
#	package.json
@jakejones1984
Copy link
Contributor Author

jakejones1984 commented Jun 26, 2018

Closing in favour of direct PR to Automattic repo.

#25762

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants