Commit graph

379 commits

Author SHA1 Message Date
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
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
62368a0d48 NovaForm -> SmartForm 2016-12-20 09:27:16 +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
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
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
1bf4933ebb clean up Telescope imports 2016-12-13 11:32:23 +09:00
xavcz
a0b7e64788 fix voting callback & operateOnItem, fire stopLoading on Vote component when user is not logged in 2016-12-12 11:17:13 +00:00
xavcz
d31ce63a17 fix withMessages 2016-12-12 11:00:25 +00: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
aa85aaf9c8 Telescope.routes -> Routes, addRoute; no more indexRoute 2016-12-12 11:12:41 +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
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
5116256a88 adapt the proposal of #1522 to apollo branch 2016-12-09 09:55:07 +01:00
xavcz
2638023f4e harmonize apollo branch to be on v0.27.5 2016-12-08 23:48:16 +01:00
xavcz
ede37fb9ce small tweak on user edit form 2016-12-08 10:23:12 +01:00
xavcz
990f21aae1 withMessages hoc to avoid having redux code in components 2016-12-08 09:42:50 +01:00
Sacha Greif
991748e154 make user edit form work 2016-12-08 11:03:20 +09: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
xavcz
5071a86266 fix categories container & forms 2016-12-06 10:29:10 +01:00
xavcz
94edfc01ec small tweaks on loadMore buttons, update graphql-tools (JSON scalar fix), fix remove callback on comments 2016-12-06 09:45:36 +01:00
Sacha Greif
42dbc8efb6 fix offset pagination 2016-12-06 14:48:35 +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
Sacha Greif
714d89a1ed pass extra fields to form fragment 2016-12-04 19:00:01 +09:00
xavcz
2e72185a2c wip on comments 2016-12-02 13:43:26 +01: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
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
Sacha Greif
868194de59 id -> documentId in single document resolver; various fixes 2016-11-30 16:54:58 +09:00
Sacha Greif
d5be97b56c split out withCurrentUser and loadCurrentUser for now 2016-11-30 10:50:04 +09:00
Sacha Greif
25f685c06c fix user helpers; add Users.canViewField helper 2016-11-30 10:21:25 +09:00
xavcz
ddd71eebd1 withCurrentUser belongs to nova:users 2016-11-29 14:08:24 +01:00
xavcz
7b4e64e97f voting: missing imports, patch on vote helpers in component (uncomment for debug) 2016-11-29 12:27:26 +01:00
Sacha Greif
002599e51e add preload:true option to Users schema 2016-11-29 18:54:12 +09:00