Commit graph

254 commits

Author SHA1 Message Date
SachaG
85dde4b402 move views logic to createCollection 2017-03-05 10:33:34 +00:00
xavcz
113b68f5ed experiment batching, let's see if it has a performance impact 2017-02-22 15:54:03 +01:00
SachaG
8b821725c8 Add layout and error components to core so we always have something to display even without themes; small clean-ups 2017-02-17 20:45:11 +09:00
SachaG
f82e458302 Merge branch 'devel' of https://github.com/TelescopeJS/Telescope into devel
# Conflicts:
#	packages/nova-base-components/package.js
#	packages/nova-posts/package.js
2017-02-16 23:11:47 +09:00
SachaG
3120d85df9 Fix postedAt callback 2017-02-16 23:11:09 +09:00
xavcz
d195d366c8 Nova v1.1.0 🔭
* bump packages version
* update to Meteor 1.4.3! 🚀
2017-02-16 11:50:22 +01:00
xavcz
f6f057041b Telescope.statuses -> Posts.statuses; 2017-02-16 10:14:25 +01:00
xavcz
b67989fbc2 work on notifications
* Telescope.notifications.create -> import { createNotifications } from 'meteor/nova:notifications' ;
* leverage Meteor's weak dependencies on packages & move code related to emails / notifications from nova:posts et al. to nova:notifications
2017-02-16 10:04:00 +01:00
xavcz
0f4343573c chore: remove legacy properties 'publish' & 'join' 2017-02-16 08:39:42 +01:00
SachaG
395200d299 Remove react-list-container dependency; add index on Posts.categories; bypass C2 in events code; other small tweaks 2017-02-11 13:12:17 +09:00
SachaG
02245f9e03 Add new Collection.findInStore and Collection.findOneInStore methods to query the store during SSR and use it in posts views 2017-02-04 11:46:40 +09:00
SachaG
bdfa76aca6 Improve error logging on server; add createdAt to PostsList fragment; use componentNames for base routes 2017-02-04 11:43:21 +09:00
xavcz
e533dd47e7 fix some lint issues, remove some dead code, remove double imports from the same package & import from core instead of lib except for packages depending explicitly on lib (users, emails, ..) 2017-02-02 16:18:33 +01:00
xavcz
eb2644ad8a Form: display nicer, multiple & internationalizable (encode -> decode) errors, ensure that state updates are queued; in general prefer Error to Meteor.Error, clean some dead code 2017-02-02 15:15:51 +01:00
xavcz
ee34328c34 track voting operations, move posts increase clicks to nova:events (related to #1540) 2017-02-02 09:52:47 +01:00
xavcz
08c171ed64 fix #1541: increasePostViewCount mutation + associated resolver; store posts viewed on the client session on postsViewed in the redux store; document PostsPage HOC & lifecycle hook 2017-02-01 16:37:06 +01:00
xavcz
7862923dec fix typo (object of object..) 2017-01-27 19:54:44 +01:00
xavcz
7fc0a352aa allow querying a single post with only slug (consistency with withDocument), usersTotal resolvers takes care about terms, update react-apollo & apollo-client 2017-01-27 11:08:27 +01:00
xavcz
937fc718cc update summary js-doc, fix typo 2017-01-23 17:39:46 +01:00
xavcz
1e2d43662d form api, embedly url, fix posts autovalues
- Form API: updateCurrentValue(fieldName, fieldValue) => updateCurrentValues(newValues: {[fieldName]: fieldValue}) to update one or more fields at once;
- changes on EmbedlyURL: use of currentValues instead of autofilledValues, fix the use of 'media' field on new & edit (assigned server-side in async callback)
- fix Posts schema's autoValue logic: moved to callbacks (it worked on new docs but not triggered on edits)
2017-01-23 15:50:55 +01:00
SachaG
957fe56df9 clean up before merge back to master 2017-01-23 11:00:44 +09:00
SachaG
301d1017f9 Add underscore package; update Apollo-client package; add HoC aliases; disable categories polling; remove required schema properties; use strings for dates client-side 2017-01-21 10:02:03 +09:00
SachaG
db17e917f8 Remove “__” prefix to avoid conflicts with GraphQL introspection types and simplify code 2017-01-18 10:18:33 +09:00
SachaG
5e3ed2b207 Move voting-related resolvers to nova:voting package 2017-01-16 12:24:59 +09:00
Xavier Cazalot
7f99b48953 devel - revert commits related to simpl-schema (#1537)
* Revert "add note link to issue in collection2 on mutation insert, remove debug console logs on mutation edit"

This reverts commit 7a15103de7.

* Revert "node simpl-schema + collection2-core: fix vote by specifying the right type of the array (dont use blackbox in the end!)"

This reverts commit e894c3224c.

* Revert "add graphql date type (fix problem with node simple schema), fix an update bug on date picker,  add edit check on custom post item, add `blackbox: true` for arrays field (validation problem with simple-schema)"

This reverts commit 9d84fbec98.

* Revert "use node `simpl-schema` by aldeed to replace `meteor/aldeed:simple-schema` ; use the meteor collection2 core package as recommended"

This reverts commit 016935f4fa.

* revert before node-simple-schema, fix obj.hasOwnProperty undefined error thrown by simple-schema & collection2

* CustomPostsItem: check on renderActions; withDocument/List: pollInterval 20seconds by default; DateTime form component enhancement + GraphQLDate type
2017-01-11 18:02:12 +01:00
xavcz
016935f4fa use node simpl-schema by aldeed to replace meteor/aldeed:simple-schema ; use the meteor collection2 core package as recommended 2017-01-10 10:09:24 +01:00
Sacha Greif
33e46fc6a9 Merge branch 'devel' of https://github.com/TelescopeJS/Telescope into devel 2017-01-09 15:42:30 +09:00
Sacha Greif
fc982bc20f Make voting generic (posts, comments, etc.) WIP 2017-01-09 15:42:24 +09:00
Phil Weber
7d30a42b81 #1517 - Implement configurable excerpt lengths 2017-01-08 18:55:00 -08:00
Sacha Greif
8f5891eb30 Merge branch 'devel' of https://github.com/TelescopeJS/Telescope into devel
# Conflicts:
#	packages/nova-categories/lib/resolvers.js
#	packages/nova-comments/lib/resolvers.js
#	packages/nova-core/lib/containers/withList.js
#	packages/nova-posts/lib/resolvers.js
#	packages/nova-users/lib/resolvers.js
2017-01-08 16:25:30 +09:00
Sacha Greif
2d627a9609 Refactor withList to use non-incremental pagination to work around polling+fetchMore incompatibility 2017-01-07 16:44:50 +09:00
xavcz
6f69aff0fe make all 'collectionList' resolvers take care of collection.getParameters(terms) + add default parameters (order on categories, postId on comments) 2017-01-05 15:53:41 +01:00
xavcz
817a81b7fc re-enable server-side method Posts.increaseClicks 2017-01-05 07:52:34 +01:00
xavcz
746da29d72 semver bump: 1.0.0 🚀 2016-12-27 11:58:58 +01:00
xavcz
b04fabb449 more clean-up 2016-12-23 20:58:10 +01:00
xavcz
1558531c84 update grapqhl-tools to be able to ask for terms as JSON type, propTypes on UsersMenu 2016-12-20 15:19:13 +01:00
Sacha Greif
e6324788dc rollback version change for now to fix issue on run 2016-12-20 10:55:11 +09:00
Sacha Greif
fa7987d67a v0.3.0 2016-12-20 09:50:14 +09:00
Sacha Greif
163eec76fc clean up resolver 2016-12-20 09:28:17 +09:00
Sacha Greif
70ddd87039 update to apollo-client 0.5.22; small fixes and clean-up; Posts.parameters.get -> Posts.getParameters; add sorting to withList (even though it doesn't work yet); add getParameters to all collections; 2016-12-18 19:04:11 +09:00
Sacha Greif
f384b78cd2 rework withList reducer; fix post slug bug 2016-12-15 10:10:18 +09:00
Sacha Greif
8591b49ea3 show log in form when creating new post when not logged in; small fixes 2016-12-14 11:29:52 +09:00
Sacha Greif
4e1a82c130 Callbacks.add -> addCallback; and other callback functions 2016-12-13 11:40:24 +09:00
Sacha Greif
1bf4933ebb clean up Telescope imports 2016-12-13 11:32:23 +09:00
Sacha Greif
381cdc7cff Telescope.headtags -> Headtags; Telescope.actions -> Actions; Telescope.reducers -> Reducers; Telescope.operateOnItem -> operateOnItem; TODO: fix withMessages 2016-12-12 16:43:23 +09:00
Sacha Greif
98fef8ef62 Telescope.settings.get -> getSetting 2016-12-12 15:00:56 +09:00
Sacha Greif
dd0df7dfc5 Telescope.utils -> Utils 2016-12-12 11:34:28 +09:00
Sacha Greif
a2d7b7c2ef Telescope.graphQL.foo -> GraphQLSchema.foo 2016-12-12 10:41:50 +09:00
Sacha Greif
5e1e124a8f Telescope.callbacks -> Callbacks; Telescope.createCollection -> createCollection 2016-12-12 10:24:34 +09:00
Sacha Greif
292a5e5566 various fixes: upgrade react-apollo; handle array fields in forms; fix "daily" view 2016-12-12 09:55:24 +09:00