Google-calendar integration
goal / problem solved | πΆπ»ββοΈNeglect to treat mites, requeen or feed |
---|---|
Status | Idea |
billing plan | 3-professional |
verticality | vertical |
Blocked by | π Calendar view (of events, treatments, alerts) |
Priority | 2 |
estimate | 7 |
impact = priority % | 15 |
Assigned to | Hatem Soliman |
Tags | backendfrontend |
To help beekeepers do π Varroa Treatment diary and plan their events without the need of using our app all the time, we should integrate popular google calendar to synchronize events
User story: (dis-) connecting service
- I go to web-app β settings page β google integration
- Ask our π²Designer (UX / UI / Industrial) to design google integrations page, or do yourself
- I click
Connect
button to authorize access to google API and userβs calendar data- it will need permissions to add/edit/delete events in calendar
- proficiency with OAuth is needed here
- we should be able to reuse some code and experience in user-cycle that does user-cycle - Login with google
- after OAuth process, we should store google tokens in our DB [table and service t
- If I authorized google calendar access, I get redirected back to same page, now instead of
Connect
button, I should seeDisconnect
- if I press
Disconnect
, we should cleanup stored tokens
- if I press
- Once we get tokes and access, we should select which
calendar
we use for our events in case user has multiple calendars, for example in google calendar I mean these below β
User story: event sync
- When user adds a new event in π Varroa Treatment diary or π Calendar view (of events, treatments, alerts), we should synchronize this event one way β google calendar
- When user removes event that was synchronized, we should remove it β from google calendar
Two-way sync
- Allow user to have a setting.
one-way-sync
ortwo-way-sync
.- In case of two-way sync, we would need to delete event from our system if user deletes it from google calendar. Research needed if this is doable and if there will be any side effects