Commit graph

683 commits

Author SHA1 Message Date
Justin
f16da850fd Add React Query 2022-08-31 13:20:53 -04:00
Justin
8fbe8a90e0 Use current trends for hashtag searching in composer 2022-08-22 10:16:25 -04:00
Justin
1d5428be2c Merge branch 'react-query' into 'develop'
Introduce React Query

See merge request soapbox-pub/soapbox-fe!1666
2022-08-09 18:02:22 +00:00
052547dc6b Fix debounce in search, clear accountId on submit from navbar
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-08-08 17:36:11 +02:00
Justin
15f536e949 Use redux auth for now 2022-08-08 11:15:47 -04:00
Justin
7836698dc2 Add React Query 2022-08-08 10:29:02 -04:00
05b32fab0e Update tests
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-08-08 14:05:22 +02:00
c59f3947cb Allow to search for posts from given account
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-08-08 13:40:41 +02:00
74735eeedd Don't increase replies count when editing a post
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-08-06 14:39:05 +02:00
2ea76f74cf fix test
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-08-05 00:38:00 +02:00
81af0e64f1 Use different confirmation modal/snackbar text for post editing
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-08-03 23:55:14 +02:00
ac83c9c18c Support mutes duration
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-07-31 11:57:31 +02:00
Alex Gleason
46de5efc69
Always send the "to" field 2022-07-25 12:24:03 -05:00
Justin
c53b7a984f Refetch timeline if user stops following someone 2022-07-20 14:23:11 -04:00
2ba135bdce Allow reusing media_attachments if editing posts
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-07-18 23:31:40 +02:00
f80925c061 Show quoted post when editing a quote
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-07-17 20:17:21 +02:00
marcin mikołajczak
c5b751a68d Merge branch 'announcements' into 'develop'
Announcements

See merge request soapbox-pub/soapbox-fe!1614
2022-07-16 19:02:10 +00:00
583e4171f1 Add some tests
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-07-13 19:57:22 +02:00
ec040ff253 Merge remote-tracking branch 'soapbox/develop' into announcements
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-07-09 23:54:04 +02:00
d5a6e978e6 Announcements
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-07-09 23:47:58 +02:00
Alex Gleason
3874d1d9ef
Merge remote-tracking branch 'origin/develop' into feed-suggestions 2022-07-09 15:02:45 -05:00
Alex Gleason
8bcf5fe82d
Update tests for Jest v28, apply uuid hack
https://github.com/uuidjs/uuid/pull/616#issuecomment-1111012599
2022-07-09 14:25:19 -05:00
f5c3497ece Merge remote-tracking branch 'soapbox/develop' into announcements 2022-07-09 19:35:03 +02:00
b3b6a7e4bc Announcements
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-07-07 23:10:09 +02:00
Alex Gleason
e9112506c6
FIX ACTION TESTS TYPES 2022-07-06 17:02:44 -05:00
Alex Gleason
e47e33e21c
FIX ROOT STATE TYPE!!!!! 2022-07-06 15:54:30 -05:00
Justin
da98a1e137 Build Feed Suggestions 2022-07-06 14:30:06 -04:00
Alex Gleason
073dd4f37a
Fix types in reducer tests 2022-07-06 11:53:55 -05:00
Justin
afabe9525d Fix test 2022-06-29 11:10:00 -04:00
Justin
9e6bb5264a Handle error state for carousels 2022-06-29 11:10:00 -04:00
Justin
1f3785c920 Add FeedCarousel 2022-06-29 11:10:00 -04:00
Justin
33bebf5bba Add "carousel" redux logic 2022-06-29 11:10:00 -04:00
Alex Gleason
8e7d3d45a9 Merge branch 'sw-skipwaiting' into 'develop'
ServiceWorker: display a toast to skipWaiting and reload tabs when new ServiceWorker is ready

See merge request soapbox-pub/soapbox-fe!1480
2022-06-27 14:48:42 +00:00
marcin mikołajczak
dfbe05b390 Merge branch 'ts' into 'develop'
Reducers: TypeScript

See merge request soapbox-pub/soapbox-fe!1562
2022-06-25 06:00:44 +00:00
Alex Gleason
d5ffce844d
ServiceWorker: display loading screen while updating 2022-06-24 11:52:57 -05:00
Alex Gleason
23c37229b8
Don't dismiss ServiceWorker snackbar 2022-06-23 18:03:35 -05:00
4e545f0638 Reducers: TypeScript
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-24 00:33:23 +02:00
Alex Gleason
9fff48a49f
Alerts: refactor notifications_container 2022-06-23 17:29:10 -05:00
Alex Gleason
8a13984be1
Alerts: convert to TSX 2022-06-23 16:07:00 -05:00
Alex Gleason
3e205a9610
ServiceWorker: click toast to install update (dirty) 2022-06-23 15:20:41 -05:00
b9fc2c6e58 reducers/scheduled_statuses: TypeScript
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-23 20:45:46 +02:00
7f8594d05e Reducers: TypeScript
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-22 22:54:21 +02:00
Alex Gleason
a16230780e
Merge remote-tracking branch 'origin/develop' into ts 2022-06-21 13:57:59 -05:00
Alex Gleason
3b0543eb66
reducers/status-hover-card: add tests 2022-06-21 13:39:47 -05:00
Alex Gleason
04d7a161cd
Merge remote-tracking branch 'origin/develop' into hoverstatus 2022-06-20 17:39:41 -05:00
88f690824c Update tests
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-20 22:44:40 +02:00
419ab93077 Reducers: TypeScript
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-20 21:48:11 +02:00
af695e3812 Reducers: TypeScrpt + fixes
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-20 16:46:45 +02:00
ewwwwwwww
3299d0b972 fix reply hover blocking bug 2022-06-17 12:39:17 -07:00
Justin
de7fa347df Specifically import the single lodash function 2022-06-17 07:37:53 -04:00
ewwwwwwww
cc7058349f add status reply hover 2022-06-16 21:19:53 -07:00
7b5114a1b8 prefer TypeScript for tests
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-12 23:07:06 +02:00
e78108efe2 TypeScript
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-12 20:15:34 +02:00
5fec879148 Fix mutes test, prefer TypeScript for tests
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-12 16:30:48 +02:00
cdbb88d2e0 TypeScript, React.FC
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-12 16:14:46 +02:00
2786fa257b Use import type in some places
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-09 21:08:51 +02:00
a8a1567917 Merge remote-tracking branch 'soapbox/develop' into ts
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-09 00:05:04 +02:00
a66c174c2d Add normalizers, fix tests
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-08 23:43:27 +02:00
5fe442b684 ESLint: add no-duplicate-imports rule
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-07 22:21:18 +02:00
6c45dcb109 TypeScript, FC (reducers, search)
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-07 18:25:53 +02:00
41a2b1f08f Reducers: TypeScript, fixes
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-05 20:21:25 +02:00
65dff4e6a1 Reducers: TypeScript
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-05 15:05:44 +02:00
Justin
8847b3cc03 Decrement reply count when removing a status. 2022-06-01 09:13:07 -04:00
Justin
8433ff70b0 Add tests for account-notes action 2022-05-27 14:11:36 -04:00
Justin
517c21ae52 Add grouped notifications messaging 2022-05-24 17:11:47 -04:00
marcin mikołajczak
7c3d0c821b Merge branch 'mastodon-admin-api' into 'develop'
Mastodon admin API

See merge request soapbox-pub/soapbox-fe!1387
2022-05-21 18:23:45 +00:00
2ec9cacb27 Merge remote-tracking branch 'soapbox/develop' into familiar-followers
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-05-20 21:06:10 +02:00
marcin mikołajczak
21be58ecb4 Merge branch 'remove-from-followers' into 'develop'
Add 'Remove from followers'

See merge request soapbox-pub/soapbox-fe!1408
2022-05-20 18:58:36 +00:00
960dd0ed89 Merge remote-tracking branch 'soapbox/develop' into familiar-followers
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-05-20 20:57:14 +02:00
Alex Gleason
d296811851
Suggestions: store as OrderedSet 2022-05-19 20:16:11 -05:00
Alex Gleason
cee7e3761f
Fix suggestions test 2022-05-19 12:31:16 -05:00
Justin
c6c65a0d48 Add infinite scroll to suggestions onboarding 2022-05-19 12:29:28 -04:00
Alex Gleason
a20328b66c Revert "Merge branch 'search-results-tsx' into 'develop'"
This reverts merge request !1384
2022-05-17 15:37:16 +00:00
Alex Gleason
ef54e44702 Merge branch 'search-results-tsx' into 'develop'
Search results: convert to TSX

See merge request soapbox-pub/soapbox-fe!1384
2022-05-17 15:18:43 +00:00
e21ec04be6 Add 'Remove from followers'
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-05-17 13:07:34 +02:00
Justin
e2b0994780 Add test 2022-05-17 06:40:43 -04:00
Justin
6bdc9b4d2f Fix redraft: don't set compose id 2022-05-17 06:31:19 -04:00
f70d44f67c Display familiar followers on Mastodon
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-05-16 19:32:35 +02:00
88b91bce3e Mastodon admin API
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-05-16 17:40:47 +02:00
Alex Gleason
debfcaeb1e
Merge remote-tracking branch 'origin/develop' into mastodon-pagination 2022-05-15 13:08:12 -05:00
Alex Gleason
2e192153ed
Fix reducer tests 2022-05-14 14:13:58 -05:00
Alex Gleason
88404f32b6
Search reducer: convert to TypeScript 2022-05-14 13:18:31 -05:00
Alex Gleason
5bbfb0cc39
Convert Trends, Suggestions, and TrendingStatuses reducers to TypeScript 2022-05-14 13:07:32 -05:00
Alex Gleason
165d6d197e
Rip out identity_proofs 2022-05-14 12:01:21 -05:00
Alex Gleason
0b8fbdfbb9
Contexts: remove unnecessary isReplyTo function (now handled by connectNodes) 2022-05-13 17:17:06 -05:00
Alex Gleason
8ed6d9fc6b
Test context loops 2022-05-13 17:12:36 -05:00
Alex Gleason
e6617af0f9
Refactor context test, remove dumb fixtures 2022-05-13 16:58:38 -05:00
Alex Gleason
b4e27e5dcd
Contexts: stop spewing tombstones everywhere 2022-05-13 16:34:45 -05:00
Alex Gleason
75745d2c46
Clean up contexts test 2022-05-13 15:08:38 -05:00
Alex Gleason
0329cc4d04
Clean up contexts test 2022-05-13 14:42:15 -05:00
Alex Gleason
2290bfb334
Contexts reducer: convert to TypeScript 2022-05-13 14:30:11 -05:00
Alex Gleason
02726cfcc3
Fix paginated comments, improve Mastodon tombstones 2022-05-13 13:07:11 -05:00
c540ae2201 Restore session management
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-05-12 17:45:40 +02:00
Alex Gleason
b64be353cc
eslint: indent switch statements 2022-05-11 16:06:35 -05:00
Alex Gleason
ae01b845de
eslint: enforce spacing of imports (and infix ops) 2022-05-11 12:40:34 -05:00
Alex Gleason
99b76bb745
Fix LandingPage test. Fix rememberSoapboxConfig not importing (!!) 2022-05-10 19:11:26 -05:00
Alex Gleason
a657b6374c
Search: fix crash on paginating hashtags 2022-05-06 11:36:55 -05:00
ffbb6f51de use camelCase
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-05-04 20:36:46 +02:00
f6f8ef99d9 Merge remote-tracking branch 'soapbox/develop' into edit-posts
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-05-03 21:29:38 +02:00
Justin
e2f24cdd6b Account for multiple rules 2022-05-03 08:15:11 -04:00
Alex Gleason
35a731ffd9
Restore localStorage onboarding code 2022-05-02 15:55:52 -05:00
Alex Gleason
86ecda84c5
rule_id --> rule_ids 2022-05-02 14:50:16 -05:00
Alex Gleason
9cbe98f131
Reports: submit rule_ids to API 2022-05-02 14:39:08 -05:00
Justin
86fb9bf704 Add ProgressBar and dark mode support 2022-05-02 13:55:08 -04:00
Justin
6baec89484 Fix test 2022-05-02 13:55:08 -04:00
Justin
ac53ed11b9 Add tests for Rules redux action/reducer 2022-05-02 13:55:08 -04:00
Justin
924b042c84 Improve reporting modal 2022-05-02 13:55:07 -04:00
Alex Gleason
0fa58be38c
Catch instance/fetch error, only set instance_fetch_failed on 404 2022-05-02 11:46:18 -05:00
Alex Gleason
39b92b96fc
Store settings in IndexedDB even on unsupported backends 2022-04-29 23:15:41 -05:00
db56d9b16a Update tests, remove unused code
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-04-29 23:19:52 +02:00
387ebfc56c Allow editing posts on Mastodon
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-04-28 16:26:47 +02:00
Alex Gleason
19d579c2a0
createAsyncThunk(): .toString() --> .type 2022-04-25 15:47:47 -05:00
Alex Gleason
72e64780f7
Update tests relying on actions/instance 2022-04-25 14:27:09 -05:00
Alex Gleason
c6456a43b6
Convert actions/instance to use createAsyncThunk() 2022-04-25 14:17:05 -05:00
Alex Gleason
e64d93abcb
Fix Patron tests 2022-04-24 19:02:25 -05:00
Alex Gleason
73f086c680
Add "Donor" badge 2022-04-24 17:27:08 -05:00
Alex Gleason
3f9cc3cd04
Restore Patron features, context to TSX 2022-04-24 17:01:57 -05:00
Alex Gleason
7038d6a844
Convert a bunch of files to TypeScript 2022-04-24 14:28:07 -05:00
Alex Gleason
ea34a7f303
DELETE INTERSECTION OBSERVER ARTICLE 2022-04-22 13:13:40 -05:00
Alex Gleason
35396923be
Test rendering notifications 2022-04-16 19:03:33 -05:00
Alex Gleason
2ebf4777c2
Nuke the local uuid implementation 2022-04-15 20:00:03 -05:00
19aa4b254e Support 'status' notification type
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-04-14 22:14:54 +02:00
92a6058f26 typescript
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-04-14 17:50:47 +02:00
44b64d51c4 Merge remote-tracking branch 'soapbox/next' into next_ 2022-04-14 00:05:21 +02:00
2faaa75d9c tests
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-04-14 00:04:41 +02:00
50797119ff typescript
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-04-13 16:07:50 +02:00
Alex Gleason
934055557f
Fix sidebar reducer test 2022-04-12 20:23:45 -05:00
Alex Gleason
9c79ae386a
SidebarMenu: convert to tsx 2022-04-12 19:52:20 -05:00
b5ae9adf63 Chats: typescript
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-04-12 18:52:56 +02:00
2943b91034 Typescript, convert some components to functional
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-04-11 21:58:48 +02:00
fb3b88b80b reply mentions modalto tsx
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-04-10 10:20:12 +02:00
Alex Gleason
20aa17ce64 Merge branch 'next-status-loading' into 'next'
Next: Improve status loading, refactor Status components to TSX

See merge request soapbox-pub/soapbox-fe!1179
2022-04-04 21:36:47 +00:00
Alex Gleason
e88fe4a707
Clean up me usage 2022-04-04 14:24:55 -05:00
Alex Gleason
c51441c026
TypeScript: reducers/me 2022-04-04 12:44:05 -05:00
Justin
ed47cf5f09 Convert old tests to use "react-testing-library" 2022-04-04 11:53:47 -04:00
Alex Gleason
4a8f08e313
StatusActionBar: convert to tsx 2022-04-01 18:39:27 -05:00
Alex Gleason
836c02b388
Convert reducers/alerts to Typescript 2022-03-31 18:18:39 -05:00
Alex Gleason
7efa10e7e0
Convert reducers/admin to Typescript 2022-03-31 18:10:34 -05:00
Alex Gleason
dddba516fb
Convert selectors/index to Typescript 2022-03-31 17:00:31 -05:00
Alex Gleason
c0c758c103
Typescript: reducers/polls.ts 2022-03-26 16:20:45 -05:00
Alex Gleason
f83119bfc9
Filter statuses by full acct with @ symbol 2022-03-26 11:17:27 -05:00
Alex Gleason
24a78f7740
Merge remote-tracking branch 'origin/develop' into next 2022-03-26 11:15:06 -05:00
Alex Gleason
f7425d80eb
Add test for search_index with mentions 2022-03-26 10:45:45 -05:00
ea57d1c4a7 Fix filtering, allow filtering by mentioned usernames
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-03-26 10:57:48 +01:00
Alex Gleason
2940a3ff4d
Put Typescript in "strict" mode, fix or ignore errors 2022-03-24 14:27:27 -05:00
Alex Gleason
84d7d2ee38
Add @ts-ignore lines for strictFunctionTypes 2022-03-24 12:26:27 -05:00
Alex Gleason
67471638c3
Typescript: Start fixing strictFunctionTypes errors 2022-03-24 11:53:09 -05:00
Alex Gleason
14ec40ee95
Typescript: start fixing 'strict' mode errors 2022-03-23 21:43:36 -05:00
Alex Gleason
5cd894ab02
Truth Social 2022-03-21 13:14:26 -05:00
Alex Gleason
b3de700732
Fix Soapbox Config 2022-03-20 18:41:47 -05:00