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
|
dd0df7dfc5
|
Telescope.utils -> Utils
|
2016-12-12 11:34:28 +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
|
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 |
|
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
|
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
|
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 |
|
Sacha Greif
|
404dd6214c
|
work on withCurrentUser
|
2016-11-29 12:35:00 +01:00 |
|
Sacha Greif
|
384cc3ccc2
|
small fixes
|
2016-11-27 08:39:25 +09:00 |
|
Sacha Greif
|
6fbfe4399b
|
simplify structure of mutation HoCs, improve form component names
|
2016-11-26 11:17:43 +09:00 |
|
Sacha Greif
|
e57ac73a50
|
clean up console.log
|
2016-11-25 12:24:21 +09:00 |
|
Sacha Greif
|
043f7df114
|
use refetch() instead of updateQueries for now
|
2016-11-25 12:22:13 +09:00 |
|
Sacha Greif
|
698141e6fa
|
clean up and comment withNew
|
2016-11-25 10:58:32 +09:00 |
|
Sacha Greif
|
b0bd39f657
|
cleaning up fragments and debugging
|
2016-11-24 16:58:08 +09:00 |
|
Sacha Greif
|
395a5926be
|
make movies package work independently; nova:base-routes -> nova:routing
|
2016-11-24 15:47:51 +09:00 |
|
Sacha Greif
|
dfe2d2d0df
|
give edit forms their own FormWithSingle data loader
|
2016-11-23 17:22:29 +09:00 |
|
Sacha Greif
|
e09022b350
|
add fragments inside components
|
2016-11-23 11:07:48 +09:00 |
|
Sacha Greif
|
dd13571291
|
cleaning up
|
2016-11-23 08:41:50 +09:00 |
|
xavcz
|
1137fb96aa
|
adapt the Telescope.createCollection api to all the collections, some clean up in old containers files
|
2016-11-22 18:14:51 -05:00 |
|
Sacha Greif
|
9e8fd36a75
|
more work on withNew, withEdit, withRemove
|
2016-11-22 21:12:14 +09:00 |
|
Sacha Greif
|
612e817a3f
|
update apollo packages; use new fragments syntax (see https://github.com/apollostack/graphql-fragments#migrating); create new MoviesDetails, MoviesEditForm, MoviesItem components; simplify withEdit and withNew containers; create new withSingle container
|
2016-11-22 16:15:00 +09:00 |
|
Sacha Greif
|
f445239763
|
clean up Movies collection declaration; implement new check system for mutations, tie everything together
|
2016-11-21 19:23:43 +09:00 |
|
Sacha Greif
|
bfdc921523
|
add Telescope.createCollection and use it in Movies package to centralize everything; also create withList2
|
2016-11-21 16:18:08 +09:00 |
|
xavcz
|
afcb8f12c5
|
provide a nicer way to define options/config of a withList hoc (maybe re-inventing the wheel there), remove outdated CollectionContainers components
|
2016-11-20 02:25:16 +01:00 |
|
xavcz
|
6c14712a74
|
work on withList and queries generation
|
2016-11-19 20:01:17 +01:00 |
|
xavcz
|
4ac4c4cd06
|
centralize withList, withNew, withEdit, withRemove HOCs to nova:core
|
2016-11-19 11:20:18 +01:00 |
|
xavcz
|
4487464a33
|
remove duplicated withCurrentUser
|
2016-11-17 14:12:13 +01:00 |
|