Commit graph

590 commits

Author SHA1 Message Date
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
Alex Gleason
5cd894ab02
Truth Social 2022-03-21 13:14:26 -05:00
Alex Gleason
ed692c8bef
Fix build >:( 2022-03-18 16:23:14 -05:00
Alex Gleason
12c57e02a5
Fix Instance types 2022-03-18 16:04:08 -05:00
Alex Gleason
c8c5a6b077
Merge remote-tracking branch 'origin/develop' into ts-redux 2022-03-18 15:33:56 -05:00
Alex Gleason
3be0ddaa25
Merge remote-tracking branch 'origin/develop' into ts-redux-first 2022-03-18 13:17:19 -05:00
Alex Gleason
1fe7a72790
Fix API mock 2022-03-18 12:20:03 -05:00
Alex Gleason
8587bd4bf6 Revert "Merge branch 'msw' into 'develop'"
This reverts merge request !1100
2022-03-18 16:08:42 +00:00
Alex Gleason
9c0a304926
External auth: normalize instance 2022-03-16 22:44:30 -05:00
Alex Gleason
10b2e10a97 Merge branch 'pleroma-redraft-quirk' into 'develop'
Delete+Redraft: drop attachments with integer IDs from Pleroma

See merge request soapbox-pub/soapbox-fe!1104
2022-03-17 02:59:45 +00:00
Alex Gleason
db38d3cd59 Merge branch 'msw' into 'develop'
Mock API with MSW

See merge request soapbox-pub/soapbox-fe!1100
2022-03-17 02:02:34 +00:00
Alex Gleason
76eeb8a219
Delete+Redraft: drop attachments with integer IDs from Pleroma 2022-03-16 20:54:41 -05:00
Alex Gleason
9fa1dc3fe5
Merge remote-tracking branch 'mkljczk/mastodon-redraft' into pleroma-redraft-quirk 2022-03-16 19:50:41 -05:00
Alex Gleason
c0ea0a948d
Suggestions: limit to 50 results 2022-03-16 16:01:36 -05:00
Alex Gleason
d07d9b5bed
Mock API with MSW 2022-03-16 13:55:18 -05:00
Alex Gleason
27564dd360
WIP: reducer typescript 2022-03-15 09:40:19 -05:00
b003ac0634 Fix: Delete end edit on Markdown post loses Markdown setting
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-03-13 21:09:58 +01:00
Alex Gleason
6fa973aec0
Remove importer/normalizer.js 2022-03-11 21:22:11 -06:00
Alex Gleason
9547a7042d
Normalize chat in reducer, not action 2022-03-10 21:09:12 -06:00
Alex Gleason
75db92719d
Normalize poll emoji 2022-03-10 19:55:14 -06:00
71ea3ed425 Include media attachments when redrafting on Mastodon
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-03-10 18:47:20 +01:00
Alex Gleason
067e3a26f5
Allow setting a custom verified icon 2022-03-05 13:55:41 -06:00
Alex Gleason
d72ef7b423
Typescript, Compose: use forEach 2022-02-28 14:13:40 -06:00
Alex Gleason
92ac0e6a0d Merge branch 'account-notes' into 'develop'
Account notes

See merge request soapbox-pub/soapbox-fe!1053
2022-02-26 21:30:05 +00:00
ccff91b072 Account notes
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-02-26 15:57:34 +01:00
06d33de47f Single user mode
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-02-25 16:35:48 +01:00
5b3f7c1cdc Let accent color be configurable
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-02-24 18:28:52 +01:00
Alex Gleason
b1a8f6f3ab
Add back expandSpoilers 2022-02-20 12:44:10 -05:00
Alex Gleason
c99415a868
Fix status importing 2022-02-20 12:16:53 -05:00
Alex Gleason
f7f18fac79
Refactor status normalizer 2022-02-20 02:27:29 -05:00
Alex Gleason
1130373c02
pendingStatus: fix crash when replying to self 2022-02-19 22:49:12 -05:00
Alex Gleason
85c32e3f76 Merge branch 'account-migrations' into 'develop'
Allow account migrations

See merge request soapbox-pub/soapbox-fe!1038
2022-02-19 03:03:57 +00:00
Alex Gleason
635f88f5e8
Rewrite code with optional chaining (?.) 2022-02-18 21:04:18 -05:00
Alex Gleason
5bb2d97166
Push notifications: catch error 2022-02-17 18:43:57 -05:00
767c3dad7a Merge remote-tracking branch 'soapbox/develop' into modals-stack 2022-02-14 22:32:58 +01:00
48a57cc998 Fix aliases
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-02-14 21:38:44 +01:00
f75ffeadd8 Account migrations
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-02-14 21:35:35 +01:00
23aa11dfe3 Use new API for account aliases
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-02-14 21:00:41 +01:00
Alex Gleason
abcd55752d
Support only external Ethereum auth for now 2022-02-10 19:34:23 -06:00
Alex Gleason
01dd53328b
Cleanup unused code 2022-02-10 16:36:36 -06:00
Alex Gleason
f051b70b10
Support Ethereum external login 2022-02-10 16:34:46 -06:00
Alex Gleason
012a7f8d89
Mitra: support Ethereum login 2022-02-09 19:47:13 -06:00
Alex Gleason
d260cc2e2c
Add fallback avatar 2022-02-07 13:14:15 -06:00
Alex Gleason
c084a7a232
Mitra: handle status context endpoint as a list of statuses 2022-02-07 12:19:28 -06:00
Alex Gleason
69712baa02
Normalizer: normalize required account & status fields 2022-02-07 11:50:05 -06:00
Alex Gleason
fb7c642dc7
GoToSocial support 2022-02-06 20:46:06 -06:00
a041a4452b Rename modal -> modals
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-02-02 16:36:20 +01:00
e0f0370579 Merge remote-tracking branch 'soapbox/develop' into modals-stack
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-02-02 14:30:38 +01:00
Alex Gleason
d5ae29bfda Merge branch 'mastodon-configuration' into 'develop'
Normalize instance configuration for Mastodon

See merge request soapbox-pub/soapbox-fe!1022
2022-02-01 15:23:50 +00:00
marcin mikołajczak
8fed920bb7 Merge branch 'develop' into 'snackbar-action-link'
# Conflicts:
#   app/soapbox/features/edit_profile/index.js
2022-02-01 08:27:38 +00:00
Alex Gleason
3708c0128c Merge branch 'birthdays' into 'develop'
Birth dates

See merge request soapbox-pub/soapbox-fe!1000
2022-02-01 01:00:52 +00:00
Alex Gleason
67399473d0 Merge branch 'account-subscriptions-mastodon' into 'develop'
Support account subscriptions on Mastodon

See merge request soapbox-pub/soapbox-fe!940
2022-02-01 00:59:14 +00:00
Alex Gleason
e04e75f831
Set attachment limit from instance 2022-01-31 17:52:12 -06:00
Alex Gleason
6e889c7a4f
Mastodon: fall back to account lookup API 2022-01-31 11:18:44 -06:00
807b3c7e5b Use stack for modals
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-30 18:53:47 +01:00
f25c9298ca Merge remote-tracking branch 'soapbox/develop' into account-subscriptions-mastodon
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-28 23:47:27 +01:00
bf7cd98c03 Add 'View' action link to some notifications
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-27 16:00:05 +01:00
ecfef7b151 Merge remote-tracking branch 'soapbox/develop' into birthdays 2022-01-25 20:27:16 +01:00
Alex Gleason
462df83989
Status: strip compatibility features from markup when importing 2022-01-24 20:39:22 -06:00
bcc0e0983b Birthdays: use the new route
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-24 23:33:16 +01:00
7da12b1526 Merge remote-tracking branch 'soapbox/develop' into birthdays
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-24 23:12:07 +01:00
Alex Gleason
aebc653bd9
Importer: remove the extremely stupid pushUnique function 2022-01-24 14:37:10 -06:00
Alex Gleason
93e7efba05
Fedibird: fall back to quote_id 2022-01-24 13:58:52 -06:00
Alex Gleason
9abeb2a324
Importer: handle multiple statuses from Fedibird 2022-01-24 13:27:13 -06:00
Alex Gleason
5c755c8f9b
Quote post performance improvements 2022-01-24 13:23:29 -06:00
Alex Gleason
9f98fcff09
Fedibird compatibility, because why not 2022-01-24 12:58:39 -06:00
fc0a5aea9c Normalization, process quotes in importFetchedStatuses
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-24 16:52:15 +01:00
15d4910db5 wip quote post composing
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-23 18:44:17 +01:00
c0bee9be3c Display quoted posts
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-23 17:55:03 +01:00
d6f0023cc9 Add birthday reminder notification
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-20 22:39:58 +01:00
58ab54cd9e Mentions regex should be case-insensitive
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-17 20:26:45 +01:00
7aef1d923b Merge remote-tracking branch 'origin/develop' into account-endorsements
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-13 22:29:32 +01:00
Alex Gleason
15d32c3b83
MFA: pass scopes to MFA challenge 2022-01-12 12:40:40 -06:00
Alex Gleason
e94acbc44f
MFA: setupMfa/confirmMfa, throw errors to component, don't be optimistic 2022-01-12 11:22:46 -06:00
0a160f4422 User endorsements
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-12 18:20:27 +01:00
Alex Gleason
d2363d63bd
Settings: allow immediately saving a changed setting, fixes #800 2022-01-10 21:26:10 -06:00
Alex Gleason
6323c7d70e
eslint: enforce gaps between groups with import/order 2022-01-10 16:25:06 -06:00
Alex Gleason
966ca91e1a
eslint: alphabetize imports with import/order 2022-01-10 16:17:52 -06:00
Alex Gleason
2a0e2001d6
eslint: enforce import/order 2022-01-10 16:01:24 -06:00
Alex Gleason
d270e92927
Developers: add ability to edit raw settings JSON 2022-01-07 15:59:50 -06:00
Alex Gleason
2fd5e5cd35
Refactor MFA setup, fixes #792 2022-01-07 14:26:19 -06:00
marcin mikołajczak
8192c93873 Merge branch 'mentions-modal' into 'develop'
Fix modals

See merge request soapbox-pub/soapbox-fe!962
2022-01-07 00:02:57 +00:00
b0477ac1e1 fix broken modals
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-07 00:50:32 +01:00
marcin mikołajczak
831a3418f9 Merge branch 'just-messing-around' into 'develop'
Add headers to confirmation modals

See merge request soapbox-pub/soapbox-fe!942
2022-01-06 17:09:08 +00:00
marcin mikołajczak
3dffc46fc1 Support explicit addressing 2022-01-04 20:06:08 +00:00
11107c6df9 Merge remote-tracking branch 'origin/develop' into just-messing-around
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-03 18:52:22 +01:00
marcin mikołajczak
9c6f805499 Remote interactions modal 2022-01-02 20:43:53 +00:00
809b875ae3 Add headlines to confirmation modals
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-12-30 18:50:02 +01:00
6805e88b69 Use account lookup in fetchAccountByUsername
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-12-30 16:29:05 +01:00
fc3b9d62a6 Support account subscriptions on Mastodon
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-12-30 16:13:45 +01:00
3a7da5d8d5 Check username availability
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-12-28 19:11:21 +01:00
Alex Gleason
a6dc420b70 Merge branch 'profile-directory' into 'develop'
Profile directory

See merge request soapbox-pub/soapbox-fe!927
2021-12-26 22:23:56 +00:00
marcin mikołajczak
955687d719 Merge branch 'search-race-condition' into 'develop'
Fix another race condition in search results

See merge request soapbox-pub/soapbox-fe!929
2021-12-26 10:54:47 +00:00
b79e760b65 Fix another race condition in search results
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-12-26 11:39:05 +01:00
10f7339e5c Profile directories, adapted from Mastodon
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-12-22 21:22:29 +01:00
Alex Gleason
74d26b36ac Merge branch 'awaiting-approval-modals' into 'develop'
Admin: Make account approval buttons larger, require confirmation when deleting users

See merge request soapbox-pub/soapbox-fe!914
2021-12-14 16:22:19 +00:00
acce32cf1b Make approval buttons larger, require confirmation when deleting users
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-12-14 17:00:20 +01:00
Alex Gleason
ff26336f3a Merge branch 'chats-pagination' into 'develop'
use `/api/v2/pleroma/chats`

See merge request soapbox-pub/soapbox-fe!911
2021-12-14 15:13:11 +00:00
6a48948af7 Use old chats list API conditionally
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-12-14 13:38:59 +01:00
53497c2132 Chats: Create next link if not provided
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-12-14 13:25:08 +01:00
12e4c6c083 wip chat pagination
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-12-13 18:06:47 +01:00
Alex Gleason
72763d1495
Properly filter DMs from timelines 2021-12-12 22:34:10 -06:00
d66b2e10f2 Fix: Race condition in search
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-12-12 20:35:45 +01:00
Alex Gleason
aaad79f6a5
Auth: logIn, don't create an unnecessary app token 2021-12-06 15:33:06 -05:00
Alex Gleason
92439137c1
v2 Suggestions: add AdminAPI, rearrange sidebars, check instance feature flag 2021-11-26 23:36:17 -06:00
4e04f06142 eslint: add key-spacing and space-unary-ops rules
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-11-24 18:28:35 +01:00
Alex Gleason
0e6fac9286
Web Push fixes 2021-11-18 16:21:52 -05:00
Alex Gleason
1714ac03d2
Status: display a placeholder Card on own links, poll for updated card 2021-11-15 19:10:38 -06:00
Alex Gleason
7259ed58fb
Offline: persist Soapbox config (eg frontend_configurations or soapbox.json) 2021-11-15 16:56:33 -06:00
Alex Gleason
e54253d155
Search: resubmit when changing tabs 2021-11-15 16:03:39 -06:00
Alex Gleason
ad70e39143
Search: only search for results in the current filter 2021-11-15 15:59:08 -06:00
Alex Gleason
2c1e6d12f9
Search: clear search when backspaced all the way 2021-11-15 15:31:32 -06:00
Alex Gleason
1e603b8255
Interactions: don't reimport updated status with unfavourite and unreblog.
Mastodon doesn't decrement the counter in the API response, and we actually don't want updated counters anyway.
2021-11-12 13:39:06 -06:00
Alex Gleason
65a2a40cb2
Pull to Refresh: Notifications, Chats, Bookmarks 2021-11-04 14:20:11 -05:00
Alex Gleason
3ad3b5c84a
Status: implement proper Pull to Refresh, refactor horrible status actions 2021-11-04 13:16:28 -05:00
Alex Gleason
15a91d5ae3
Developers: scaffold with WIP developers page 2021-11-02 00:05:33 -05:00
Alex Gleason
f8ca45f5fb Merge branch 'configurable-autoload-more' into 'develop'
ScrollableList: Add option to disable loading more items when scrolled to bottom

See merge request soapbox-pub/soapbox-fe!822
2021-10-24 18:32:07 +00:00
535290654d ScrollableList: Add option to disable loading more items when scrolling to bottom
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-10-24 20:11:28 +02:00
742b1f2b58 Use ScrollableList for search results
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-10-24 19:58:04 +02:00
2f5fff0222 Show user what options they have voted
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-10-22 15:03:21 +02:00
Alex Gleason
a96b9678a3
Push notifications: take to Notifications on click 2021-10-21 17:34:01 -05:00
Alex Gleason
f79d4a3330
Push notifications: switch to serviceWorkerRegistration.showNotification() 2021-10-21 17:09:02 -05:00
Alex Gleason
fc6911caad
Push notifications: refactor, restore 2021-10-21 16:22:54 -05:00
Alex Gleason
e42030daae
Always check error.response before error.response.status 2021-10-20 17:50:35 -05:00
Alex Gleason
0b94774fbe
localforage: remember auth accounts 2021-10-20 16:27:36 -05:00
Alex Gleason
c8cec8fdac
localforage: create custom KVStore instance, refactor Instance actions 2021-10-20 15:17:47 -05:00
Alex Gleason
3c5384f318
localforage: add localforage, remember a fetched instance 2021-10-20 13:18:55 -05:00