Commit graph

4053 commits

Author SHA1 Message Date
xavcz
9891551567 remove queries and mutations on state dehydration, hide debug logs 2016-11-16 16:26:53 +01:00
xavcz
f5ef406bf7 got something ~working with a hacks on reactrouter:react-router-ssr 2016-11-16 16:17:12 +01:00
xavcz
620572887d no need to use withApollo in withCurrentUser 2016-11-16 11:02:19 +01:00
xavcz
9f4fe1a917 withCurrentUser hoc in nova:core 2016-11-15 18:33:16 +01:00
xavcz
600ab15c4d Apollo branch up to date with v0.27.4 2016-11-15 12:51:43 +01:00
xavcz
c8615d3439 v0.27.4 2016-11-15 10:44:01 +01:00
Xavier Cazalot
ef99d39aca Merge pull request #1508 from TelescopeJS/devel
v0.27.4 - latest version before Apollo official release
2016-11-15 10:34:54 +01:00
xavcz
52c50933e7 repair deepValue utils (error introduced by "errors linting" fix) 2016-11-15 10:17:27 +01:00
xavcz
28cf7a20c7 Update to Meteor 1.4.2.1, add npm babel-runtime, remove some Meteor packages constraints versions 2016-11-15 09:55:05 +01:00
xavcz
5152eb5a9f Update History.md 2016-11-15 09:28:39 +01:00
xavcz
4ae1c01eec complete eslint devDeps and fix lint errors 2016-11-15 09:02:30 +01:00
Xavier Cazalot
c842dfbf80 Merge pull request #1474 from moimikey/patch-1
add eslint with basic plugins and configuration. fixes #1470
2016-11-15 08:28:19 +01:00
Sacha Greif
5df3377418 clean up published_fields files; clean up unnecessary packages; more work on callbacks 2016-11-15 15:59:34 +09:00
xavcz
6893685b4f add action to categories and users mutation generators 2016-11-14 20:50:11 +01:00
xavcz
179f7bb1aa disable dependency between fragments (causes error on mutations) 2016-11-14 20:29:14 +01:00
xavcz
08a686f496 use Collection.fragments in queries/mutations 2016-11-14 20:27:23 +01:00
Sacha Greif
8689a4de73 clean up callbacks by moving logic to mutations and schema (autoValue) 2016-11-14 17:17:44 +09:00
xavcz
dd32c36f28 more work on removeSuccessCallback (wired with withRemove) ; add options noRemoveMutation (ex for UsersEdit) 2016-11-13 14:12:15 +01:00
xavcz
78802d6790 add query collectionListTotal (= list total count) on every collection by default, query list from the ui : getCollectionList(..) { collectionListTotal(..) collection(..) } ; withRemove "automation" based on these queries 2016-11-13 13:43:36 +01:00
xavcz
35302d291f wip on withRemove HOC included in withEdit; fix posts.remove.validate callback 2016-11-12 17:28:08 +01:00
xavcz
bb0d4f2076 extract withNew & withEdit HOCs from FormWithMutation component, wrap FormWrapper with them 2016-11-12 15:49:07 +01:00
xavcz
be0576d125 fix PostsEditForm (no need of wrapping in container, it already has the data); clean unnecessary propTypes / import 2016-11-12 14:11:36 +01:00
xavcz
c2117a6fcc use fragments for categories, add optional fragment prop to nova forms 2016-11-11 17:36:32 +01:00
xavcz
51c605942a withApp hoc ; fix PostsItem (VoteContainer -> Vote) 2016-11-11 11:23:39 +01:00
Xavier Cazalot
4717100099 Merge pull request #1507 from sherryxiao1988/patch-1
Fix react setState race condition
2016-11-11 10:52:02 +01:00
Shundan Xiao
7a4c540d06 Fix react setState race condition
when multiple components need to call addToAutoFilledValues (I am using the avatar(xavcz:nova-forms-upload) plugn along with the subscription package), this state is concurrently called by multiple components when they are rendered. autofilledValues sometimes only holds the last value.
2016-11-11 17:39:39 +08:00
xavcz
df58d8a9dd Merge branch 'apollo' of https://github.com/TelescopeJS/Telescope into apollo 2016-11-11 10:38:26 +01:00
xavcz
b4ddddf5a7 withCategoriesList HOC with the new syntax 2016-11-11 10:35:29 +01:00
Sacha Greif
884c6a00b9 withVoteMutation 2016-11-11 18:29:49 +09:00
Sacha Greif
7a170786c8 use better syntax for HoCs 2016-11-11 18:25:47 +09:00
Sacha Greif
d31fc6b70a continue HoC refactoring, get rid of function syntax in withXYZ() after all 2016-11-11 18:19:18 +09:00
Sacha Greif
0ed0f24303 refactoring PostsListContainer and CommentsListContainer into HoCs 2016-11-11 16:42:19 +09:00
xavcz
fb0bf92140 fix mutations on categories 2016-11-10 22:30:46 +01:00
xavcz
322882d78b utils.stripTelescopeNamespace used in graphql schema gen, components, helpers when requesting a collection schema 2016-11-10 22:18:51 +01:00
xavcz
83020ce65c small tweaks: no more users.current subscription on startup, fix child context App, fix getting started callback 2016-11-10 22:18:36 +01:00
xavcz
2b79907ffd escape .telescope on users schema when generating graphql schemas on app startup, fix thumbnails of dummy content (got caught in the refactoring 🌊) 2016-11-10 16:53:06 +01:00
xavcz
6e2819919e keep the user.telescope settings schema for migration and backward compatibility with full-Meteor powered app 2016-11-10 16:00:17 +01:00
xavcz
db5605bd2e use a more generic prefix (__) for users settings and adapt Users.methods.setSetting 2016-11-10 14:22:47 +01:00
xavcz
400b4d8c72 load categories with their own container (with loading handled in the presentational component); handle login / logout / register with fixed client.resetStore (apollo 0.5.1) 2016-11-10 10:54:43 +01:00
Sean Song
f764ca2b46 finish the "status bug" off with its field schema legacy(autoValue) changed to nova(defaultValue) 2016-11-10 10:36:35 +01:00
Sacha Greif
7e344476a4 update to Meteor 1.4.2.1 2016-11-10 17:27:06 +09:00
Sacha Greif
378cd01ef2 make sure user is loaded before loading app 2016-11-10 17:26:55 +09:00
Sacha Greif
a621d01b1b first try at making PostsListContainer a HoC 2016-11-10 15:39:04 +09:00
Sacha Greif
9fcb9f753d make sure we don't affect the props passed by CommentsListContainer 2016-11-10 10:55:38 +09:00
Sacha Greif
4e4c4d0b20 use Meteor.user() in AppContainer for now 2016-11-10 10:11:43 +09:00
Sacha Greif
a2f2a2e0fe fix comment reply callback 2016-11-09 21:54:56 +09:00
Sacha Greif
1ec194576e fix status bug; add status to list query 2016-11-09 21:54:31 +09:00
Sacha Greif
0f6aeb3670 small fixes on user mutations 2016-11-09 11:55:28 +09:00
Sacha Greif
cab93c1128 re-enable comment nesting 2016-11-09 11:55:12 +09:00
Sacha Greif
80bf6ddb12 Merge branch 'apollo' of https://github.com/TelescopeJS/Telescope into apollo
# Conflicts:
#	packages/nova-users/lib/schema.js
2016-11-09 09:31:15 +09:00