Commit graph

11 commits

Author SHA1 Message Date
Halla Moore
19a115c674 feat(calendar): Allow calendar events to be dragged and resized
Summary:
In order to allow events to be dragged across multiple days, this involved
implementing a new data source for the WeekView that modifies the event feed
based on mouse event data.

Depends on D3451

Test Plan: manual

Reviewers: evan, bengotow

Differential Revision: https://phab.nylas.com/D3452
2016-11-22 11:20:35 -08:00
Ben Gotow
2f65979404 feat(calendar): Add line showing ‘now’
Summary: Just a small line that shows during the current week to highlight the current day and time.

Test Plan: No tests atm

Reviewers: evan, juan

Reviewed By: juan

Subscribers: juan

Differential Revision: https://phab.nylas.com/D3435
2016-11-16 17:08:56 -08:00
Ben Gotow
75105d6c66 fix(calendar): Use ScrollRegions so win users know you can scroll 2016-11-15 16:02:56 -08:00
Jackie Luo
783006daa6 🎨(calendar): Fix overflow for event names 2016-11-15 12:10:35 -08:00
Halla Moore
a366f3be9b feat(calendar): Add functionality to create/edit events
Summary:
Add some basic functionality for creating and editing calendar events

This is a weird work-around diff. Original review is at
https://phab.nylas.com/D3396

Test Plan: manual

Reviewers: bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D3426
2016-11-14 12:21:29 -08:00
Halla Moore
e5e7a72608 feat(cal) Add a mini month view to the corner of the calendar
Summary: Title says it all!

Test Plan: Manual

Reviewers: evan, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D3373
2016-11-02 17:45:12 -07:00
Evan Morikawa
de0f2374fe feat(calendar): can pick which calendars you want displayed
Summary:
Adds a resizable column next to the calendar that lets you pick which
calendars you want to turn on and off.

The picker sidebar styling mimics that of the main account sidebar.

Calendars are grouped by account.

We store the disabled calendars in in your config.

I added a `notIn` SQL method so it'll perform `WHERE calendarId NOT IN
['a', 'b', ...]` instead of `NOT (WHERE calendarId IN ['a', 'b', 'c'])`

I wanted it to be an exclusion (instead of inclusion) list so the default
was "all on" and we didn't need to always fetch the full list of
calendarIds from the database to compare against.

This also fixed a test that was failing constantly: The Query Subscription
Pool Spec was not being properly reset on each test. As a result, the test
would fail with an instance of a query subscription that Jasmine would
attempt to pretty print. Jasmine would fail to pretty print it because of
a jasmine bug that fails to properly display Objects with null prototypes.
The DatabaseStore's EventEmitter has a property with a null prototyp
causing the error

Test Plan: manual

Reviewers: bengotow, juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D3336
2016-10-13 11:37:19 -04:00
Ben Gotow
69d3571d20 fix(calendar): CSS layout fix for Chromium 53 2016-09-28 12:14:50 -07:00
Evan Morikawa
3fa0ce249f fix(scheduler): fix time bar scroll height 2016-04-06 13:59:24 -07:00
Evan Morikawa
bb318bf69c feat(scheduler): add new date & time picker
Summary: Adds a date and time picker to the new event creator

Test Plan: todo

Reviewers: bengotow, juan

Reviewed By: bengotow, juan

Differential Revision: https://phab.nylas.com/D2842
2016-04-05 18:42:19 -07:00
Evan Morikawa
15ff969e73 feat(calendar): add week view for quick scheduler
Summary: New Calendar

Test Plan: TODO

Reviewers: drew, juan, bengotow

Reviewed By: bengotow

Subscribers: jackie

Differential Revision: https://phab.nylas.com/D2767
2016-04-04 15:05:48 -07:00