Commit graph

700 commits

Author SHA1 Message Date
Alex Gleason
7054a5e9ac
Create account normalizer 2022-02-27 14:42:42 -06:00
Alex Gleason
07aaa427a6 Merge branch 'fedibird' into 'develop'
Fedibird birthdays

Closes #833

See merge request soapbox-pub/soapbox-fe!1054
2022-02-27 19:33:32 +00:00
2257612b12 Fedibird birthdays
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-02-26 22:49:42 +01:00
ccff91b072 Account notes
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-02-26 15:57:34 +01:00
Alex Gleason
706bc08c88
Status reducer: fix search_index 2022-02-23 23:41:49 -05:00
Alex Gleason
34ba2505bd
normalizeStatus: normalize quote post 2022-02-23 18:25:38 -05:00
Alex Gleason
5e18691ab5
Fix custom emoji parsing 2022-02-23 12:37:12 -05:00
Alex Gleason
01bf8b4729
Merge remote-tracking branch 'origin/develop' into fix-self-reply 2022-02-23 12:03:04 -05:00
Alex Gleason
16da9030ac
normalizeInstance: break out instance normalization into its own module 2022-02-23 11:24:36 -05:00
Alex Gleason
5afd1ce4b3
Fix PendingStatus 2022-02-21 03:56:31 -05:00
Alex Gleason
b1a8f6f3ab
Add back expandSpoilers 2022-02-20 12:44:10 -05:00
Alex Gleason
f1f784f751
normalizeStatus: fix tests, fixQuote fix 2022-02-20 03:38:22 -05:00
Alex Gleason
f7f18fac79
Refactor status normalizer 2022-02-20 02:27:29 -05:00
Alex Gleason
d16b764de7
Create normalizers/status module 2022-02-20 00:27:40 -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
767c3dad7a Merge remote-tracking branch 'soapbox/develop' into modals-stack 2022-02-14 22:32:58 +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
63fa3e7154
Status: normalize media attachments 2022-02-11 17:58:18 -06:00
Alex Gleason
abcd55752d
Support only external Ethereum auth for now 2022-02-10 19:34:23 -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
e04e75f831
Set attachment limit from instance 2022-01-31 17:52:12 -06:00
Alex Gleason
04979486e8
Normalize instance configuration for Mastodon 2022-01-31 16:51:11 -06:00
807b3c7e5b Use stack for modals
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-30 18:53:47 +01:00
Alex Gleason
e5e4105a03
Fix quote_visible for nested quote 2022-01-28 10:17:38 -06: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
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
bd3c74f566
Prevent a quoted status overriding the quote of its parent 2022-01-24 15:08:22 -06:00
c5e34de79a Do not use reblogIcon before initialization
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-24 00:18:20 +01:00
b0363607c8 Quote posts: do not mention anyone
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-24 00:07:26 +01:00
15d4910db5 wip quote post composing
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-23 18:44:17 +01:00
97d09317ae Modal improvements, profile information
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-22 13:08:20 +01:00
d6f0023cc9 Add birthday reminder notification
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-20 22:39:58 +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
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
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
marcin mikołajczak
e1475e0ba5 Merge branch 'scheduled' into 'develop'
Scheduled statuses improvements

Closes #797

See merge request soapbox-pub/soapbox-fe!974
2022-01-08 12:45:11 +00:00
8114f7ed95 Do not insert pending statuses for scheduled statuses
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-08 13:28:33 +01:00
Alex Gleason
93ee2a6ab7
Replying-to: fix order of mentions 2022-01-07 17:09:43 -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
b0477ac1e1 fix broken modals
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-07 00:50:32 +01:00
marcin mikołajczak
3dffc46fc1 Support explicit addressing 2022-01-04 20:06:08 +00:00
c36a47fd17 Interactions: optimistic unreblogs
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-04 16:57:01 +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
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
Alex Gleason
ef17a483ab
Suggestions: don't show suggestions if Home timeline failed 2021-12-13 14:25:06 -05:00
12e4c6c083 wip chat pagination
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-12-13 18:06:47 +01: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
92439137c1
v2 Suggestions: add AdminAPI, rearrange sidebars, check instance feature flag 2021-11-26 23:36:17 -06:00
Alex Gleason
b528c4aa63
Contexts: check for cyclical in_reply_tos and prevent stitching them with tombstones 2021-11-23 15:17:12 -06:00
Alex Gleason
0e6fac9286
Web Push fixes 2021-11-18 16:21:52 -05:00
Alex Gleason
7259ed58fb
Offline: persist Soapbox config (eg frontend_configurations or soapbox.json) 2021-11-15 16:56:33 -06:00
Alex Gleason
e46e217d57
Search: don't infer filter from results, leave it alone 2021-11-15 15:20:17 -06:00
Alex Gleason
59db8fb442
Notifications: drop status notifications if status is null 2021-11-12 15:06:37 -06:00
Alex Gleason
a354fd325d
Statuses: optimistic reply counter 2021-11-12 12:18:11 -06:00
3e5f9162c8 Fix search results
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-11-03 08:43:00 +01:00
Alex Gleason
2946a7432b
Compose: pull accept content types from backend if available, fallback to all types 2021-10-31 16:14:09 -05:00
Alex Gleason
6b54e88b62
Search: refactor search reducer, add tests 2021-10-28 14:23:54 -04:00
742b1f2b58 Use ScrollableList for search results
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-10-24 19:58:04 +02:00
Alex Gleason
f290b78636
Timelines: push pending statuses into queue 2021-10-23 15:08:21 -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
Alex Gleason
3bb891adaa
Notifications: skip importing notifications with a null status 2021-10-19 18:14:51 -05:00
Alex Gleason
e19c2d8547
Timelines: push to timeline regardless of if it's "online" 2021-10-09 23:13:20 -05:00
Alex Gleason
379d03a509
Optimistic statuses: prepend with 末 to sort it at the end 2021-10-09 21:16:37 -05:00
Alex Gleason
135b4c4d7b
Optimistic replies: fix duplicated statuses 2021-10-09 21:12:21 -05:00
Alex Gleason
03dbd5bfd2
Optimistic threads 2021-10-09 17:47:25 -05:00
Alex Gleason
50feacbd6b
Optimistic, nonblocking statuses 2021-10-09 17:30:20 -05:00
Alex Gleason
c789fba629
Notifications: use Markers for unread count
This works consistently across all backends
2021-10-04 13:27:05 -05:00
Alex Gleason
1be73d13a1
Suggestions: fix optimistic dismissal 2021-10-02 15:18:27 -05:00
Alex Gleason
86950dde42
Mastodon: clear token on 401 in VERIFY_CREDENTIALS_FAIL 2021-09-26 16:30:45 -05:00
Alex Gleason
209da02b9f
Fix accounts_meta reducer 2021-09-24 18:53:01 -05:00
Alex Gleason
96c2e42ebf
Preload: call verifyCredentials after Mastodon preload to get the "source" parameter of the account 2021-09-24 18:47:22 -05:00
Alex Gleason
c1ed8ed16f
Mastodon: hide notifications counter 2021-09-20 13:00:24 -05:00
Alex Gleason
aeef12acf0
Rip out react-redux-loading-bar 2021-09-18 18:31:22 -05:00
Alex Gleason
1bffa04a99
Suggestions: consolidate actions 2021-09-17 15:42:14 -05:00
Alex Gleason
c92de334e8
Suggestions: consolidate reducers 2021-09-17 15:26:58 -05:00
Alex Gleason
9faff939a0
SuggestionsV2: pull in Mastodon's upstream code 2021-09-16 18:46:04 -05:00
Alex Gleason
65a3ab982c
Preload: import auth credentials from Mastodon's initial-state 2021-09-15 13:34:22 -05:00
Alex Gleason
937782dc62
Rename PRELOAD_IMPORT to PLEROMA_PRELOAD_IMPORT 2021-09-15 12:15:36 -05:00
Alex Gleason
33aaffa22d
Use immutable.js consistently 2021-09-12 11:25:44 -05:00
marcin mikołajczak
495882658a Merge branch 'develop' into 'public-favourites'
# Conflicts:
#   app/soapbox/features/favourited_statuses/index.js
2021-09-11 17:25:49 +00:00
125f446eed rename, add Polish translation
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-09-10 12:41:42 +02:00
marcin mikołajczak
c2fc7a0331 Merge branch 'develop' into 'reactions-page'
# Conflicts:
#   app/soapbox/utils/features.js
2021-09-09 20:48:30 +00:00
3672d9faa5 Show user likes to others if hide_favorites===false
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-09-09 20:05:54 +02:00
c80f87efaa Add emoji reacts page
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-09-06 21:54:48 +02:00
Alex Gleason
ea26e86a94
Rename FE_BASE_PATH to FE_SUBDIRECTORY 2021-09-05 13:21:39 -05:00
Alex Gleason
390cdf4c5e
Authenticated fetch: make the instance appear censored 2021-09-04 14:47:11 -05:00
Alex Gleason
905e160749
Subdirectory: namespace auth to FE_BASE_PATH 2021-09-04 14:18:47 -05:00
Alex Gleason
c624afdfb7
Standalone: add external accounts, refresh on logout 2021-08-30 16:54:04 -07:00
Thibaut Girka
64665df236 Improve dropdown menu keyboard navigation
* Allow selecting menu items with the space bar in status dropdown menus

* Fix modals opened by keyboard navigation being immediately closed

* Fix menu items triggering modal actions

* Add Tab trapping inside dropdown menu

* Give focus back to last focused element when status dropdown menu closes
2021-08-28 15:22:43 +02:00
Alex Gleason
56462d8a9a
Add accounts_meta reducer to support storing source data for multiple accounts 2021-08-23 17:51:32 -05:00
Alex Gleason
d2a6a90757
Mastodon: fix edit profile source rendering 2021-08-23 16:03:35 -05:00
Alex Gleason
0b4b3479ea
Standalone: support running Soapbox FE on a subdomain 2021-08-22 14:34:58 -05:00
Alex Gleason
74f4c59004
Auth: refactor OAuth token actions 2021-08-21 19:45:45 -05:00
Alex Gleason
463b3ba085
Auth: store users by their ActivityPub ID instead of their primary key 2021-08-21 17:38:19 -05:00
Alex Gleason
b53b031720
Lint fix 2021-08-11 12:22:06 -05:00
Alex Gleason
bde53541b7 Merge branch 'account-aliases' into 'develop'
Account aliases

See merge request soapbox-pub/soapbox-fe!663
2021-08-11 17:02:56 +00:00
Alex Gleason
66ece5251e
Nuke LoadGap 2021-08-09 21:02:00 -05:00
b157530ebf No account search results message
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-08-08 16:17:29 +02:00
d36ec10c6a Auto select search tab that has results
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-08-07 20:57:22 +02:00
403d6ae48c Search results improvements
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-08-07 20:42:39 +02:00
f203a4d389 WIP: Account aliases
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-08-05 15:31:29 +02:00
Alex Gleason
dcd964dba9 Merge branch 'eslint-recommended' into 'develop'
eslint: extend 'eslint:recommended'

See merge request soapbox-pub/soapbox-fe!661
2021-08-03 19:57:41 +00:00
Alex Gleason
497b6b08d4 Merge branch 'store-current-search-tab' into 'develop'
Keep selected search results tab

See merge request soapbox-pub/soapbox-fe!657
2021-08-03 19:39:09 +00:00
Alex Gleason
594cf088ed
eslint: extend 'eslint:recommended' 2021-08-03 14:29:36 -05:00
Alex Gleason
5548644bd6
eslint: no-extra-semi 2021-08-03 14:22:51 -05:00
Alex Gleason
a310197a5a
eslint: prefer-const, no-loop-func, no-const-assign, no-var 2021-08-03 12:36:11 -05:00
f8dcafae98 update tests
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-08-02 21:10:41 +02:00
bd16715763 Keep active search results tab
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-08-02 20:51:15 +02:00
Alex Gleason
e7813e178a Merge branch 'search-tabs' into 'develop'
Tabbed, paginated search results

See merge request soapbox-pub/soapbox-fe!652
2021-07-30 23:16:31 +00:00
e7d122dc95 No more items if there are less than 20 results
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-07-30 21:49:28 +02:00
d0f3fe6771 Tabbed, paginated search results
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-07-30 17:51:43 +02:00
Alex Gleason
e4dd720d51
EditFederationModal: use ConfigDB directly instead of /api/v1/instance 2021-07-28 17:06:21 -05:00
Alex Gleason
912bb129be Merge branch 'remove-indexeddb-reads' into 'develop'
Remove unused IndexedDB reads

See merge request soapbox-pub/soapbox-fe!624
2021-07-20 20:26:51 +00:00
Alex Gleason
09d7ec3161
Remove unused IndexedDB reads
https://github.com/mastodon/mastodon/pull/14730
2021-07-20 15:05:58 -05:00
0e59139902 Use Mastodon defaults for initial state
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-07-19 23:15:42 +02:00
Alex Gleason
5f3b33cce7
Merge remote-tracking branch 'origin/develop' into admin-recent-users 2021-07-14 12:28:36 -05:00
Alex Gleason
b2ebdbcf80
Admin: display latest accounts in dashboard 2021-07-14 12:27:51 -05:00
Alex Gleason
a362e0bbd7
UserIndex: display account joined date when available 2021-07-14 10:22:07 -05:00
Alex Gleason
4d35f16483
Staff promotions: fix race conditions 2021-07-13 19:38:58 -05:00
Alex Gleason
695e64cb1f
Ingest tags from AdminAPI 2021-07-13 18:41:38 -05:00
Alex Gleason
fa91defea0
Rename 'dirty' to 'should_refetch' 2021-07-13 18:35:37 -05:00
Alex Gleason
2f6cd35f38
Admin: refactor actions to use accountIds instead of nicknames 2021-07-13 18:30:46 -05:00
Alex Gleason
a89ea524a9
Refactor AwaitingApproval 2021-07-13 17:59:55 -05:00
Alex Gleason
3043924045
Refactor UserIndex to use its own state instead of Redux 2021-07-13 17:01:31 -05:00
Alex Gleason
80a682f120
Admin: add UserIndex to view a list of registered users 2021-07-13 15:16:31 -05:00
Alex Gleason
b892c6fe22
Staff promotions: change action names to more closely match AdminAPI endpoints 2021-07-13 12:34:58 -05:00
Alex Gleason
5eafa25ea9
Allow promotion/demotion of users to staff roles 2021-07-13 12:21:12 -05:00
Alex Gleason
941e101fba
Auth: test ME_FETCH_SKIP in reducer 2021-07-09 16:29:01 -05:00
Alex Gleason
8cc8a465c7
Auth: sanitize the initial state 2021-07-09 16:24:18 -05:00
Alex Gleason
d3db2e37e3
Auth: better data validation 2021-07-09 15:54:32 -05:00
Alex Gleason
7b61d319b1
Auth: clear me when ME_FETCH_SKIP is dispatched 2021-07-09 14:58:49 -05:00
Alex Gleason
5f40ae1d48
Timelines: add tests 2021-07-08 17:10:01 -05:00
Alex Gleason
628dc92775
StatusLists: big refactor with OrderedSet 2021-07-08 16:12:04 -05:00
Alex Gleason
f0fa5e6945
Timelines: truncate on dequeue if scrolled to the top 2021-07-08 15:30:18 -05:00
Alex Gleason
dd6746c3d7
Timelines: determine status order in expandNormalizedTimeline 2021-07-08 15:16:31 -05:00
Alex Gleason
c505cde24f
Timelines: fix dequeue, fix component propTypes 2021-07-08 14:52:07 -05:00
Alex Gleason
2978745311
Timelines: big refactor, use Immutable.OrderedSet 2021-07-08 14:28:53 -05:00
Alex Gleason
91fdec9d3c Merge branch 'lists' into 'develop'
Fix issues related to lists

See merge request soapbox-pub/soapbox-fe!567
2021-07-01 20:01:42 +00:00
edab70e2ea Fix issues related to lists
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-07-01 21:45:25 +02:00
Alex Gleason
9ea1df2fb1
Scheduled statuses validation 2021-06-30 14:53:29 -05:00
Alex Gleason
411ecadeda Merge branch 'move' into 'develop'
Account move notification

See merge request soapbox-pub/soapbox-fe!560
2021-06-30 16:06:57 +00:00
414fcd11ad update test
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-06-30 14:22:49 +02:00
ace220850d Account move notification
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-06-30 13:42:38 +02:00
Alex Gleason
3edf243bbe
Admin: optimistic user deletions 2021-06-30 03:02:52 -05:00
Alex Gleason
2e9ac8770e
Fix status_lists tests 2021-06-27 18:56:04 -05:00
Alex Gleason
97f89acff9
ScheduledStatuses: ability to view and cancel scheduled statuses 2021-06-27 17:04:23 -05:00
Alex Gleason
840706a500
ScheduledStatuses: import into reducer 2021-06-27 14:58:40 -05:00
Alex Gleason
5f9d95301c
ScheduledStatuses: scaffolding 2021-06-27 13:59:10 -05:00
a690f26613 Allow to subscribe to an account
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-06-26 19:28:31 +02:00
NEETzsche
3a209e2fea Schedule posts 2021-06-18 16:04:31 +00:00
Alex Gleason
bce54285e4
Populate emojis in autosuggest again 2021-06-16 17:39:03 -05:00
Alex Gleason
2ef977a204
Skip custom emojis when they match a Unicode emoji's shortcode 2021-06-16 16:48:23 -05:00
Alex Gleason
421069bfd1
Support blocking notifications from strangers 2021-06-06 22:43:18 -05:00
Alex Gleason
0586ec4264
Fix auth reducer tests 2021-05-07 22:43:44 -05:00
Alex Gleason
377c0fb64a
Only delete token if it 403's 2021-05-07 21:46:08 -05:00
Alex Gleason
4e7d7ac378
startsWith('tombstone-') --> endsWith('-tombstone') 2021-04-21 18:28:43 -05:00
Alex Gleason
cc6d2599cb
Wholistic context import (builds tree from anywhere in the thread) 2021-04-21 18:14:20 -05:00
Alex Gleason
cc278f7ca6
Contexts: more refactoring 2021-04-21 17:35:01 -05:00
Alex Gleason
b2fa82dcd0
Contexts: refactor importStatus 2021-04-21 16:40:32 -05:00
Alex Gleason
8cdb0581d3
Tombstone: work for descendants, too 2021-04-21 15:25:18 -05:00
Alex Gleason
217fbea7a3
Tombstone: fix context tests 2021-04-21 15:03:00 -05:00
Alex Gleason
87029e8abf
Display tombstone in place of deleted post, #138 2021-04-21 14:47:39 -05:00
Alex Gleason
4ee302b63a
Delete mismatched auth users, fixes #613 2021-04-13 12:03:46 -05:00
Alex Gleason
7a19861ac6
Stop verify_credentials infinite loop, partial fix for #613 2021-04-10 18:09:05 -05:00
Alex Gleason
070a7d410d
Handle invalid sessionUser. Don't store invalid sessionUser. 2021-04-10 17:15:52 -05:00
Alex Gleason
3bc35cf3eb
Refactor compose reducer account import 2021-03-31 13:36:15 -05:00
Alex Gleason
73a3ee296b
Rename action.reload -> action.background 2021-03-30 00:45:23 -05:00
Alex Gleason
15d61a98e7
Don't update the state when action.reload === false 2021-03-30 00:35:27 -05:00
Alex Gleason
db201707bf
Middle-click account to open it in a new tab, fixes #603 2021-03-29 23:22:54 -05:00
Alex Gleason
8e84c83fdc
Refactor persistState() 2021-03-29 20:03:27 -05:00
Alex Gleason
aa7e62e8c0
Initialize auth refactor 2021-03-29 19:51:48 -05:00
Alex Gleason
ad84e586f1 Merge branch 'follow-request-notifs' into 'develop'
Add follow request notification support, fixes #595

Closes #595

See merge request soapbox-pub/soapbox-fe!453
2021-03-29 18:55:25 +00:00
Alex Gleason
f21502a1c6
Fix push_notifications-test.js 2021-03-29 13:44:39 -05:00
Alex Gleason
f236b4f3e6
Add follow request notification support 2021-03-29 13:35:30 -05:00
Alex Gleason
a1f4fdcbd8
Persist current user across reloads, fixes #600 2021-03-29 13:02:11 -05:00
Alex Gleason
706e0ea6ac
Always redirect home when switching between accounts 2021-03-27 14:37:17 -05:00
Alex Gleason
41c7612b47
Don't refresh when '_legacy' changes 2021-03-25 23:03:58 -05:00
Alex Gleason
c7c0c41ce6
Use our own INIT_STORE action instead of relying on Redux's internal actions 2021-03-25 22:37:10 -05:00
Alex Gleason
ad3362e3cd
auth: persist the state only if changed 2021-03-25 20:35:19 -05:00
Alex Gleason
1e2b0c9eee
Fix tests 2021-03-25 17:12:31 -05:00
Alex Gleason
659cee1c49
Refresh the page under more general conditions 2021-03-25 15:59:09 -05:00
Alex Gleason
6ead42b06d
Handle logout 2021-03-25 15:15:37 -05:00
Alex Gleason
7a5fb6abb5
Add new account from login page 2021-03-25 14:42:09 -05:00
Alex Gleason
94da1f6722
Reload the page conditionally 2021-03-24 16:49:24 -05:00
Alex Gleason
b4cab46553
Only reload with SWITCH_ACCOUNT (for now) 2021-03-24 16:24:46 -05:00
Alex Gleason
ee9b4cb969
Upgrade user localStorage auth to the new format 2021-03-24 16:18:14 -05:00
Alex Gleason
a00a1bbc30
Test VERIFY_CREDENTIALS_SUCCESS interactions with me 2021-03-24 15:17:05 -05:00
Alex Gleason
4682cecd33
Add test for SWITCH_ACCOUNT 2021-03-24 15:14:20 -05:00
Alex Gleason
431e41a711
Add tests for VERIFY_CREDENTIALS_SUCCESS 2021-03-24 15:11:18 -05:00
Alex Gleason
886ab93c70
Refactor auth reducer tests, add tests for VERIFY_CREDENTIALS_FAIL 2021-03-24 15:01:10 -05:00
Alex Gleason
79c9c46a9a
Nuke tokens on VERIFY_CREDENTIALS_FAIL 2021-03-24 14:15:36 -05:00
Alex Gleason
47dd4287d0
Don't import frontend settings on VERIFY_CREDENTIALS_SUCCESS 2021-03-24 12:02:12 -05:00
Alex Gleason
a731ac88cf
Make login work again 2021-03-24 00:05:06 -05:00
Alex Gleason
0daa95646e
Refactor auth reducer localStorage 2021-03-23 22:19:24 -05:00
Alex Gleason
60a3a5b403
Move session tokens list into security reducer 2021-03-23 21:15:47 -05:00
Alex Gleason
6b8fbbff47
Remove dead code 2021-03-23 21:04:12 -05:00
Alex Gleason
0162eac662
Refactor auth to support multiple accounts 2021-03-23 19:06:55 -05:00
Alex Gleason
8a0fa1b285
Display loading animation during search 2021-03-21 16:09:50 -05:00
Alex Gleason
62d5a97939
Add button verify/unverify a user 2021-03-15 21:52:42 -05:00
Alex Gleason
c6b7a7ca8a
Store admin log in reducer 2021-03-15 17:29:48 -05:00
Alex Gleason
6c18050636
Fix jumpy follow relationship in Pleroma 2021-01-28 16:34:52 -06:00
Alex Gleason
36f6f12856
Stream following relationships 2021-01-28 16:22:31 -06:00
Alex Gleason
d97f9d7472 Merge branch 'rgi-reacts' into 'develop'
Support RGI emoji reacts conditionally

See merge request soapbox-pub/soapbox-fe!421
2021-01-18 20:27:35 +00:00
Alex Gleason
47ed1e42c9
Run rootReducer in tests 2021-01-18 14:14:08 -06:00
Alex Gleason
f24e1c9929
Normalize Pleroma user fields, fixes #549 2021-01-18 13:59:24 -06:00
Alex Gleason
fb99d36494
Support RGI emoji reacts conditionally 2021-01-18 13:31:16 -06:00
Alex Gleason
ddac13d308
Account backups 2021-01-07 14:17:06 -06:00
Alex Gleason
a8893907d4
Reports: import statuses, add getReport selector 2020-12-31 20:11:08 -06:00
Alex Gleason
dccc384f0d
Reports: fix admin reducer test 2020-12-31 18:33:45 -06:00
Alex Gleason
35a148d9c9
Reports: allow closing a report 2020-12-31 18:24:52 -06:00
Alex Gleason
51faa660ca
Admin: refactor Reports reducer 2020-12-31 14:29:31 -06:00
Alex Gleason
e9b70c0648
Admin: fix soapbox reducer test 2020-12-30 00:32:12 -06:00
Alex Gleason
acdc282cfd
Admin: optimistic RegistrationModePicker 2020-12-29 23:29:06 -06:00
Alex Gleason
b571765c33
Admin: add registration mode picker 2020-12-29 23:25:07 -06:00
Alex Gleason
bfd01d0316
Admin: fetch ConfigDB config, start RegistrationModePicker 2020-12-29 22:17:03 -06:00
Alex Gleason
19e1e15263
Admin: fix reducer tests 2020-12-29 18:59:31 -06:00
Alex Gleason
23a4a605a1
Admin: fix optimistic approve 2020-12-29 18:53:06 -06:00
Alex Gleason
299c14adc8
Admin: optimistic awaiting-approval actions 2020-12-29 18:38:58 -06:00
Alex Gleason
a3f208c1be
Admin: make awaiting approval actions work 2020-12-29 18:22:31 -06:00
Alex Gleason
1ad3ea4437
Admin: awaiting approval basics 2020-12-29 15:55:45 -06:00
Alex Gleason
958aa8c18e
Make Markdown posting configurable, use text/plain by default 2020-12-24 14:26:48 -06:00
Alex Gleason
83bebe38bc
Clear user's localStorage when verify_credentials fails 2020-12-11 09:04:34 -06:00
Alex Gleason
488db44a85
Preload frontend config
https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3075
2020-10-15 17:07:33 -05:00
Alex Gleason
0bbdaa4191
eslint: trailing comma fixes, unused var 2020-10-07 13:08:36 -05:00
Alex Gleason
d022978078 Merge branch 'snackbar' into 'develop'
Snackbars

See merge request soapbox-pub/soapbox-fe!243
2020-09-30 00:43:11 +00:00
Alex Gleason
1b56fff6cb
Chats: fix #451 duplicated message 2020-09-29 16:52:20 -05:00
Alex Gleason
81c31f5d92
Merge remote-tracking branch 'origin/develop' into snackbar 2020-09-28 16:20:28 -05:00
Alex Gleason
fb94664c08
Composer: fix #449 hydrate tagHistory 2020-09-28 15:25:56 -05:00
Alex Gleason
7d44e84111
Timelines: fix existingQueuedStatus bug 2020-09-28 14:58:12 -05:00
Alex Gleason
ce1e04c224
Obliterate hydrateStore() 2020-09-27 19:49:55 -05:00
Alex Gleason
c05eb0120a
Purge state on logout, fixes #264 2020-09-27 19:09:35 -05:00
Alex Gleason
d5d8c4877e
Interactions: optimistic Favourite and EmojiReact actions, fixes #104 2020-09-27 17:24:55 -05:00
Alex Gleason
a67ab78c36
Timelines: refactor timelineQueue to use IDs instead of full objects, fixes #156 2020-09-27 16:17:21 -05:00
Alex Gleason
83f31b8a00
Notifications: parseInt ID when sorting 2020-09-27 14:33:21 -05:00
Alex Gleason
f183094f82
Refactor notifications again, this time with OrderedMap, fixes #433 2020-09-23 18:57:10 -05:00
Alex Gleason
9c0793d1f3
Comment TIMELINE_DISCONNECT test 2020-09-23 10:26:01 -05:00
Alex Gleason
3b94700311
Lint: fix import 2020-09-23 10:15:49 -05:00
Alex Gleason
4851ec24f9
Don't just put "null" in the notifications list, fixes #432 2020-09-23 10:14:27 -05:00
Alex Gleason
ed4abfdce3
Chats: allow deleting a message, fixes #358 2020-09-22 16:20:10 -05:00
Alex Gleason
64a68c650e
Notifications: refactor with OrderedSet instead of List 2020-09-22 13:42:08 -05:00
Alex Gleason
9d2da836b3
Snackbar: allow severity levels 2020-09-21 22:56:15 -05:00
Alex Gleason
b51236a6b0
Threading test #422 2020-09-18 17:03:00 -05:00
Alex Gleason
b29ed6b18a
Refactor threading, fixes #422 2020-09-18 16:16:56 -05:00
Alex Gleason
556e11a9cb
Skip importing empty accounts, fixes #424 2020-09-15 10:33:12 -05:00
Alex Gleason
9692c7539a
Hovercard: appear and disappear properly 2020-09-11 10:05:52 -05:00
Alex Gleason
4630a5cd04
Hovercard: mouseout clears the card 2020-09-10 20:18:04 -05:00
Alex Gleason
0c4eae5f10
Hovercard: basic Redux+Popper prototype 2020-09-10 19:09:27 -05:00
Alex Gleason
adc98b7ad2
UserLists: use OrderedSets instead of Lists, fixes #230 2020-09-09 18:06:01 -05:00
Alex Gleason
9247f37e75
Chats: fix #399 scrolling in FireFox 2020-09-07 16:07:05 -05:00
Alex Gleason
9da87405f8
Chats: improve the way messageIds are sorted 2020-09-04 18:03:38 -05:00
crockwave
91605d7d91 Fixed reducer error 2020-09-03 11:10:03 -05:00
Curtis ROck
181eef1edd corrected errors 2020-09-02 21:47:46 -05:00
Curtis ROck
b337a4560e Apply non-blank default BrandColor only when API and soapbox.json methods fail, and only when API and/or JSON method succeeds, but brandColor value is blank 2020-08-31 22:00:11 -05:00
Alex Gleason
a419c5da34 Merge branch 'chats' into 'develop'
ChatMessages MVP

See merge request soapbox-pub/soapbox-fe!185
2020-08-28 22:03:34 +00:00
Alex Gleason
2c551130e6
Rip out markers, don't rely on them for unread count 2020-08-28 16:49:27 -05:00
Alex Gleason
572a1db9f7
Chats: mobile styling 2020-08-28 14:42:58 -05:00
Alex Gleason
e7c6862fd0
Chats: refactor ChatBox into its own component 2020-08-28 13:17:19 -05:00
Sean King
6872568d9e Add .wav audio as supported file type 2020-08-27 20:31:07 -06:00
Alex Gleason
a3585305f7
Fix notification reducer tests 2020-08-27 16:20:45 -05:00
Alex Gleason
f80f18d376
Chats: mark chats as read 2020-08-27 16:09:03 -05:00
Alex Gleason
020e21adcd
Oh right, maps can't be sorted... 2020-08-27 15:07:15 -05:00
Alex Gleason
859f340716
Chats: rudimentary display of chat message notifications 2020-08-27 14:33:03 -05:00
Alex Gleason
44f7ad5e1c
Chats: sort chats in reducer instead of component 2020-08-27 13:45:37 -05:00
Alex Gleason
10257f324d
Chats: clicking "message" launches a new chat 2020-08-27 13:01:06 -05:00
Alex Gleason
8b621d30fc
Chats: fix flickering during update 2020-08-27 00:24:11 -05:00
Alex Gleason
9af664bda8
Start making the chat faster, but it flickers 2020-08-27 00:06:27 -05:00
Alex Gleason
c4aae14148
Chats: handle null last_message 2020-08-26 20:20:14 -05:00
Alex Gleason
02b3b08999
Chats: use semantic names for action properties 2020-08-26 19:53:54 -05:00
Alex Gleason
da6239c4fc
Chats: move out of importer pipeline, entirely through reducers 2020-08-26 18:17:47 -05:00
Alex Gleason
b9d7f927a6
Chats: get streaming working again 2020-08-26 17:29:22 -05:00
Alex Gleason
4b173f0580
Chats: sort messages properly 2020-08-26 17:02:25 -05:00
Alex Gleason
759c4ae4d0
Fix chat submission 2020-08-26 16:54:44 -05:00
Alex Gleason
b66e28d8bb
Chats: store chat_message_lists in Redux 2020-08-26 15:54:14 -05:00
Alex Gleason
dbafbbc065
Chats: make streaming mostly work 2020-08-26 13:40:42 -05:00
Alex Gleason
f52186bc01
Don't write settings back to Redux after PATCH, prevents race conditions 2020-08-26 00:37:55 -05:00
Alex Gleason
5a7cc14812
Chats: rudimentary sending a message 2020-08-25 21:31:34 -05:00
Alex Gleason
cab490e1d3
Chats: display chat message content 2020-08-25 20:33:49 -05:00
Alex Gleason
b98f06e3d3
Chats: Import and normalize chats 2020-08-25 12:38:21 -05:00
Alex Gleason
f1cff927c0
Display Chat list 2020-08-24 21:26:42 -05:00
Alex Gleason
fa9421a7c1
Reports counter: Only count open reports 2020-08-24 18:00:09 -05:00
Alex Gleason
c3c77c1795
Show reports counter icon for staff members, fixes #273 2020-08-24 17:18:53 -05:00
Alex Gleason
20f64079e0
Preload /api/v1/instance 2020-08-24 15:53:38 -05:00
Alex Gleason
0dfe22de36
Fix updateFromAdmin() broken comparison 2020-08-24 10:38:29 -05:00
Alex Gleason
48d0572403
ConfigDB: Refactor updateFromAdmin in reducers/soapbox 2020-08-24 10:08:39 -05:00
Alex Gleason
d310fb4f18
SoapboxConfig: Rudimentary deletion of rows 2020-08-23 22:41:22 -05:00
Alex Gleason
ec42888fff
Add getSoapboxConfig() like getSettings() 2020-08-23 16:04:01 -05:00
Alex Gleason
83b799a3a1
ConfigSoapbox: Update phrasing, add + icons to form 2020-08-23 15:04:32 -05:00
Alex Gleason
5a9f17ebac
Start refactoring AdminAPI actions 2020-08-23 12:48:45 -05:00
Alex Gleason
2cdf6f7275
Merge remote-tracking branch 'origin/develop' into admin_cfg 2020-08-23 12:16:52 -05:00
Alex Gleason
99d96ed901
Fix login issues due to no pleroma_settings_store fallback 2020-08-15 14:43:34 -05:00
crockwave
d966107f1b Add default copyright value to reducer
Fixed checkbox processing
2020-08-14 19:03:11 -05:00
crockwave
cf260ec793 Handles virgin rendering, default soapbox object if soapbox.json missing, local state used only for UI changes, and retention of settings in both DB and store as soapbox object
Need to monitor for soapbox object dispatch events so that hitting Back causes re-render of timeline page
Need to explore refactoring update of soapbox object before being passed to API
2020-08-14 16:51:04 -05:00
crockwave
8b2c7b344b Trying to get blank customCss field to appear on virgin usage 2020-08-13 19:04:54 -05:00
Alex Gleason
101f519d4b
Spinster migration hotfix: fix locale set to "" 2020-08-13 04:46:45 -05:00
crockwave
cea7723fc3 refactored to improve default soapbox object for store
refactored to render with local state if avail or with props
refactored to build soapbox object for api and store from local state if avail or with props
2020-08-12 17:24:14 -05:00
Mary Kate
5b3accdc53 Hotfix to remove media uploads entirely on del and redraft compose form since it was tricking user into thinking it would retain the media when submitted 2020-08-10 18:18:23 -05:00
Curtis
ea94b05608 Resolve merge conflicts
Merge branch 'develop' into 'admin_cfg'

# Conflicts:
#   app/soapbox/features/compose/components/action_bar.js
#   app/soapbox/features/edit_profile/index.js
2020-08-09 23:02:48 +00:00
Alex Gleason
2fff5db5d5
Handle max_fields fallback differently 2020-08-09 14:01:16 -05:00
Alex Gleason
9a2fba1ef5
Revert "Revert "Store fieldsLimits in instance/pleroma/metadata of the Redux store. Render fields to maxFields value in features/edit_profile, using maxFields value""
This reverts commit b3a6c395df.
2020-08-08 20:32:39 -05:00
Alex Gleason
b3a6c395df
Revert "Store fieldsLimits in instance/pleroma/metadata of the Redux store. Render fields to maxFields value in features/edit_profile, using maxFields value"
This reverts commit 3d24cfaf53.
2020-08-08 18:34:35 -05:00
crockwave
3d24cfaf53 Store fieldsLimits in instance/pleroma/metadata of the Redux store. Render fields to maxFields value in features/edit_profile, using maxFields value 2020-08-04 18:05:16 -05:00
Curtis ROck
f23e3f60cb debugged soapbox-test 2020-08-02 22:06:37 -05:00
Alex Gleason
7fe70a64b5
Pleroma relationship fixes 2020-08-02 21:45:42 -05:00
Curtis ROck
f205ff5334 Added tests to reducers/soapbox 2020-08-02 18:45:39 -05:00
crockwave
ba18c3a643 SB settings Save works and brandcolor renders. Logo/banner paths are issues, and adding new homefooter/customCSS are issues 2020-08-01 16:38:29 -05:00
Curtis ROck
78df407e1e remarked out a case, due to that case being triggered during a Soapbox settings save event, which needs debugging. Post to AdminConfig fails with 400 Bad Request response. 2020-07-30 21:55:17 -05:00
crockwave
c6f3816f77 Drafted pushing soapbox object to Redux store on SOAPBOX_POST_SUCCESS 2020-07-30 19:39:41 -05:00
marykatefain
ee97e94779 Bookmark posts 2020-07-29 21:08:36 +00:00
Alex Gleason
5333680a32
Linter fixes 2020-07-28 14:13:29 -05:00
Alex Gleason
ac6b4033dd
Merge remote-tracking branch 'origin/develop' into add-markdown-posts 2020-07-28 14:00:25 -05:00
Alex Gleason
eda4c7d629
Add markdown reducer tests 2020-07-28 13:53:01 -05:00
Alex Gleason
b31cf22f43
Markdown refactoring 2020-07-28 13:43:22 -05:00
Mary Kate
daf039d9bb generalize markdown to content_type 2020-07-28 13:31:44 -05:00
Mary Kate
bc787e0bbe add markdown posts 2020-07-28 12:24:04 -05:00
Alex Gleason
665a27d4c9
Update compose CW tests 2020-07-28 10:57:20 -05:00
Alex Gleason
2aca716cfa
Revert "Merge branch 'decouple_spoiler_from_nsfw' into 'develop'"
This reverts commit 03c2a8f294, reversing
changes made to b6c0884a1d.
2020-07-28 10:52:29 -05:00
Alex Gleason
9b66611540
Revert "Merge branch 'patch-1' into 'develop'"
This reverts commit 20bfeb1db6, reversing
changes made to 475881e80b.
2020-07-28 10:50:51 -05:00
Curtis
d15f8d4a4e Update compose-test.js to accommodate decoupling of CW toggle from sensitive (NSFW) assignment 2020-07-20 19:28:06 +00:00
Alex Gleason
475881e80b Merge branch 'reducers_tests' into 'develop'
Reducers tests

See merge request soapbox-pub/soapbox-fe!103
2020-07-20 19:10:33 +00:00
crockwave
7023471abe edited auth-test 2020-07-15 17:36:34 -05:00
crockwave
e5937b42e4 fix linter error 2020-07-14 18:21:49 -05:00
crockwave
599129897a edited accounts and alerts reducer tests 2020-07-14 17:11:05 -05:00
crockwave
67d94fb226 edited accounts_counters-test 2020-07-14 14:05:05 -05:00
Curtis ROck
26a37382de edited accounts_counters-test 2020-07-14 07:43:56 -05:00
Curtis ROck
3d547f2038 fix linter issue 2020-07-13 22:04:29 -05:00
Curtis ROck
8177a48a9b edit notifications-test 2020-07-13 21:49:42 -05:00
crockwave
40f688a6be edited notifications_test 2020-07-13 20:00:55 -05:00
Curtis ROck
3fe51e4885 edit notifications-test 2020-07-12 17:52:58 -05:00
Curtis ROck
1acdea14b1 fix lint issues 2020-07-11 22:50:02 -05:00
Curtis ROck
81a8231af4 edited notifications-test 2020-07-11 22:37:52 -05:00
crockwave
88b0ed440b edited notifications-test 2020-07-11 17:34:14 -05:00
Alex Gleason
03c2a8f294 Merge branch 'decouple_spoiler_from_nsfw' into 'develop'
Update compose.js to decouple spoiler from marking media as NSFW. Fixes #209

Closes #209

See merge request soapbox-pub/soapbox-fe!90
2020-07-11 19:36:22 +00:00
Curtis ROck
49d69178ae notifications-test edit 2020-07-11 08:34:20 -05:00
Curtis ROck
d2e2d52a0d edit notifications-test 2020-07-10 21:59:19 -05:00