Commit graph

81 commits

Author SHA1 Message Date
Alex Gleason
7c7855e7a1
Groups: make authorize/reject use component state, update designs 2023-03-20 17:46:10 -05:00
Alex Gleason
d08178f5fc
Groups: use entity store for pending requests 2023-03-20 15:54:06 -05:00
Chewbacca
4985db7dea Update group roles to owner/admin/user 2023-03-20 15:41:12 -04:00
Chewbacca
89bdc9b4a1 Move Promote/Demote admin into entity store 2023-03-20 15:41:12 -04:00
Alex Gleason
e6621a802b
Make popular and suggested groups share the Group store 2023-03-16 13:18:36 -05:00
Alex Gleason
74ebd560e6
Revert useEntity array changes, do that in the schema parser 2023-03-15 14:19:13 -05:00
Chewbacca
6b30671875 Add Account entity and improve Block/Ban support for Groups 2023-03-15 14:55:43 -04:00
Chewbacca
7070630eaf useVersion -> useBackend 2023-03-14 15:16:01 -04:00
Chewbacca
1b542c3ed7 Use Entities enum 2023-03-14 15:16:01 -04:00
Chewbacca
f4d2f42c01 Use new schema arg 2023-03-14 15:16:01 -04:00
Chewbacca
7be8218f0c Convert popular/suggested Groups to use Entities 2023-03-14 15:16:01 -04:00
Chewbacca
1d53f48904 Fix parser 2023-03-14 15:16:01 -04:00
Chewbacca
9d1c2df1a2 Use ZOD for group-members 2023-03-14 15:16:00 -04:00
Chewbacca
8a36561ec8 Use entities with Group Members 2023-03-14 15:15:26 -04:00
Alex Gleason
6ac57910bf Merge branch 'groupschema-tests' into 'develop'
Add group factory functions for tests, add a groupSchema test

See merge request soapbox-pub/soapbox!2344
2023-03-14 14:16:05 +00:00
Chewbacca
39d61eabda Merge branch 'entity-store-refactoring' into 'develop'
Entity store refactoring (improve performance, etc)

See merge request soapbox-pub/soapbox!2346
2023-03-14 14:12:14 +00:00
Alex Gleason
8547aeb517
Add useGetState hook 2023-03-13 17:45:35 -05:00
Alex Gleason
d0ceac9987
Pass zodSchema directly to entity hooks for safeParse validation 2023-03-13 16:23:11 -05:00
Alex Gleason
d12078a687
Use group factory functions in tests instead of normalizers 2023-03-13 14:55:59 -05:00
61ece4d271 Merge remote-tracking branch 'takver/fix-locale-parser' into fix-locale-parser
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2023-03-13 20:44:09 +01:00
Chewbacca
a9b79f72b4 Revert "Fix useGroupsPath test"
This reverts commit 487604b15a.
2023-03-13 13:02:41 -04:00
Alex Gleason
487604b15a
Fix useGroupsPath test 2023-03-13 11:54:22 -05:00
Alex Gleason
5278c8eb0f
Merge remote-tracking branch 'origin/develop' into groups-zod 2023-03-13 11:05:21 -05:00
Chewbacca
bd4c99b697 Fix tests 2023-03-13 11:36:08 -04:00
Alex Gleason
3d2331d20b
Make useGroups hooks use zod parser, update group types 2023-03-10 13:36:00 -06:00
Alex Gleason
cf541e83b3
Fix useGroupsPath test 2023-03-10 10:56:00 -06:00
Alex Gleason
be9d922047
Actually, do put relationships in their own list. And fix parsers not doing the right thing. 2023-03-09 15:35:50 -06:00
Alex Gleason
14a84e557c
Update useGroups queries with EntityStore improvements 2023-03-09 15:05:54 -06:00
Alex Gleason
d883f2f5bd
Group hooks: use new parser opt 2023-03-09 12:36:20 -06:00
Alex Gleason
9964491da5
First draft of GroupRelationship entity hooks 2023-03-09 11:47:24 -06:00
Alex Gleason
8923e7b5d0
Combine group hooks into one useGroups file 2023-03-09 11:24:53 -06:00
Alex Gleason
4c6d13e4ef
Use EntityStore for Groups 2023-03-09 11:21:27 -06:00
Chewbacca
8fd3b99887 Use Groups Discovery if user has no groups 2023-03-01 14:16:09 -05:00
Alex Gleason
dc597ac765
Add useClickOutside hook for Floating UI elements 2023-02-06 17:17:12 -06:00
Alex Gleason
cb74b0a37c
useOnScreen: memoize IntersectionObserver, fix types 2023-02-06 15:41:09 -06:00
Alex Gleason
b2188016c2
Add back some polyfills not covered by core-js 2023-01-23 15:00:34 -06:00
Alex Gleason
300d3a0200
Refactor tests with mock stores 2023-01-15 12:50:14 -06:00
Alex Gleason
0a90c3c377
Add tests to components with signup CTAs 2023-01-15 12:35:34 -06:00
Alex Gleason
82981efe9a
Add useRegistrationStatus hook 2023-01-13 19:13:15 -06:00
Alex Gleason
273266d9ac
useDimensions: don't return null 2023-01-05 16:56:05 -06:00
Alex Gleason
fa1d7937a7
Fix mentions in RTL 2022-12-23 17:34:14 -06:00
Alex Gleason
058a75deec
useLocale(): refactor to return direction 2022-12-23 11:12:48 -06:00
Chewbacca
90fcc8ad05 Fix tests 2022-12-20 17:45:29 -05:00
Chewbacca
50f5e2af38 Merge remote-tracking branch 'origin/develop' into chats 2022-11-28 10:03:40 -05:00
Alex Gleason
5bb30b6282
Merge remote-tracking branch 'origin/develop' into chats 2022-11-27 15:30:00 -06:00
Alex Gleason
d3b67e5167
Add useInstance() hook 2022-11-26 10:43:46 -06:00
785c6b57e3 RTL support, use Stack and HStack in more places
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-11-25 18:04:11 +01:00
Justin
dbee414ebc Add tests for ChatWidget component 2022-10-03 09:15:54 -04:00
Alex Gleason
90c8096f9e
Merge remote-tracking branch 'origin/develop' into chats 2022-09-21 10:18:29 -05:00
Alex Gleason
6b57b62b38
ComposeForm: don't focus the input constantly, add usePrevious hook 2022-09-19 13:55:08 -05:00