Implement Calendar Integration for Tasks #204
Merged
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.
This pull request was created by Sweep to resolve the following request by @curtisdelicata:
Continue chatting at https://sweep-chat-demo.vercel.app/c/8b554a6f-dc98-4e6e-b988-8e6f24c1e1a1.
Purpose
This pull request adds the ability to sync tasks with Google Calendar and Outlook Calendar. Users can now choose to sync their tasks with either of these calendars, and the tasks will be automatically created, updated, and deleted in the respective calendars.
Description
The changes in this pull request include:
tasks
table to store the calendar event IDs and the calendar type.CalendarService
interface and created theGoogleCalendarService
andOutlookCalendarService
classes to handle the integration with the respective calendar services.CreateTask
page in the Filament admin to include a dropdown for selecting the calendar type.GoogleCalendarService
andOutlookCalendarService
classes.Summary
The key changes in this pull request are:
app/Filament/App/Resources/TaskResource/Pages/CreateTask.php
: Updated the form to include a calendar type dropdown.app/Models/Task.php
: Added new fields for calendar event IDs and calendar type.app/Services/CalendarService.php
: Created theCalendarService
interface.app/Services/GoogleCalendarService.php
: Implemented the Google Calendar integration.app/Services/OutlookCalendarService.php
: Implemented the Outlook Calendar integration.config/services.php
: Added configuration for the Google and Outlook calendar services.database/migrations/2023_06_01_000000_add_calendar_fields_to_tasks_table.php
: Added a migration to add the new calendar fields to thetasks
table.tests/Feature/CalendarIntegrationTest.php
: Added feature tests for the calendar integration.tests/Unit/GoogleCalendarServiceTest.php
: Added unit tests for theGoogleCalendarService
.tests/Unit/OutlookCalendarServiceTest.php
: Added unit tests for theOutlookCalendarService
.