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

Add support for calendar event indicator. #5002

Merged
merged 19 commits into from
Sep 25, 2024
Merged

Conversation

dbatiste
Copy link
Contributor

@dbatiste dbatiste commented Sep 23, 2024

GAUD-6911

This PR adds support for event indicators in d2l-calendar.

  • Update d2l-calendar to display event indicator
  • New getMinMaxDatesInView for calendar that consumers can use to fetch initial events

Copy link
Contributor

Thanks for the PR! 🎉

We've deployed an automatic preview for this PR - you can see your changes here:

URL https://live.d2l.dev/prs/BrightspaceUI/core/pr-5002/

Note

The build needs to finish before your changes are deployed.
Changes to the PR will automatically update the instance.

components/calendar/calendar-event.js Outdated Show resolved Hide resolved
components/calendar/calendar.js Outdated Show resolved Hide resolved
components/calendar/calendar.js Outdated Show resolved Hide resolved
components/calendar/calendar.js Show resolved Hide resolved
components/calendar/calendar.js Outdated Show resolved Hide resolved
components/calendar/calendar-event.js Outdated Show resolved Hide resolved
components/calendar/calendar-event.js Outdated Show resolved Hide resolved
components/calendar/calendar.js Show resolved Hide resolved
dbatiste and others added 2 commits September 25, 2024 12:21
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@@ -40,11 +40,26 @@ function getCalendarData() {
return calendarData;
}

function getInitialFocusDate(selectedValue, minValue, maxValue) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This logic just got factored out of the component class so that it could be called from getMinMaxDatesInView.

@dbatiste dbatiste marked this pull request as ready for review September 25, 2024 16:48
@dbatiste dbatiste requested a review from a team as a code owner September 25, 2024 16:48
components/calendar/calendar.js Outdated Show resolved Hide resolved
components/calendar/calendar.js Show resolved Hide resolved
components/calendar/test/calendar.test.js Outdated Show resolved Hide resolved
components/calendar/test/calendar.test.js Outdated Show resolved Hide resolved
Copy link
Member

@dlockhart dlockhart left a comment

Choose a reason for hiding this comment

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

Looks good!

@dbatiste dbatiste merged commit 5d5a2d5 into main Sep 25, 2024
6 checks passed
@dbatiste dbatiste deleted the dbatiste/calendar-events branch September 25, 2024 17:59
Copy link

🎉 This PR is included in version 3.45.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants