Commit Graph

8614 Commits

Author SHA1 Message Date
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
948d66bcab Merge branch 'group-requests' into 'develop'
Groups: improve pending memberships, standardize "authorize/reject" buttons throughout the UI

See merge request soapbox-pub/soapbox!2370
2023-03-23 17:05:14 +00: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
2674c060ad GroupMembers: showLoading if pending members are being fetched 2023-03-22 20:26:53 -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
c5b1f23bda GroupMembers: use X-Total-Count if available 2023-03-22 19:22:12 -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
f016ac1e6d GroupMembershipRequests: invalidate query upon authorize/reject 2023-03-22 18:48:24 -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
1eed61c386 GroupMembershipRequests: don't clear dismissed entries until new content is fetched 2023-03-22 16:42:08 -05:00
b47cdb368f useGroupMembershipRequests: use useDismissEntity hooks 2023-03-22 16:31:49 -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
b127025167 Move useCreateEntity into its own hook as well, because why not 2023-03-22 15:31:58 -05:00
b76559f24a Add useDismissEntity hook, update useDeleteEntity to match 2023-03-22 14:40:18 -05:00
3d72e6305f EntityStory: add dismissEntities action for deleting ids from a list 2023-03-22 14:34:10 -05:00
4049de50aa Add separate useDeleteEntity hook accepting a callback 2023-03-22 14:08:08 -05:00
ee1b1b4397 GroupMembers: fix pending row borders and dark mode 2023-03-22 13:47:18 -05:00
1954848c65 Tabs: vertically center the counter 2023-03-22 13:23:45 -05:00
71c7c4adc7 Merge branch 'group-widgets' into 'develop'
Add MyGroupsPanel, improve layout on various group pages

See merge request soapbox-pub/soapbox!2374
2023-03-22 16:03:02 +00:00
cc2fbc0208 Merge branch 'redirect-group-posts' into 'develop'
Redirect group statuses to a custom path

See merge request soapbox-pub/soapbox!2371
2023-03-22 16:02:58 +00:00
f7a964e6ee Merge branch 'delete-group' into 'develop'
Add hook to delete Group

See merge request soapbox-pub/soapbox!2369
2023-03-22 15:58:27 +00:00
32ca5f09ee I18n 2023-03-22 11:23:35 -04:00
ad98bf45cc Add hook to delete Group 2023-03-22 11:20:03 -04:00
65070f6519 Add MyGroupsPanel, improve layout on various group pages 2023-03-21 16:34:15 -05:00
69d667d6c6 "Authorized" --> "Approved" 2023-03-21 11:56:48 -05:00
be7a462fc4 Merge branch 'edit-group-fixes' into 'develop'
Edit group fixes

See merge request soapbox-pub/soapbox!2372
2023-03-21 03:16:08 +00:00
f61e0d889a "Blocked members" --> "Banned members" 2023-03-20 21:56:15 -05:00
cc3585f319 Manage group: add headers 2023-03-20 21:52:44 -05:00
f369a7c765 Use "danger" text for deleting account and group 2023-03-20 21:42:54 -05:00
a8be701ea0 Fix PendingGroupsRow test 2023-03-20 21:31:07 -05:00
2196d9e3e5 yarn i18n 2023-03-20 21:23:10 -05:00
fb8d543f7c Redirect group statuses to a custom path 2023-03-20 20:57:49 -05:00
b87af6a71c AuthorizeRejectButtons: fix styles, make less fragile 2023-03-20 20:11:21 -05:00
3a12b316d9 GroupPage: add pending members counter 2023-03-20 20:02:58 -05:00