Commit graph

313 commits

Author SHA1 Message Date
Maxime Quandalle
5d77ad4f6b Finish the minicard editor auto-completion feature
This commit stands on the initial support implemented in #342. We now
avoid error-prone parsing step by adding the member or the label
directly to the card object.

We also added support for `Tab` to completion on our textComplete
component.

Closes #342
2015-11-08 23:17:24 -08:00
Maxime Quandalle
f9cbc1da4c Fix an exception introduced in 41b23f8 2015-11-01 17:21:05 -08:00
Maxime Quandalle
2b134ff7a9 Merge branch 'devel' into minicard-editor
Conflicts:
	client/components/lists/listBody.js
2015-10-31 12:49:58 +01:00
Maxime Quandalle
dd3cdf3945 Fix some bugs introduced in aa974aa
Yes Wekan need some tests. Yes I need to stop refactoring my code
when I’m halp-sleeping in my bed at 4am.
2015-10-29 23:17:21 +01:00
Maxime Quandalle
68521fc1c3 Update packages and update Meteor to 1.2.1
Blaze-components had yet another methods rename.
2015-10-29 15:35:33 +01:00
Dominik Ferber
3ad672a20b Add missing semicolon 2015-10-27 17:38:04 +01: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
Xavier Priour
658ef5ebe1 Merge branch 'devel' into feature/import-board-members 2015-10-23 03:38:38 +02:00
Xavier Priour
027aacb50e Import members: added UI 2015-10-23 03:37:34 +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
c6b12dc5ad Upgrade peerlibrary:blaze-components to v0.14
This change includes method renames and others UI related packages
updates.
2015-10-21 04:34:44 +02:00
Maxime Quandalle
9154b06fc3 Upgrade kenton:accounts-sandstorm package to 0.1.6
We now delegates more user attributes sync (avatar and permissions) to
this package instead of doing it ourselves.
2015-10-21 04:26:16 +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
118b434a5a Provide a default date for lists and cards creation date
See https://github.com/wekan/wekan/pull/362#issuecomment-149645497
for motivation.

This commit also contains cosmetic changes to the import Popup and
on the code style to be more consistent with the code base.
2015-10-20 20:02:12 +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
4540bd36c4 Import board: import comments and log activities 2015-10-19 00:59:50 +02:00
Xavier Priour
595d5f97ac Import board: now proper createdAt dates 2015-10-17 19:29:25 +02:00
Xavier Priour
468694a84c Import board: added UI 2015-10-17 18:00:46 +02:00
Maxime Quandalle
15ebfa63c6 Translate the label colors 2015-10-15 00:52:32 +02:00
Maxime Quandalle
944a1065d3 Add some ESLint rules and fix some related issues 2015-10-14 23:50:12 +02:00
Maxime Quandalle
43de3b8a01 Prevent dublicated empty labels of the same color 2015-10-14 23:40:27 +02:00
Xavier Priour
b670a1ab36 Import single card: proper error handling 2015-10-14 23:23:17 +02:00
Xavier Priour
7d57ce896b Import single card: create an 'importCard' activity entry 2015-10-14 23:23:16 +02:00
Xavier Priour
d8892d6408 Import single card: refactor to meteor method 2015-10-14 23:23:16 +02:00
Xavier Priour
7e64c22c1a Import single card: archived card 2015-10-14 23:23:16 +02:00
Xavier Priour
68518f5497 Import single card: map labels 2015-10-14 23:23:16 +02:00
Xavier Priour
432c1ebb5d Import single card: now with description and comments 2015-10-14 23:23:16 +02:00
Xavier Priour
1b9df00492 Import single card: title and proper sort index 2015-10-14 23:23:16 +02:00
Xavier Priour
bc79b83140 Add card import UI 2015-10-14 23:23:16 +02:00
Maxime Quandalle
758be3356c Use a better API to retrieve the new card position
Fixes #347
2015-10-13 19:56:04 +02:00
Maxime Quandalle
8bbc69616f Abstract the jquery-textcomplete integration with EscapeActions
We now can re-use this integration in multiple places, this will be
useful for #342 for instance.
2015-10-13 18:36:58 +02:00
Maxime Quandalle
bf46a21405 Fix a typo in a function call introduced in a78debc 2015-10-13 14:10:56 +02:00
Kenton Hamaluik
3507c6565b Made colours light grey in the labels dropdown 2015-10-10 23:08:50 -06:00
Maxime Quandalle
a78debc461 Support app deployment under a path prefix
Fixes #133
2015-10-08 23:28:27 +02:00
Kenton Hamaluik
fde2a39ee3 Added coloured label badges in autocomplete list 2015-10-08 13:10:46 -06:00
Kenton Hamaluik
f5be121cf3 Pressing escape while autocomplete is open no longer closes the minicard 2015-10-08 12:32:31 -06:00
Kenton Hamaluik
c2cb17c5df Now cards with *only* metadata aren't created empty 2015-10-08 12:25:58 -06:00
Kenton Hamaluik
a212b1310c Added space after if to conform to formatting 2015-10-08 12:22:55 -06:00
Kenton Hamaluik
77ca52d8c2 Fixed issue with possible race condition, suggested by @mquandalle 2015-10-08 12:22:03 -06:00
Kenton Hamaluik
e4c5d2cbe6 Fixed typo in template for quick-adding a user. 2015-10-03 16:56:27 -06:00
Kenton Hamaluik
429686ef48 Made eslinter happy. 2015-10-03 16:53:45 -06:00
Kenton Hamaluik
d105da5bc7 Conformed to the 80-character line length limit. 2015-10-03 15:59:13 -06:00
Kenton Hamaluik
bfcfd2ebda Initial support for @user and #label use in new cards.
When creating a new [mini]card, typing `@` or `#` brings up an
auto-complete box for board members and labels which will get applied to
the card upon creation. These textual tags are removed from the card
title before saving to maintain sanity. If a label doesn't have a name,
it's colour is used (i.e. `red`, `purple`, etc).

This was developed to ease the creation of new cards and allow users to
rapidly create cards without having to click numerous times just to
apply labels & members.
2015-10-03 15:58:36 -06:00
Maxime Quandalle
57fa7af24c Merge pull request #326 from AlexanderS/fix/display-all-archived
sidebar: Filter archived cards/lists for current board
2015-09-24 15:12:47 +02:00
Alexander Sulfrian
b2ab174fd5 sidebar: Filter archived cards/lists for current board
The archived items should be filtered for the current board or else you
will get a global list of all archived items on all boards.
2015-09-24 12:32:48 +02:00
Alexander Sulfrian
bf8f335ae7 Fix removeMemberPopup
The removeMemberPopup was missing the required helper to get the user and board
information and the user profile field is called "fullname" and not "name".
2015-09-20 23:52:51 +02:00
Maxime Quandalle
33888f9fbb Merge pull request #316 from AlexanderS/fix/delete-card
Fix card deletion

This bug was introduced in b3851817.
2015-09-20 16:57:00 +02:00
Alexander Sulfrian
f4a68a0f7d Fix Popup.afterCommit
We need to use "function() {}" instead of the ES6 style "() {}" with
popup.afterCommit because we need the original value of "this" inside
the callback.
2015-09-20 16:49:11 +02:00
Maxime Quandalle
b14fd985ff Add some strings to the translation set 2015-09-18 17:37:01 +02:00
Maxime Quandalle
786423ba9d Display “Filter cards” action for non-board members 2015-09-18 17:37:01 +02:00