Commit Graph

5168 Commits

Author SHA1 Message Date
Justin f029c81d5f Fix break words for longer message contents 2022-10-03 11:14:13 -04:00
Alex Gleason ca9abf3e5a
MediaGallery: fix "Show content" button 2022-10-03 10:10:31 -05:00
Justin 89af43df91 Add tests for ChatPane component 2022-10-03 11:03:43 -04:00
Justin dbee414ebc Add tests for ChatWidget component 2022-10-03 09:15:54 -04:00
marcin mikołajczak ff0b1b28ca Convert ModalRoot to TSX+FC
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-10-01 15:38:08 +02:00
Alex Gleason 7a54e07966
Video: fix default aspect ratio (16:9) 2022-09-30 20:32:24 -05:00
Alex Gleason af49171cb9
fullscreen.js --> fullscreen.ts 2022-09-30 19:53:59 -05:00
Alex Gleason 0b7416b6e5
Video: convert to TSX+FC 2022-09-30 19:37:35 -05:00
Alex Gleason cc3e8ebd3b
MediaGallery: clean up unused code, rearrange useEffect 2022-09-30 18:11:05 -05:00
Alex Gleason 1069546b50
MediaGallery: convert to TSX+FC (first pass) 2022-09-30 18:05:23 -05:00
Alex Gleason 775cfad4dc
Restore .floating-link for now 2022-09-30 14:19:22 -05:00
Alex Gleason 6d77e0327f
Make .emojione styles global again 2022-09-30 13:35:26 -05:00
Alex Gleason d3683ab7ef
StatusContent: migrate more to css, fix SpoilerButton on dark theme 2022-09-30 13:15:37 -05:00
Alex Gleason 0d5dfad8cc
Move StatusContent css into status-content.css 2022-09-30 12:59:52 -05:00
Alex Gleason 3b2b1ab05f
Move .instance-description to css file 2022-09-30 12:27:52 -05:00
Justin c63ed1af15 Refactor Chat Settings and add into Preferences page 2022-09-30 13:01:49 -04:00
Justin 65cdaeb886 Fix query key when not search query is present 2022-09-30 10:28:19 -04:00
Justin 7fde4a0c5c Small UI improvements to chat 2022-09-30 10:22:55 -04:00
Justin b8bbac31e5 Improve 'In Review' UX 2022-09-29 13:57:25 -04:00
Justin dc6c2657df Fix nested button structure 2022-09-29 13:54:18 -04:00
Justin d40fe483ef Push accounts into Redux store 2022-09-29 13:36:35 -04:00
Justin b590c062aa Show Skeleton when changing chats 2022-09-29 13:13:10 -04:00
Alex Gleason 78543292f1
Merge branch 'chats' of gitlab.com:soapbox-pub/soapbox into chats 2022-09-29 11:24:11 -05:00
Alex Gleason 40b8bab7ab
Chats: strip HTML when copying message text to clipboard 2022-09-29 11:23:49 -05:00
Justin 4c936fe6e0 Merge remote-tracking branch 'origin/chats' into chats 2022-09-29 12:04:28 -04:00
Justin 9d20d0d032 Fix order of flattenPages func 2022-09-29 12:04:23 -04:00
Alex Gleason 7722ce5e68
Chats: don't update own messages from streaming (for now) 2022-09-29 10:58:58 -05:00
Justin b0ea57b9b9 Merge remote-tracking branch 'origin/chats' into chats 2022-09-29 09:46:39 -04:00
Justin 0a8fa3e635 Add ability to report a Chat Message 2022-09-29 09:45:57 -04:00
Alex Gleason de78926142
ChatsPage: add settings cog 2022-09-28 19:39:22 -05:00
Alex Gleason f8199ab701
ChatPageNew: support account search to start a new chat 2022-09-28 19:35:28 -05:00
Alex Gleason acdd999c5c
Chats: display component at /chats/new 2022-09-28 19:26:49 -05:00
Alex Gleason e582eda17e
Route /chats/new to ChatIndex 2022-09-28 19:16:20 -05:00
marcin mikołajczak 01b2eed2e4 Merge branch 'compose-upload-fix' into 'develop'
Fix editing media descriptions

See merge request soapbox-pub/soapbox!1805
2022-09-28 22:39:56 +00:00
marcin mikołajczak 0dbfd600bc Fix editing media descriptions
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-09-29 00:15:30 +02:00
marcin mikołajczak 2239221856 Don't display WhoToFollow panel if empty
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-09-29 00:06:37 +02:00
marcin mikołajczak 972881be85 Merge branch 'migrations-tsx' into 'develop'
TS/FC: Migrations page

See merge request soapbox-pub/soapbox!1803
2022-09-28 21:57:27 +00:00
marcin mikołajczak 5a703bbf50 TS/FC: Migrations page
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-09-28 23:49:50 +02:00
Alex Gleason 2791d3453a
Chats: update chat cache in streaming 2022-09-28 15:55:56 -05:00
Alex Gleason d6e107dd0d
Chats: do routing a simpler way (keep context wrapper but set chat from route) 2022-09-28 15:38:05 -05:00
Alex Gleason 3ce5925280
useChat --> useChatActions 2022-09-28 15:20:59 -05:00
Alex Gleason 9c43f4b51e
UI: delete Gab groups commented routes 2022-09-28 13:39:45 -05:00
Alex Gleason e8b7fd8db8
Route /chats/:chatId to ChatPage component, cleanup UI imports, nuke ChatRoom (he cry) 2022-09-28 13:37:56 -05:00
Justin 002fef27a3 Add StatContext to store global stat state 2022-09-27 16:05:19 -04:00
Justin 058d0cec0b Merge remote-tracking branch 'origin/develop' into chats 2022-09-27 15:43:30 -04:00
Justin 17c2958df1 Use query key system 2022-09-27 15:42:24 -04:00
Alex Gleason 8772d19128 Merge branch 'more-country-codes' into 'develop'
CountryCodeDropdown: support +55, +351

See merge request soapbox-pub/soapbox!1801
2022-09-27 19:29:38 +00:00
Chewbacca 89057abc7b Merge branch 'improve-people-to-follow' into 'develop'
Improve "People to Follow" widget

See merge request soapbox-pub/soapbox!1800
2022-09-27 19:27:24 +00:00
Justin 1a124c2eab Fix fade when scrolling on ChatList 2022-09-27 10:50:01 -04:00
Justin c40651150c Merge remote-tracking branch 'origin/develop' into chats 2022-09-27 10:41:20 -04:00
Justin d4cf5dc2b9 Remove unneeded disabled button on Bio step
We don't require users to have bios, so we shouldn't force them to add one
during the onboarding steps in order to proceed to the next step without
"skipping" it.
2022-09-27 10:35:42 -04:00
Justin 90c122bf3f Update leave chat summary 2022-09-27 10:18:12 -04:00
Justin facd4e95f5 Add tests for new Who To Follow panel 2022-09-27 09:58:49 -04:00
Alex Gleason a0d595c7df
CountryCodeDropdown: support +55, +351 2022-09-26 15:00:01 -05:00
Justin 63bd9a21fc Update spacing on Widgets 2022-09-26 15:23:51 -04:00
Justin 1d69b66e4b Use React Query for suggestions 2022-09-26 15:22:00 -04:00
marcin mikołajczak c1618026a7 Fix share route
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-09-23 23:12:44 +02:00
Justin f662023480 Add other actions for non-current-user messages 2022-09-23 13:00:40 -04:00
Justin 9768203f1b Open chat pane on action 2022-09-23 12:53:55 -04:00
Justin 0003b7323a Fix errant fetches to the silence endpoint 2022-09-23 09:48:52 -04:00
Justin 641bf1268d Fix loading state for chat-list 2022-09-23 09:24:20 -04:00
Justin 7335a3a0d3 Change color of last message text if unread 2022-09-23 09:08:46 -04:00
Justin 31b1f3ec97 I18n 2022-09-23 09:07:22 -04:00
Justin 0576565c83 Merge remote-tracking branch 'origin/chats' into chats 2022-09-23 09:04:05 -04:00
Justin e8b547565e Add options to the ChatListItem 2022-09-23 09:04:01 -04:00
Alex Gleason c8adde735f
ChatPage: fix height on mobile (where ThumbNavigation is present) 2022-09-22 17:38:00 -05:00
Alex Gleason 3c9ffd30b1
ChatPageSidebar: add new chat icon (non-functional) 2022-09-22 17:18:27 -05:00
Alex Gleason cbd7089166
ChatPageSidebar: refactor search 2022-09-22 17:06:42 -05:00
Alex Gleason 7cf1943364
Add chatsSearch feature 2022-09-22 16:52:31 -05:00
Alex Gleason 10b9a4eb4e
Chats: don't make mark as read hit the API again 2022-09-22 16:34:20 -05:00
Alex Gleason 075cb15940
Add utils/queries, refactor streaming 2022-09-22 16:28:05 -05:00
Alex Gleason c12999a438
Chats: use v2 endpoint if supported 2022-09-22 16:06:15 -05:00
Alex Gleason fa919c217b
Create ChatSearchInput component 2022-09-22 15:24:11 -05:00
marcin mikołajczak 904e93bd8e Fix ReplyMentionsModal crash
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-09-22 22:00:32 +02:00
Alex Gleason 46d309ae45
ChatListItem: restrict height of last_message content 2022-09-22 14:58:31 -05:00
Alex Gleason 2e728d99f9
ChatWidget: remove 'direct' streaming (it uses the 'user' stream) 2022-09-22 14:36:46 -05:00
Alex Gleason 1a4a6382d3
Make account.chats_onboarded true by default for backwards-compatibility 2022-09-22 14:34:07 -05:00
Justin 516d35e8ab Increase space between ChatListItems 2022-09-22 14:13:15 -04:00
Justin 045fe8dcbb Improve spacing and height of Chats page 2022-09-22 14:03:12 -04:00
Justin 89c1225976 Hide widget if not onboarded 2022-09-22 12:55:29 -04:00
Justin 93b11ec99c Add new airplane icon for sending messages 2022-09-22 12:45:01 -04:00
Justin 7c134a0c29 Switch buttons 2022-09-22 12:39:52 -04:00
Justin 4466326f8c Change copy to 'Delete for both' 2022-09-22 11:51:12 -04:00
Alex Gleason 624d139a5a
Chats: MAKE WEBSOCKET STREAMING WORK!!! 2022-09-21 18:26:18 -05:00
Alex Gleason c3edd71bf3
Chats: WIP streaming mutations 2022-09-21 17:52:20 -05:00
Alex Gleason 15a5c01cef
Chats: ['chats'] --> ['chats', 'search'] 2022-09-21 13:47:46 -05:00
Alex Gleason 90c8096f9e
Merge remote-tracking branch 'origin/develop' into chats 2022-09-21 10:18:29 -05:00
Alex Gleason 097954d2f1 Merge branch 'compose-focus-fix' into 'develop'
ComposeForm: don't focus the input constantly, add usePrevious hook

Closes #1105

See merge request soapbox-pub/soapbox!1796
2022-09-20 13:19:44 +00:00
Alex Gleason bf590d26c4
ChatPageMain: add back button for mobile 2022-09-19 16:28:32 -05:00
Alex Gleason 4ea422abb5
ChatsPage: remove pb-36 2022-09-19 15:13:55 -05:00
Alex Gleason 9dc1a0caec
ChatPage: allow selecting a chat on mobile 2022-09-19 15:12:18 -05:00
Alex Gleason 19ef0fee20
ChatPage: size the height correctly for mobile 2022-09-19 15:02:16 -05:00
Alex Gleason d1b10f72aa
ChatPage: collapse on mobile 2022-09-19 14:56:23 -05:00
Alex Gleason ad521e528e
ChatListItem: prevent links from being clicked 2022-09-19 14:33:22 -05:00
Alex Gleason e42f0bc9b0
ChatPageMain: allow switching chats before onboarding 2022-09-19 14:19:46 -05:00
Alex Gleason 6ce7c0a8cb
Chats: clean up some eslint errors 2022-09-19 14:14:39 -05:00
Alex Gleason 39f682a472
Self status typofix 2022-09-19 14:04:51 -05:00
Alex Gleason 6b57b62b38
ComposeForm: don't focus the input constantly, add usePrevious hook 2022-09-19 13:55:08 -05:00
Alex Gleason 23bbaf329b
UI: remove QueryClient (it's already in containers/soapbox, how did that happen?) 2022-09-19 13:04:51 -05:00
Alex Gleason d7243c0e91
Merge remote-tracking branch 'origin/develop' into chats 2022-09-19 13:01:40 -05:00
Alex Gleason 1e6993975c Merge branch 'delete-modal-fix' into 'develop'
Fix account deletion modal

See merge request soapbox-pub/soapbox!1794
2022-09-17 21:33:37 +00:00
marcin mikołajczak 4d74158eb7 Merge branch 'compose' into 'develop'
Allow multiple compose forms

See merge request soapbox-pub/soapbox!1786
2022-09-17 21:00:29 +00:00
marcin mikołajczak 5e7b78bbac Fix media upload with uninitialized compose forms
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-09-17 21:13:02 +02:00
marcin mikołajczak 42d68bddf9 handleDrop changes
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-09-17 09:29:36 +02:00
Alex Gleason ca4a5370c1
OutlineBox: allow passing div props through 2022-09-16 13:34:53 -05:00
Justin 88d848ee17 Add welcome screen to Chats main page 2022-09-16 14:33:31 -04:00
Alex Gleason 5297227501
My god is the everlasting sky! Your god lives beneath him. 2022-09-16 13:30:55 -05:00
marcin mikołajczak d3693fe89a Don't accept 'default' as id for ComposeForm
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-09-16 20:18:12 +02:00
Alex Gleason 7fe97e8075
QuotedStatus: move testId to highest component 2022-09-16 12:44:11 -05:00
Alex Gleason 06a0ca704c
Improve styles of ConfirmationModal, fix account deletion modal 2022-09-16 12:37:28 -05:00
Alex Gleason 2eb08aced9
Create OutlineBox component
Visual container for QuotedStatus and Accounts in some scenarios
2022-09-16 12:24:33 -05:00
Alex Gleason c19fe9f167
Strip leading @ from password reset input 2022-09-16 10:42:05 -05:00
marcin mikołajczak 9b51b16e78 update test
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-09-16 16:25:01 +02:00
Justin 9cb34dc45c Refactor ChatPage into multiple components 2022-09-16 10:22:43 -04:00
Justin acdb89e698 Move ChatPage into subfolder 2022-09-16 10:13:45 -04:00
marcin mikołajczak c31e13b0a5 `default` cleanup
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-09-16 15:53:20 +02:00
marcin mikołajczak cb3df8211c Merge remote-tracking branch 'soapbox/develop' into compose
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-09-16 15:40:29 +02:00
Justin 4352d17217 Add snooze icon to ChatList 2022-09-16 08:57:09 -04:00
marcin mikolajczak b38e5ec8e3 tests i can't run locally for now
Signed-off-by: marcin mikolajczak <git@mkljczk.pl>
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-09-16 10:40:19 +02:00
Justin 8e35d1dd92 Improve infinite scroll 2022-09-15 10:49:09 -04:00
marcin mikolajczak 6cce0a0291 Introduce useCompose hook
Signed-off-by: marcin mikolajczak <git@mkljczk.pl>
2022-09-14 20:01:44 +02:00
marcin mikołajczak 3509fd1c6e Merge branch 'follow-requests-link' into 'develop'
Link to /follow_requests in SidebarMenu

See merge request soapbox-pub/soapbox!1792
2022-09-14 14:39:58 +00:00
Justin 6240ea5a23 Finish i18n for DMs 2022-09-14 10:35:32 -04:00
marcin mikolajczak 859f39a9d3 Link to /follow_requests in SidebarMenu
Signed-off-by: marcin mikolajczak <git@mkljczk.pl>
2022-09-14 16:12:23 +02:00
Alex Gleason 749a11dd77 Merge branch 'feed-insertion-algorithm' into 'develop'
Feed insertion algorithms

See merge request soapbox-pub/soapbox!1782
2022-09-14 13:18:19 +00:00
Justin a60d6770af Remove temp verification 2022-09-13 16:38:28 -04:00
Justin 5eab883fd1 Chats -> i18n 2022-09-13 16:33:34 -04:00
Justin ea1583dcac Fix chat silence bug 2022-09-13 16:24:19 -04:00
Alex Gleason 6a5c22faaa
SoapboxConfig: fix being unable to add streamfield items when the list is empty 2022-09-13 14:17:54 -05:00
Justin 45afb665b9 Add chat settings to chat main page 2022-09-13 14:11:22 -04:00
Alex Gleason 474d7da02a
linearAlgorithm: add test, fix selection order 2022-09-13 11:57:28 -05:00
Alex Gleason 4ff9918fe0
abovefoldAlgorithm: add basic tests 2022-09-13 11:44:21 -05:00
Justin 0ae515ef18 Refactor ChatSearch and add various states 2022-09-13 11:55:13 -04:00
Justin 0952fe6dae Add Chat context api to main page 2022-09-13 11:18:46 -04:00
marcin mikolajczak 9822266561 do i really understand this?
Signed-off-by: marcin mikolajczak <git@mkljczk.pl>
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
Signed-off-by: marcin mikolajczak <git@mkljczk.pl>
2022-09-13 13:49:50 +02:00
Alex Gleason 22061daf95 Merge branch 'instance-html' into 'develop'
LandingPage: treat as HTML field, prefer short_description

See merge request soapbox-pub/soapbox!1789
2022-09-13 03:46:11 +00:00
Alex Gleason 32a0ae2d1f Merge branch 'followers-tsx' into 'develop'
Followers/Following: convert to TSX

See merge request soapbox-pub/soapbox!1784
2022-09-13 03:45:57 +00:00
Alex Gleason daa3360581 Merge branch 'favourites-tsx' into 'develop'
Favourites tsx

See merge request soapbox-pub/soapbox!1783
2022-09-13 03:45:44 +00:00
Alex Gleason f9858841fd Merge branch 'moderation-modal' into 'develop'
Moderation modal

Closes #1082

See merge request soapbox-pub/soapbox!1788
2022-09-13 03:45:21 +00:00
Alex Gleason da75e0016d
LandingPage: treat as HTML field, prefer short_description 2022-09-12 18:23:23 -05:00
Justin 09d73b1c45 Refactor chat component naming 2022-09-12 16:46:19 -04:00
Justin 8e1aa9f9e8 Add dark mode support to main page 2022-09-12 15:33:08 -04:00
Justin 5b73afbc4e Remove unused prop 2022-09-12 15:05:19 -04:00
Justin 56c617bd32 Merge branch 'alex-chats' into chats 2022-09-12 14:50:02 -04:00
Justin 81bfc06990 Add tests 2022-09-12 14:42:15 -04:00
Justin a68aeb8464 Start changing the way search works 2022-09-12 14:42:06 -04:00
Alex Gleason 0bf6dad97f
Merge remote-tracking branch 'origin/develop' into feed-insertion-algorithm 2022-09-12 10:47:14 -05:00
Alex Gleason 94c2f5e978
abovefoldAlgorithm: remove accidental console.log 2022-09-12 10:47:01 -05:00
Alex Gleason d221897cd0
Followers/Following: unavailable --> isUnavailable, move useEffect's down 2022-09-12 10:17:49 -05:00
Alex Gleason 74d2325b58
Favourites: unavailable --> isUnavailable, move useEffect's down 2022-09-12 10:14:57 -05:00