jeffreywix/fb-cal-tpa — pull request #17 by jeffreywix (2014-07-29 17:04:44+00:00)
Title: Feature make requests

Server Changes:
- Getting all events data on backend if client side attempt fails works now
- Fixed bug where server would crash when user is not logged in

Client Changes:
- Showing error message now when user does not grant access to permissions for events in Facebook account
- Saving access token to database on widget and settings panel load is working now
- Changed modal popup size
- Deleting database access token and saved event IDs on user logout of app now works
- Changed eventIDs name to events because in each event object, we are storing both an id and a color
- Added proof of concept that proves that a variable amount of colorpickers and radio buttons with preset options and ability to be saved on change is possible by initializing settings only after all wix elements needed are set
- Getting settings from backend and DB immediately after setting panel opens is working.
- Also, login state is determined from data sent from backend, so the app, now remembers if the user is signed in or not
- Changed names of events lists to be more reader friendly
- Getting user_ids from server every time so can verify with access token received on client side on facebook init to check if they are from the same account
- Saving settings and eventlist with color choices to Database on change in settings panel now works
- Settings saving is now debounced (1 second)
- Getting event data from facebook on settings load now works
- Fixed issues with settings not loading if user is logged out of app or logged out of facebook
- Added error message for user to handle situation where they try to logout of app while being logged out of facebook
- Fixed problem with event names being too long
- Added message for user when they have no facebook events and when they haven't logged in but are looking for events in the events accordian of settings panel
- Updated settings panel to remember checked events and their colors
- Updated settings to not try to fetch events from server when user is not logged in