Commit graph

3136 commits

Author SHA1 Message Date
Alex Gleason
09d3f375d5
Dark mode: navbar bg, update snapshots 2022-03-23 21:46:59 -05:00
Alex Gleason
14ec40ee95
Typescript: start fixing 'strict' mode errors 2022-03-23 21:43:36 -05:00
Alex Gleason
be690255cb
Hooks: get rid of useAccount, create useOwnAccount 2022-03-23 21:05:55 -05:00
Alex Gleason
2da31341c4
Custom hooks: useAccount, useSettings, useSoapboxConfig 2022-03-23 20:29:35 -05:00
Alex Gleason
793b0f9128
Start adding dark mode 2022-03-23 19:18:37 -05:00
Alex Gleason
1b7bdb3658
Make BG shapes colors configurable 2022-03-23 17:15:40 -05:00
Alex Gleason
fff580f053
Normalize Tailwind colors from SoapboxConfig 2022-03-23 15:31:19 -05:00
Alex Gleason
7fc4950387
utils/tailwind.ts: Tailwind/SoapboxConfig conversion functions 2022-03-23 14:28:51 -05:00
Alex Gleason
12617bf7de
Merge remote-tracking branch 'origin/next' into next-colors 2022-03-23 13:05:53 -05:00
Justin
95a5ca2115 Convert Permalink to TSX 2022-03-23 13:50:45 -04:00
Justin
f0a9ed8ad4 Fix prop warnings 2022-03-23 13:50:45 -04:00
Alex Gleason
03a5ef6d41
Fix (most) PropType errors 2022-03-23 12:14:42 -05:00
Justin
72d356031b Improve style of Snackbar action 2022-03-23 11:32:27 -04:00
Justin
7e17772c14 Dynamically truncate the Account's name/username in hidden content 2022-03-23 08:40:21 -04:00
Alex Gleason
5ffb9828ba
LinkFooter: restore copyright message, let it be overridden 2022-03-22 17:43:42 -05:00
Alex Gleason
ac252d5c2f
index.ejs: remove Matomo snippet 2022-03-22 16:44:02 -05:00
Alex Gleason
8f85fd01d5
Make bg-shape colors configurable 2022-03-22 16:25:52 -05:00
Alex Gleason
9e16d992e6
Merge remote-tracking branch 'origin/next' into next-colors 2022-03-22 13:57:09 -05:00
Alex Gleason
a42ea0961a
Generate Tailwind colors from brandColor/accentColor 2022-03-22 12:37:57 -05:00
Justin
9af141dd87 Merge branch 'fix-logout' into 'next'
Remove unneeded 'event' when using Reach Menu

See merge request soapbox-pub/soapbox-fe!1130
2022-03-22 15:59:34 +00:00
Justin
614228a130 Merge branch 'improve-sensitive-design' into 'next'
Improve design of sensitive media

See merge request soapbox-pub/soapbox-fe!1129
2022-03-22 15:42:53 +00:00
Justin
430cfc3a2a Remove unneeded 'event' when using Reach Menu 2022-03-22 11:41:44 -04:00
Justin
02d65a527c Merge branch 'add-preferences-clarification' into 'next'
Add hint to clarify Feed settings

See merge request soapbox-pub/soapbox-fe!1128
2022-03-22 15:19:54 +00:00
Justin
122ee00f58 Improve design of sensitive media 2022-03-22 11:13:42 -04:00
Justin
69035c3dab Add hint to clarify Feed settings 2022-03-22 08:58:12 -04:00
Justin
40cc960985 Use React Router hook for 'history' 2022-03-22 08:42:26 -04:00
Justin
12ed6889a4 Use React Router Link in MenuLink 2022-03-22 08:28:18 -04:00
Alex Gleason
18bad4a5ab
Typescript: utils/theme.ts 2022-03-21 18:57:23 -05:00
Alex Gleason
0938612678
Use colors from soapbox.json at runtime 2022-03-21 18:43:31 -05:00
Alex Gleason
1c910248bf
Set Tailwind colors with CSS variables 2022-03-21 18:41:54 -05:00
Alex Gleason
61fd48204b
ComposeForm: convert some buttons into TSX 2022-03-21 17:28:57 -05:00
Alex Gleason
890299ead0
ComposeForm: convert buttons to ComposeFormButton component 2022-03-21 17:04:44 -05:00
Alex Gleason
d34937e959
UnauthorizedModal: use withRouter history 2022-03-21 16:08:03 -05:00
Alex Gleason
228f16f930
Merge remote-tracking branch 'origin/develop' into next-react-router-5 2022-03-21 16:05:25 -05:00
Alex Gleason
c6ab95349e Merge branch 'next-logo' into 'next'
Next: fix logo

See merge request soapbox-pub/soapbox-fe!1123
2022-03-21 20:41:28 +00:00
Justin
012138829c Fix tests 2022-03-21 16:30:46 -04:00
Alex Gleason
c9cef587a6
Merge remote-tracking branch 'origin/develop' into react-router-5 2022-03-21 15:30:26 -05:00
Justin
b6985f836a Use MenuItem if action 2022-03-21 16:29:33 -04:00
Alex Gleason
4ccbce71e0
Fetch frontend_configurations once again, reenable /soapbox/config route 2022-03-21 15:13:33 -05:00
Justin
e02d5142e5 Properly handle navigating to previous page if 'backHref' is undefined 2022-03-21 15:23:57 -04:00
Justin
b4d677dfde Use new Icon comp with Tabler version 2022-03-21 15:09:46 -04:00
Justin
72acda8c5d Remove dynamic import of Tabler icons 2022-03-21 15:05:52 -04:00
Alex Gleason
cda823f33f
Restore locale-data/README.md 2022-03-21 13:52:03 -05:00
Alex Gleason
c5e89969c8
Generalize homepage 2022-03-21 13:45:57 -05:00
Alex Gleason
32686f3a40
AgeVerification: generalize language 2022-03-21 13:40:43 -05:00
Alex Gleason
787c6600a0
SidebarMenu: fix missing message 2022-03-21 13:39:12 -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
fb9c665e3e
Typescript: utils/config_db.ts 2022-03-20 19:40:08 -05:00
Alex Gleason
b3de700732
Fix Soapbox Config 2022-03-20 18:41:47 -05:00
Alex Gleason
a59daacc04
Fix calculateStatus export 2022-03-19 17:29:46 -05:00
Alex Gleason
47653546de
Statuses reducer: refactor search_index 2022-03-19 15:04:28 -05:00
Alex Gleason
9d79b60134
Typescript: reducers/statuses.ts 2022-03-19 14:41:16 -05:00
Alex Gleason
b71a592f95
Typescript: reducers/accounts.ts 2022-03-19 14:22:52 -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
c420e83bff
Throw out accidental badge.tsx changes 2022-03-18 15:35:22 -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
0daa53c03c
Fix Typescript eslint 2022-03-18 13:16:59 -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
1f0341aa2b
Upgrade react-router-dom to v5.3 2022-03-17 20:17:28 -05:00
Alex Gleason
da07c9355a
Account: normalize fqn 2022-03-17 15:52:57 -05:00
Alex Gleason
19e8751178
Change default avatar, add default header 2022-03-17 15:21:55 -05:00
Alex Gleason
7c6c373eb2
Support account website field 2022-03-17 14:49:42 -05:00
Alex Gleason
9c0a304926
External auth: normalize instance 2022-03-16 22:44:30 -05:00
Alex Gleason
58466ce79c
Normalize Mastodon RC version 2022-03-16 22:41:25 -05:00
Alex Gleason
c413d94459 Merge branch 'normalizer-exports' into 'develop'
Normalizer exports, use fromJS in all normalizers

See merge request soapbox-pub/soapbox-fe!1105
2022-03-17 03:03:43 +00: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
b0623597ea
Fix comment 2022-03-16 21:58:30 -05:00
Alex Gleason
f1a286f5e0
Don't call fromJS in some reducers 2022-03-16 21:52:20 -05:00
Alex Gleason
8167b72762
Call fromJS in all normalizers 2022-03-16 21:47:58 -05:00
Alex Gleason
6b8e79d898
Export Record entities 2022-03-16 21:15:38 -05: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
cd19425a0d
Fix move notification crashing Notifications page 2022-03-16 19:23:07 -05:00
Alex Gleason
ed88dbcdde Merge branch 'chat-message-preview' into 'develop'
Set max-height to chat preview message

Closes #426

See merge request soapbox-pub/soapbox-fe!1088
2022-03-16 21:43:11 +00:00
Alex Gleason
1d4daee53b Merge branch 'datepicker-async' into 'develop'
Load react-datepicker asynchronously

Closes #855

See merge request soapbox-pub/soapbox-fe!1086
2022-03-16 21:42:13 +00: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
Alex Gleason
16266f7cb4
reducers/instance: typescript conversion 2022-03-14 18:28:13 -05:00
Alex Gleason
b2a8f3c1bc
api: convert to typescript 2022-03-14 18:06:42 -05:00
Alex Gleason
a801a8a7c8
soapbox/store/configureStore --> soapbox/store, add custom Hooks 2022-03-14 18:04:49 -05:00
40b5761460 Normalize Pleroma account location
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-03-14 22:55:55 +01:00
Alex Gleason
a91fe1db91
configureStore: typescript conversion 2022-03-14 13:43:18 -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
28ecb9d912
Normalize Card entity 2022-03-12 15:54:28 -06:00
Alex Gleason
5c8e8d9f99
Break Attachment normalizer into its own module 2022-03-12 15:33:53 -06:00
Alex Gleason
6812e7bfd4
Move Poll normalizer into its own module 2022-03-12 15:22:18 -06:00
Alex Gleason
08f219ab64
Break Mention normalizer into its own module (with tests) 2022-03-12 15:12:16 -06:00
Alex Gleason
b100068b95
Normalizers: add jsdoc heading 2022-03-12 15:01:00 -06:00
Alex Gleason
2089cb124d
Test account.moved 2022-03-12 14:52:03 -06:00
Alex Gleason
66e51fa5ef
Status normalizer: revert update() refactor 2022-03-12 14:29:02 -06:00
Alex Gleason
b46f31e9f4
Account normalizer emojification tests 2022-03-12 14:19:34 -06:00
Alex Gleason
049d726ff5
Merge remote-tracking branch 'origin/develop' into normal-account-refactor 2022-03-11 21:22:19 -06:00
Alex Gleason
6fa973aec0
Remove importer/normalizer.js 2022-03-11 21:22:11 -06:00
Alex Gleason
2cd6499454
Attachment: add missing internal fields 2022-03-11 21:05:42 -06:00
Alex Gleason
b5432ad8de
Refactor some reducers with Immutable.Record 2022-03-11 14:42:52 -06:00
Alex Gleason
7a7fafc8ed
Refactor applyActions() into test_helpers.js 2022-03-11 13:55:48 -06:00
Alex Gleason
7d91bb7ff9
Refactor Notifications reducer with Immutable.Record, start rewriting tests 2022-03-11 13:51:34 -06:00
Alex Gleason
4c2cdc4ac2
StatusRecord: let account be null by default 2022-03-11 12:15:49 -06:00
Alex Gleason
d48a9586e5
Convert Instance normalizer into TypeScript 2022-03-11 12:14:32 -06:00
Alex Gleason
37827c34d9
Create Notification normalizer 2022-03-11 12:13:36 -06:00
Alex Gleason
9547a7042d
Normalize chat in reducer, not action 2022-03-10 21:09:12 -06:00
Alex Gleason
ecaf726a19
Rename map --> entity 2022-03-10 20:40:04 -06:00
Alex Gleason
75db92719d
Normalize poll emoji 2022-03-10 19:55:14 -06:00
Alex Gleason
d600a74410
Revert "PollContainer: don't pass me as a prop"
This reverts commit dc2d3b1b09.
2022-03-10 19:36:58 -06:00
Alex Gleason
f91344366d
Instance normalizer: remove unneeded line 2022-03-10 18:08:41 -06:00
Alex Gleason
8decaa2d9f
Parse Mentions as Immutable.Record 2022-03-10 17:57:12 -06:00
Alex Gleason
9afd43a42d
Normalize Attachment entities as Immutable.Record 2022-03-10 17:15:09 -06:00
Alex Gleason
dc2d3b1b09
PollContainer: don't pass me as a prop 2022-03-10 16:30:42 -06:00
Alex Gleason
4bd1531056
More poll normalization fixes 2022-03-10 16:25:11 -06:00
Alex Gleason
2dcd05651e
Improve Poll normalization, store as Immutable.Record 2022-03-10 15:32:01 -06:00
2489438ff4 Set max-height to chat preview message
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-03-10 19:03:18 +01: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
4961433f7b
Actually, we can access state.instance.version directly now 2022-03-09 16:07:24 -06:00
Alex Gleason
f75c0738a7
Instance normalizer: add default stats, remove default media_attachments 2022-03-09 16:02:50 -06:00
Alex Gleason
9537c87909
Record --> ImmutableRecord 2022-03-09 16:00:43 -06:00
a29019dbb0 Load react-datepicker asynchronously
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-03-09 22:59:51 +01:00
Alex Gleason
5ddc8542fd
Merge remote-tracking branch 'origin/develop' into record-enhancements 2022-03-09 15:58:35 -06:00
Alex Gleason
a63aa16472 Merge branch 'state-record' into 'develop'
Parse the Redux state as an Immutable.Record

See merge request soapbox-pub/soapbox-fe!1085
2022-03-09 21:54:51 +00:00
Alex Gleason
90afa8aeaf
Parse the Redux state as an Immutable.Record 2022-03-09 15:24:42 -06:00
Alex Gleason
a2adaf2ffd
Convert Status Normalizer to TypeScript 2022-03-09 14:26:57 -06:00
Alex Gleason
6e61cb525c
Move Account interface to types/ directory 2022-03-09 13:26:48 -06:00
Alex Gleason
894bf1e880
Account normalizer: convert to Typescript, add type 2022-03-09 12:16:24 -06:00
Alex Gleason
38fbd703e4
Fix account relationships 2022-03-09 00:38:28 -06:00
Alex Gleason
4e254928fe
EditProfile: convert to Map before mutations 2022-03-09 00:12:27 -06:00
Alex Gleason
831741bea5
Test that reducers parse as Records 2022-03-08 23:59:59 -06:00
Alex Gleason
10116a312a
Normalizers: fix tests 2022-03-08 23:47:30 -06:00
Alex Gleason
7a18f8b9c8
Create Records for Account and Status 2022-03-08 23:25:30 -06:00
Alex Gleason
1c36d1b91c
Store statuses as StatusRecord 2022-03-08 22:02:02 -06:00
Alex Gleason
e7ed56127f
VerificationBadge: use tsx, add className prop 2022-03-07 12:42:00 -06:00
Alex Gleason
a10ba9ce16
verified.svg: use currentColor instead of .bg class 2022-03-07 11:33:15 -06:00
marcin mikołajczak
edb80c705d Merge branch 'attachment-thumbs-sensitive' into 'develop'
Fix: Quote posts do not carry sensitive tag

Closes #852

See merge request soapbox-pub/soapbox-fe!1079
2022-03-06 23:22:01 +00:00
06b8b407c5 AttachmentThumbs: sensitive tag
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-03-06 23:39:13 +01:00
marcin mikołajczak
fd27688b11 Merge branch 'fix-modal-navigation' into 'develop'
Fix: User is returned to a previously viewed page after replying to a post

Closes #843

See merge request soapbox-pub/soapbox-fe!1078
2022-03-06 22:35:39 +00:00
5b46f0c0f7 Fix: User is returned to a previously viewed page after replying to a post
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-03-06 23:20:13 +01:00
Alex Gleason
067e3a26f5
Allow setting a custom verified icon 2022-03-05 13:55:41 -06:00
Alex Gleason
583de44b35
Use an SVG verified icon 2022-03-05 13:17:03 -06:00
Alex Gleason
664dfa2688
MarkdownButton: don't do the availability check in the component itself 2022-03-04 13:01:22 -06:00
Alex Gleason
d98c54de4f
ComposeForm: conditional features 2022-03-04 12:47:59 -06:00
Alex Gleason
8d64bf2697
custom: fix import leak 2022-03-03 23:38:59 -06:00
Alex Gleason
afb7827f40
Allow features overrides, document custom/ directory 2022-03-03 23:05:37 -06:00
Alex Gleason
4543e943dd
Fix custom locale imports 2022-03-03 22:53:18 -06:00
Alex Gleason
36ca05c85b
Support adding custom locale files at build time 2022-03-03 16:12:25 -06:00
Alex Gleason
9b756043fb
ReactionsModal: defensive property checks 2022-03-03 11:36:05 -06:00
Justin
74af8c0e91 Fix scroll-to-top on Notifications 2022-03-03 10:13:45 -05:00