Commit graph

716 commits

Author SHA1 Message Date
Alex Gleason
3bbc4cffe8
actions/status-hover-card: convert to TypeScript 2022-06-20 16:55:08 -05:00
7d0247bc27 Merge remote-tracking branch 'soapbox/develop' into ts
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-20 21:48:58 +02:00
419ab93077 Reducers: TypeScript
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-20 21:48:11 +02:00
Alex Gleason
01b46e249b
actions/alerts: access properties more carefully 2022-06-20 11:52:36 -05:00
Alex Gleason
6530fcf37b
actions/auth: don't call deprecated DELETE /api/sign_out 2022-06-20 11:27:40 -05:00
af695e3812 Reducers: TypeScrpt + fixes
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-20 16:46:45 +02:00
877cae1bf4 Fix deleteStatus tests
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-20 11:19:09 +02:00
d8cb953955 Actions: TypeScript
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-20 09:26:45 +02:00
f3b0230480 Actions: TypeScript
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-19 22:54:20 +02:00
4719cf6b5b Actions: TypeScript
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-19 21:26:57 +02:00
86511dc26b Actions: TypeScript
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-19 20:54:02 +02:00
ae3277bbb3 Merge remote-tracking branch 'soapbox/develop' into ts
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-19 20:39:49 +02:00
6214084890 Actions: TypeScript
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-19 20:38:51 +02:00
0115f064a0 Actions: TypeScript
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-18 20:58:42 +02:00
fe636bc4e4 fix tests
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-18 13:27:05 +02:00
ee5453c18f Merge remote-tracking branch 'soapbox/develop' into ts 2022-06-18 12:11:03 +02:00
91a828555a Actions: TypeScript
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-18 12:10:50 +02:00
ee55241792 Fix type errors, use () => RootState for getState
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-18 11:51:02 +02:00
ewwwwwwww
3299d0b972 fix reply hover blocking bug 2022-06-17 12:39:17 -07:00
Alex Gleason
c35564c62b
ChatBox: convert to TSX 2022-06-17 13:45:52 -05:00
Justin
20e0692012 Merge branch 'lodash-imports' into 'develop'
Specifically import the single lodash function

See merge request soapbox-pub/soapbox-fe!1540
2022-06-17 13:47:23 +00:00
Justin
0e1302587a Improve subscription button on header 2022-06-17 07:44:34 -04: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
cfacc23f5c Actions: TypeScript
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-15 22:11:36 +02:00
3a09a91dd7 Actions: TypeScript
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-13 23:23:49 +02:00
7b5114a1b8 prefer TypeScript for tests
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-12 23:07:06 +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
708c3a9e64 TypeScript: actions
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-10 19:56:22 +02:00
7d8c33625d Merge remote-tracking branch 'soapbox/develop' into ts 2022-06-10 12:37:40 +02:00
Alex Gleason
122876025d Merge branch 'lookup-relationship' into 'develop'
Account lookup: fetch relationship

See merge request soapbox-pub/soapbox-fe!1518
2022-06-09 20:19:59 +00:00
Alex Gleason
28f0274b46
Fix actions/accounts test for accountLookup 2022-06-09 15:10:49 -05:00
Alex Gleason
f5024d6c8e
Account lookup: fetch relationship 2022-06-09 14:59:27 -05:00
7578ca2ee0 Merge remote-tracking branch 'soapbox/develop' into ts
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-09 21:49:25 +02:00
Alex Gleason
00f6df3f37
Properly import quotes from reblogs 2022-06-09 14:29:01 -05: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
95e037f8c0 TypeScript, React.FC
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-09 20:56:14 +02:00
Alex Gleason
53cb5f723b
actions/accounts: remove n/a test 2022-06-08 16:18:51 -05:00
Alex Gleason
1aef2eaf22
Redirect to /login if viewing an account 401's 2022-06-08 16:00:12 -05: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
marcin mikołajczak
bdb958a613 Merge branch 'ts' into 'develop'
Reducers: TypeScript

See merge request soapbox-pub/soapbox-fe!1498
2022-06-06 19:03:34 +00:00
Alex Gleason
7e7dd19b02 Merge branch 'chats-fixes' into 'develop'
Small chats fixes & TSX conversions

See merge request soapbox-pub/soapbox-fe!1496
2022-06-06 18:31:27 +00:00
Justin
d0b9de6341 Merge branch 'add-accounts-action-tests' into 'develop'
Add more tests for accounts actions

See merge request soapbox-pub/soapbox-fe!1493
2022-06-06 14:09:00 +00:00
65dff4e6a1 Reducers: TypeScript
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-05 15:05:44 +02:00
5bc8108e26 Move account migration to settings
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-05 08:56:22 +02:00
Alex Gleason
e6c25a1887
AutosuggestAccountInput: convert to TSX 2022-06-04 17:47:40 -05:00
Justin
04d1879e5b Add more tests for accounts actions 2022-06-03 16:46:42 -04:00
Justin
6eb6588492 Finish 'fetchAccountByUsername' tests 2022-06-02 11:37:18 -04:00
Justin
14d614e055 Start adding 'fetchAccountByUsername' tests 2022-06-02 10:52:00 -04:00
Justin
7f7b1aded5 Merge branch 'add-accounts-action-tests' into 'develop'
Add tests for 'createAccount' and 'fetchAccount'

See merge request soapbox-pub/soapbox-fe!1483
2022-06-01 19:23:01 +00:00
Justin
6ba13239c6 Return the promise 2022-06-01 13:45:49 -04:00
Justin
190d94a438 Add tests for 'createAccount' and 'fetchAccount' 2022-06-01 12:58:01 -04:00
Justin
8847b3cc03 Decrement reply count when removing a status. 2022-06-01 09:13:07 -04:00
de2422a97e TypeScript, FC
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-05-30 21:03:52 +02:00
7a35aa727b import from 'soapbox/…
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-05-30 20:23:55 +02:00
9b5c342a27 Merge remote-tracking branch 'soapbox/develop' into ts 2022-05-28 18:03:22 +02:00
1e74c6d3d7 TypeScript, FC, styles and fixes
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-05-28 18:03:19 +02:00
Justin
3972e16e43 Add tests for alerts action 2022-05-27 15:22:20 -04:00
Justin
656f8038f6 Merge branch 'account-notes-test' into 'develop'
Add tests for account-notes action

See merge request soapbox-pub/soapbox-fe!1463
2022-05-27 18:32:36 +00:00
Justin
8433ff70b0 Add tests for account-notes action 2022-05-27 14:11:36 -04:00
Justin
4ad4414e08 Convert about action to TypeScript 2022-05-27 11:38:01 -04:00
Justin
a335c06f13 Convert blocks action to TypeScript 2022-05-26 13:37:22 -04:00
Alex Gleason
7902908504 Merge branch 'gate-imports' into 'develop'
Fix feature gating of Pleroma data imports

See merge request soapbox-pub/soapbox-fe!1446
2022-05-24 18:47:30 +00:00
Alex Gleason
2c69cc5de4 Merge branch 'loading' into 'develop'
Pageload improvements

Closes #976

See merge request soapbox-pub/soapbox-fe!1441
2022-05-24 18:17:39 +00:00
Alex Gleason
8c00f58162
Export: fix Mastodon fqn 2022-05-24 14:14:22 -04:00
682d2a3647 Avoid inline message definitions
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-05-24 12:24:26 +02:00
Alex Gleason
4992862943
fetchMe: don't await verify_credentials if cached 2022-05-22 13:02:40 -05: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
10bdd664b0 split functions for admin api actions
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-05-21 08:35:33 +02: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
bd6ce38e5d
checkEmailAvailability: fail silently 2022-05-20 09:58:59 -05:00
Alex Gleason
c3ef55613d Merge branch 'infinite-scroll-suggestions' into 'develop'
Add infinite scroll to suggestions onboarding

See merge request soapbox-pub/soapbox-fe!1430
2022-05-19 21:18:49 +00:00
Justin
c6c65a0d48 Add infinite scroll to suggestions onboarding 2022-05-19 12:29:28 -04:00
48290ab540 Convert import/export data to TypeScript, use FileInput component
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-05-19 15:24:17 +02:00
Alex Gleason
9248051846 Merge branch 'favourite-import-skip' into 'develop'
Don't import status from favourite

See merge request soapbox-pub/soapbox-fe!1423
2022-05-18 19:25:04 +00:00
Alex Gleason
4866028728
Don't import status from favourite 2022-05-18 14:06:22 -05:00
Justin
54ef361bcc Allow waitlisted users to verify their SMS 2022-05-18 14:11:18 -04:00
e21ec04be6 Add 'Remove from followers'
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-05-17 13:07:34 +02:00
Justin
6bdc9b4d2f Fix redraft: don't set compose id 2022-05-17 06:31:19 -04:00
Alex Gleason
5b9537ca07
actions/soapbox: ensure we wait til the bitter end 2022-05-16 15:12:26 -05:00
f70d44f67c Display familiar followers on Mastodon
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-05-16 19:32:35 +02:00
Alex Gleason
300bee0587
Fix password reset feature detection 2022-05-16 12:23:31 -05: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
Justin
e57e2258f8 Merge branch 'skip-api-requests-for-guests' into 'develop'
Skip API requests if logged out

See merge request soapbox-pub/soapbox-fe!1385
2022-05-14 18:49:56 +00:00
Justin
3d76cd21e6 Skip API requests if logged out 2022-05-14 14:33:14 -04:00
Alex Gleason
165d6d197e
Rip out identity_proofs 2022-05-14 12:01:21 -05:00
Alex Gleason
9f8a74b376
Paginated context: fetch the status before ancestors/descendants 2022-05-13 17:25:58 -05:00
Alex Gleason
02726cfcc3
Fix paginated comments, improve Mastodon tombstones 2022-05-13 13:07:11 -05: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
Justin
c879f82b48 Remove beta page 2022-05-10 15:50:35 -04:00
marcin mikołajczak
8f09fcab2e Merge branch 'edit-posts' into 'develop'
Allow editing posts on Mastodon

See merge request soapbox-pub/soapbox-fe!1271
2022-05-04 18:57:34 +00:00
ffbb6f51de use camelCase
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-05-04 20:36:46 +02:00
53152d9174 Do not redirect to /messages after editing status
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-05-04 20:33:49 +02:00
Justin
528906fe31 Set 'system' as default theme 2022-05-04 09:35:45 -04:00
b8be588b60 Post editing: Compose improvements
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-05-03 23:00:07 +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
Alex Gleason
81938ec4d0
EditProfile: fix formdata submission 2022-05-02 22:45:58 -05:00
Alex Gleason
23fb01d32d
Set onboarding on account creation 2022-05-02 16:24:19 -05:00
Alex Gleason
35a731ffd9
Restore localStorage onboarding code 2022-05-02 15:55:52 -05:00
Alex Gleason
83a0988daa
submitReport(): don't call getState() a million times 2022-05-02 14:40:34 -05:00
Alex Gleason
9cbe98f131
Reports: submit rule_ids to API 2022-05-02 14:39:08 -05: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
Alex Gleason
ce73b30237
actions/me: do it with a const 2022-04-29 21:41: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
Alex Gleason
2cbea4aa5b
Upgrade axios to v0.27, fix EditProfile uploads 2022-04-29 16:01:46 -05: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
c6456a43b6
Convert actions/instance to use createAsyncThunk() 2022-04-25 14:17:05 -05:00
Alex Gleason
73f086c680
Add "Donor" badge 2022-04-24 17:27:08 -05:00
Alex Gleason
f672f46809
WIP Paginated Context API 2022-04-23 22:31:49 -05:00
Alex Gleason
ea34a7f303
DELETE INTERSECTION OBSERVER ARTICLE 2022-04-22 13:13:40 -05:00
Alex Gleason
41ab4f0a44
Onboarding: use a server setting instead of localStorage, fix steps when data is already present 2022-04-20 12:08:49 -05:00
Alex Gleason
1deb4dfd2d
Merge remote-tracking branch 'origin/next' into next-onboarding 2022-04-20 08:23:15 -05:00
Alex Gleason
b72f398bad
Use feature detection for frontendConfigurations 2022-04-19 18:33:13 -05:00
Alex Gleason
5731b9b1c7
Redirect all /auth routes 2022-04-19 14:37:48 -05:00
Alex Gleason
67b0b6a317
Add BirthdayPanel 2022-04-18 23:30: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
Alex Gleason
72879da710
actions/security: fix parseVersion import 2022-04-15 18:32:56 -05:00
Alex Gleason
b47278582a
actions/security: conditionally use truthsocial password reset endpoint 2022-04-15 18:13:24 -05:00
Alex Gleason
05068460e0
ChatList: use Virtuoso 2022-04-15 15:19:34 -05:00
19aa4b254e Support 'status' notification type
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-04-14 22:14:54 +02:00
Justin
c8c715ee4b
Add Onboarding controls to Redux 2022-04-14 10:42:56 -05:00
Alex Gleason
93a6945b7f
Let a custom auth app be embedded in the build 2022-04-12 15:23:18 -05:00
Alex Gleason
21d7cafe26 Merge branch 'next-emoji-reacts' into 'next'
Next: Emoji reacts pt 2

See merge request soapbox-pub/soapbox-fe!1204
2022-04-12 17:22:55 +00: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
Alex Gleason
0912700d15
Create preliminary EmojiButtonWrapper component 2022-04-10 20:31:24 -05:00
Alex Gleason
ae48c6e619
Fix action bar emoji labels 2022-04-10 16:07:23 -05:00
Alex Gleason
1466a08193
Perform better normalization of allowedEmoji 2022-04-10 15:44:51 -05:00
8be889734c well, fix confirmation modal after fixing a typo
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-04-07 21:23:00 +02:00
Justin
ed47cf5f09 Convert old tests to use "react-testing-library" 2022-04-04 11:53:47 -04:00
Justin
08a56082a9 Use intl to format messages 2022-03-30 10:40:09 -04:00
Justin
1ce5b5b34f Handle max file size before we process with server 2022-03-30 10:40:09 -04:00
Justin
c38ed64308 Add fallback for missing errors 2022-03-30 10:40:09 -04:00
Justin
fbd8fa87ae Improve error handling 2022-03-30 10:40:09 -04:00
36c0fb5882 Support trending statuses from Mastodon 3.5
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-03-29 21:15:06 +02:00
Alex Gleason
483b28988f
Normalize SoapboxConfig 2022-03-28 14:58:50 -05:00
Alex Gleason
84d7d2ee38
Add @ts-ignore lines for strictFunctionTypes 2022-03-24 12:26:27 -05:00
Alex Gleason
161cd3d1fc
Revert lazy type changes to actions/instance.ts 2022-03-24 11:09:30 -05:00
Alex Gleason
14ec40ee95
Typescript: start fixing 'strict' mode errors 2022-03-23 21:43:36 -05:00
Alex Gleason
fff580f053
Normalize Tailwind colors from SoapboxConfig 2022-03-23 15:31:19 -05:00
Alex Gleason
0938612678
Use colors from soapbox.json at runtime 2022-03-21 18:43:31 -05:00
Alex Gleason
4ccbce71e0
Fetch frontend_configurations once again, reenable /soapbox/config route 2022-03-21 15:13:33 -05:00
Alex Gleason
83137498d9
Generalize some language 2022-03-21 13:33:10 -05:00