Commit Graph

85 Commits

Author SHA1 Message Date
e3fa58c0da Support Group mutes 2023-06-27 09:24:03 -04:00
989d99f908 Add useBatchedEntities hook for relationships 2023-06-25 15:57:38 -05:00
9f53a81fa1 Add useTransaction hook 2023-06-23 14:12:12 -05:00
65f8299c1f EntityStore: change error type from any to unknown 2023-06-23 11:35:16 -05:00
ad1718b5f9 Add useFollow, useChangeEntity hooks 2023-06-22 23:17:40 -05:00
e01ee84ee9 ProfileHoverCard: use useAccount hook, add usePatronUser hook 2023-06-21 16:20:07 -05:00
412fe84d13 FIX THE TYPE ERRORS 2023-06-20 14:24:39 -05:00
53988e2581 Prevent lookup if not enabled 2023-06-02 10:28:10 -04:00
90f7c71256 Hide Group context in Compose button if not Group member 2023-05-11 14:41:31 -04:00
c343cce5ea Merge remote-tracking branch 'origin/develop' into group-lookup 2023-04-17 15:55:05 -04:00
c5c5bd0d62 Add ability to update Group tags 2023-04-17 10:21:59 -04:00
2d52c8c3e4 Add support for Group tags 2023-04-17 10:21:23 -04:00
5d29666b41 Add support for trending tags 2023-04-13 07:33:52 -04:00
cd890c8641 Handle error from API on Group Save 2023-04-12 16:56:56 -04:00
4e822a80dd Add useGroupLookup hook 2023-04-12 15:51:30 -05:00
17757ea326 Add useEntityLookup hook 2023-04-12 15:45:24 -05:00
7720df2ebe Merge remote-tracking branch 'origin/develop' into group-gallery 2023-04-11 11:01:37 -05:00
3d7cccd984 EntityStore: allow customizing import position 2023-04-11 10:04:31 -05:00
ce0557546a Groups: add group gallery 2023-04-10 15:22:08 -05:00
0c45889206 useEntities: drop X-Total-Count if it's less than the number of entities in the response (that doesn't make sense) 2023-04-04 16:02:44 -05:00
87fd56ffee Merge branch 'fix-search-groups' into 'develop'
Add 'path' to dep list

See merge request soapbox-pub/soapbox!2400
2023-04-04 18:23:12 +00:00
8cca3c4e6e Merge remote-tracking branch 'origin/develop' into group-modal 2023-04-04 12:29:51 -05:00
3d1c0fa813 Fix groups index being updated when a new group is created 2023-04-04 11:16:26 -05:00
909f294165 Add 'path' to dep list 2023-04-04 11:58:34 -04:00
a486b317d4 Fetch account and relationship with entity store 2023-04-04 08:11:03 -04:00
a4992eec4d isLoading --> isSubmitting for action hooks 2023-04-03 15:19:10 -05:00
659c186394 ManageGroupModal: use internal state instead of Redux 2023-04-03 15:06:20 -05:00
a530ec0202 EntityStore: switch all hooks to use a callback function 2023-03-23 19:22:26 -05:00
9d12173b87 Add useLoading hook 2023-03-23 18:44:44 -05:00
aa7e2f6965 Refactor hooks with useEntityRequest 2023-03-23 16:22:15 -05:00
45c12e9b65 Make EntityCallbacks a generic function 2023-03-23 16:09:04 -05:00
7248331742 Add useEntityRequest hook 2023-03-23 16:04:42 -05:00
ac9718e6ed Return isLoading from useCreateEntity and useDeleteEntity 2023-03-23 15:30:45 -05:00
1b569b6c82 useEntity: accept an EntityRequest object 2023-03-23 15:15:04 -05:00
b4c3248791 useEntityActions: fix isLoading 2023-03-23 15:09:00 -05:00
1c5a6d8b41 useDeleteEntity: refactor with EntityRequest 2023-03-23 15:05:34 -05:00
50f65bc7c9 useCreateEntity: pass an EntityRequest, refactor 2023-03-23 14:52:38 -05:00
ad3f8acbe5 EntityStore: allow passing an EntityRequest object to useEntities 2023-03-23 14:14:53 -05:00
4783a41b78 useDeleteEntity: support onSuccess callback 2023-03-23 10:45:49 -05:00
1949651b9a Merge remote-tracking branch 'origin/develop' into group-requests 2023-03-23 10:23:06 -05:00
75b0262f9a Move pendingCount logic to useEntities 2023-03-22 21:28:48 -05:00
6929975aaa useIncrementEntity: fix optimistic counter 2023-03-22 19:58:40 -05:00
402daec9c3 Add useIncrementEntity hook 2023-03-22 19:45:34 -05:00
c4d0dd568e EntityStore: let totalCount be undefined, don't try to set it from the local count 2023-03-22 19:11:11 -05:00
cb8363d179 EntityStore: make fetching the first page override the old list 2023-03-22 18:47:10 -05:00
e2510489c5 EntityStore: support query invalidation 2023-03-22 18:17:28 -05:00
a256665aad EntityStore: add support for X-Total-Count from the API 2023-03-22 17:39:58 -05:00
61fb434a54 Improve API of parseEntitiesPath 2023-03-22 16:12:05 -05:00
8f67d2c76f EntityStore: consolidate types, fix type of "path" 2023-03-22 16:06:10 -05:00
d2fd9e0387 Export new entity hooks 2023-03-22 15:32:56 -05:00