Commit graph

350 commits

Author SHA1 Message Date
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