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

Support event filters in calendar component #186

Merged
merged 4 commits into from
Mar 20, 2024
Merged

Support event filters in calendar component #186

merged 4 commits into from
Mar 20, 2024

Conversation

maxatdetroit
Copy link
Member

Part of #182

See context in #182.

In this stack of PRs, we'll:

  1. (Done) Introduce a new calendar component that accepts a static list of events
  2. (This PR) Extend the component to accept a list of filter controls, starting with a radio control that will filter events by an arbitrary 'category' field and value.
  3. Support custom colors that will control the color of events on the calendar and event filters

This PR

  • Update cod-calendar component to support passing a list of event filters to the event-filters attribute
  • Update storybook with an example of filters
  • Update height of calendar to be responsive (allows height to grow on mobile when width is compressed)

Testing

See storybook in chromatic and test various number of filters and scenarios (e.g. filter down to no events, go next and prev months after filter, etc.)

@maxatdetroit maxatdetroit added the enhancement New feature or request label Mar 18, 2024
@maxatdetroit maxatdetroit requested a review from jedgar1mx March 18, 2024 19:55
@maxatdetroit maxatdetroit self-assigned this Mar 18, 2024
@jedgar1mx jedgar1mx merged commit a33a1f4 into dev Mar 20, 2024
5 checks passed
@jedgar1mx jedgar1mx deleted the feature.182.1 branch March 20, 2024 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants