Commit graph

231 commits

Author SHA1 Message Date
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
3666401364 withList: allow terms to be passed via options too, then merge it with the one passed via props ; disable events on CategoriesEditForm (todo: re-enable events client-side) 2017-01-05 17:11:38 +01:00
xavcz
b3bcb4de87 improve Nova's redux utils (configureStore, addAction, addReducer) 2017-01-04 14:31:38 +01:00
xavcz
746da29d72 semver bump: 1.0.0 🚀 2016-12-27 11:58:58 +01:00
Dominic Tracey
7ac15e28d3 updates per @xavcz 2016-12-26 10:30:59 -05:00
xavcz
45e032d7b9 update npm react deps, clean some dead code/packages, use query deduplication sent to the server (apollo-client 0.5.24) 2016-12-23 12:01:16 +01:00
Sacha Greif
6c5fc6c0dd fix small issue with users edit form when logged out 2016-12-22 10:47:44 +09:00
xavcz
4ca3cab7ce use networkStatus === 1 instead of loading prop from apollo-client hoc 2016-12-21 18:14:13 +01:00
xavcz
78ba0e8530 more work on currentUser, withApp is not needed anymore (=== withCurrentUser), fix missing import on users schema 2016-12-21 12:04:43 +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
fbff53d761 fix user log in bug (maybe?) 2016-12-20 09:45:55 +09:00
Sacha Greif
03794b1275 fix reducer bug (I think?); remove console.logs 2016-12-20 09:26:36 +09:00
Sacha Greif
f6182c4cd8 copy array results to make reordering work 2016-12-19 08:30:19 +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
eba96bc890 clean up withCurrentUser a bit 2016-12-16 10:01:49 +09:00
Sacha Greif
b931fb0df2 pass entire mutation fragment to NovaForm after all 2016-12-15 12:07:13 +09:00
Sacha Greif
f384b78cd2 rework withList reducer; fix post slug bug 2016-12-15 10:10:18 +09:00
Sacha Greif
83f72c9646 when a document is edited, test if it still belongs to a list or not 2016-12-14 22:35:02 +09:00
Sacha Greif
94f6dd969d go back to loading current user via GraphQL query for now in withCurrentUser 2016-12-14 13:17:39 +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
b8662441e0 Telescope.strings.add -> addString 2016-12-12 15:10:53 +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
aa85aaf9c8 Telescope.routes -> Routes, addRoute; no more indexRoute 2016-12-12 11:12:41 +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
8fa846fda3 withSingle -> withDocument 2016-12-12 09:54:16 +09:00
Sacha Greif
b6b31222fd remove limit on categories and daily lists; re-export stuff from nova:core; add copyHoCs function; 2016-12-10 21:58:40 +09:00
xavcz
b86ac7c12b withApp: class with lifecycle hooks so it can preload fields from feature/custom packages; fix Users.getSettings; ssr: plug again the cookies to the request 2016-12-09 13:26:46 +01:00
xavcz
2638023f4e harmonize apollo branch to be on v0.27.5 2016-12-08 23:48:16 +01:00
xavcz
990f21aae1 withMessages hoc to avoid having redux code in components 2016-12-08 09:42:50 +01:00
Sacha Greif
ce103c568c make withSingle accept slug parameter; no need for variables in withMutation anymore; port newsletter methods to Apollo 2016-12-07 15:30:40 +09:00
xavcz
37f4bdaf91 Telescope.components.Foo -> Components.Foo, same for related components utils like registerComponent, getRawComponent & replaceComponent 2016-12-06 18:06:29 +01:00
Sacha Greif
711a7b1153 add withMutation helper HoC for mutations that return a single JSON object 2016-12-06 16:25:50 +09:00
Sacha Greif
deb35f0772 finish daily view 2016-12-06 14:46:28 +09:00
Sacha Greif
c73b7611c0 making some progress on daily view 2016-12-05 16:30:31 +09:00
Sacha Greif
ac713264a3 move optimistic UI logic to withList using reducers option instead of inside individual mutations; add extraFragment option to form wrapper and handle query and mutation fragments differently; give remove mutation a return value; pass Terms in listTotal resolver 2016-12-05 09:29:49 +09:00
xavcz
2d42bd5bf3 fragmentName from fragment in withRemove; destructure args in usersSingle resolver; ShowIf on PostsNewForm & UsersEditForm; connect as the "most-right" HOC on Newsletter 2016-12-01 16:12:39 +01:00
Sacha Greif
212cdf48c2 Telescope.components.CanDo -> ShowIf 2016-12-01 16:09:54 +09:00
Sacha Greif
56c04baf3b use new group-based syntax for permissions; various tweaks 2016-12-01 15:29:07 +09:00
Sacha Greif
09cce8f978 get fragmentName from fragment, no need to define it separately anymore 2016-12-01 12:13:27 +09:00
xavcz
41d19f52aa v0.27.5 2016-11-30 12:07:45 +01:00
xavcz
4b4d40f6b3 fix updateQueries: queryName for every hoc => queryToUpdate on withNew/Remove ≠ queryName on withSingle; fix removeSuccessCallback redirect; telescope object on user = blackbox 2016-11-30 10:31:19 +01:00
Sacha Greif
b16c7ce0be put withCurrentUser back in nova:core after all… 2016-11-30 16:58:28 +09:00