Commit graph

11 commits

Author SHA1 Message Date
floatinghotpot
21fa6fdc32 add: optional board description 2015-12-07 11:22:30 +08:00
floatinghotpot
011f53ad08 add: invite user via email, invited user can accept or decline, allow member to quit 2015-12-07 11:15:57 +08:00
Maxime Quandalle
31b60d82fc Upgrade Meteor to 1.2.1-rc4
This version includes a more complete selection of ES2015 polyfills
that I started used across the code base, for instance by replacing
`$.trim(str)` by `str.trim()`.
2015-10-23 16:56:55 +02:00
Maxime Quandalle
aa974aa54a Prefer ES5 methods over underscore utilities
Since 07cc454 (ie the switch to Meteor 1.2) we includes the `es5-shim`
polyfill to support methods like `Array.prototype.forEach` in a
consistent way across all supported browsers (IE8+).

MDG recently released a blog post recommending the use of these native
methods instead of underscore [0]. We know follow this recommendation.

This commit also favor some ES6 features (argument defaults,
destructing assignment) in places where we didn’t use them.

[0]: http://info.meteor.com/blog/es2015-get-started
2015-10-22 18:13:12 +02:00
Maxime Quandalle
7a5f030cc8 Merge branch 'xavierpriour-devel' into devel
Conflicts:
	models/import.js
2015-10-20 20:06:26 +02:00
Maxime Quandalle
f3fc154eb0 Re-implement label deletion
This was not ported during v0.9 re-factor.

Fixes #322
2015-10-20 19:07:24 +02:00
Xavier Priour
8e0ad91191 Import board: map team permission, and refactor code to share with card import 2015-10-19 20:14:29 +02:00
Maxime Quandalle
6dedf673d5 Prevent duplicate board labels
43de3b8 did prevent empty labels with the same color, but we also want
to prevent label with the same non-empty name and same color because
the rationale is identical.
2015-10-16 17:49:25 +02:00
Maxime Quandalle
43de3b8a01 Prevent dublicated empty labels of the same color 2015-10-14 23:40:27 +02:00
Xavier Priour
68518f5497 Import single card: map labels 2015-10-14 23:23:16 +02:00
Maxime Quandalle
45b662a1dd Centralize all mutations at the model level
This commit uses a new package that I need to document. It tries to
solve the long-standing debate in the Meteor community about
allow/deny rules versus methods (RPC).

This approach gives us both the centralized security rules of
allow/deny and the white-list of allowed mutations similarly to Meteor
methods. The idea to have static mutation descriptions is also
inspired by Facebook's Relay/GraphQL.

This will allow the development of a REST API using the high-level
methods instead of the MongoDB queries to do the mapping between the
HTTP requests and our collections.
2015-09-08 20:19:42 +02:00
Renamed from collections/boards.js (Browse further)