Commit graph

2589 commits

Author SHA1 Message Date
Justin
6e62f894e3 Fix sensitive content bugs 2022-04-04 16:51:29 -04:00
Alex Gleason
1a4401ce75
Convert ThreadStatus to tsx 2022-04-04 15:20:17 -05:00
Justin
c465e68f67 Add tests for LoginForm 2022-04-04 16:07:09 -04:00
Alex Gleason
aa808be682
Display a thread loading state 2022-04-04 14:44:31 -05:00
773f2f62b0 Add text color for columns
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-04-04 21:39:45 +02:00
Alex Gleason
e88fe4a707
Clean up me usage 2022-04-04 14:24:55 -05:00
Justin
43512a469b Add tests for Registration component 2022-04-04 15:21:34 -04:00
Alex Gleason
fdb44d615d
Convert features/status/index to typescript (pretty much) 2022-04-04 14:17:24 -05:00
Justin
827bca3fd6 Silence prop warnings in test suite 2022-04-04 15:05:15 -04:00
Alex Gleason
c51441c026
TypeScript: reducers/me 2022-04-04 12:44:05 -05:00
Justin
dcc90bc99a Add registration & verification tests 2022-04-04 11:54:00 -04:00
Justin
ed47cf5f09 Convert old tests to use "react-testing-library" 2022-04-04 11:53:47 -04:00
Justin
9a099b3fa7 Add "react-testing-library"
This commit also removes our older testing libraries like Enzyme and React Test Renderer.
2022-04-04 11:51:32 -04:00
Alex Gleason
41ae50c495 Merge branch 'next-emoji-reacts' into 'next'
Next: emoji reacts part 1

See merge request soapbox-pub/soapbox-fe!1161
2022-04-03 18:09:27 +00:00
1f697dd8f2 hotkeys modal
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-04-03 19:40:06 +02:00
abf98cb75a Conditionally display some hotkeys
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-04-03 19:34:00 +02:00
1ba551b88b styles
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-04-03 19:27:08 +02:00
Alex Gleason
d738e7d5bf
Fix tests 2022-04-02 21:40:47 -05:00
Alex Gleason
cc1b478e3f
StatusActionButton: change the way color props work 2022-04-02 20:23:00 -05:00
Alex Gleason
bd98842434
Refactor StatusActionButton 2022-04-02 18:43:34 -05:00
Alex Gleason
82130a1612
StatusActionBar: remove a bunch of .get() calls 2022-04-02 13:07:12 -05:00
Alex Gleason
96ccc66641
Convert DropdownMenu to typescript 2022-04-02 13:03:12 -05:00
Alex Gleason
a080ed8647
status.tsx: extend withRouter props 2022-04-02 11:55:54 -05:00
Alex Gleason
c74d154874
Merge remote-tracking branch 'origin/next' into next-emoji-reacts 2022-04-02 10:48:45 -05:00
e36e5b5996 Update snapshots
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-04-02 16:47:46 +02:00
e36212e0ed Merge remote-tracking branch 'soapbox/next' into next_ 2022-04-02 16:10:42 +02:00
0661ca25be styles
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-04-02 16:10:16 +02:00
Alex Gleason
a045ec45df
StatusActionButton improvements 2022-04-01 22:28:46 -05:00
Alex Gleason
883545b3b3
StatusActionButton: treat element as a group 2022-04-01 21:55:29 -05:00
Curtis
590381fb23 Update header.js 2022-04-02 02:30:04 +00:00
Alex Gleason
dfb5e7f41b
SidebarNavigationLink: set parent height for before svg is loaded 2022-04-01 20:41:20 -05:00
Alex Gleason
1e3c6d9430
Remove staff util functions, normalize account staff fields 2022-04-01 19:39:32 -05:00
Alex Gleason
4a8f08e313
StatusActionBar: convert to tsx 2022-04-01 18:39:27 -05:00
Alex Gleason
c59ff4e822
StatusActionCounter: use shortNumberFormat 2022-04-01 17:45:09 -05:00
Alex Gleason
3fe21ce268
StatusActionBar: conditionally render dumb Like button 2022-04-01 17:38:36 -05:00
Alex Gleason
561f348094
Merge remote-tracking branch 'origin/next' into next-emoji-reacts 2022-04-01 16:24:25 -05:00
Alex Gleason
6cb04965a2
StatusActionBar: refactor buttons 2022-04-01 16:16:10 -05:00
84cc259a8b styles
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-04-01 22:55:53 +02:00
Alex Gleason
0f044ad8e8
Create StatusActionButton component 2022-04-01 15:45:48 -05:00
Alex Gleason
6c8bc3f329
Hoverable component: we've come full circle 2022-04-01 14:55:42 -05:00
Alex Gleason
1742236074
First pass at Hoverable component 2022-04-01 13:31:08 -05:00
Alex Gleason
69de2aad55
Restyle emoji components 2022-04-01 11:42:07 -05:00
Alex Gleason
f03fb5b73c
Create now emoji-selector functional component (wip) 2022-03-31 21:17:29 -05:00
Alex Gleason
5e8472e29d
EmojiSelector: fix onReact prop 2022-03-31 20:47:28 -05:00
Alex Gleason
52982706fe
Add Emoji functional component 2022-03-31 20:32:53 -05:00
Alex Gleason
ee1ef09201
EmojiSelector: convert to tsx 2022-03-31 19:03:43 -05:00
Alex Gleason
836c02b388
Convert reducers/alerts to Typescript 2022-03-31 18:18:39 -05:00
Alex Gleason
7efa10e7e0
Convert reducers/admin to Typescript 2022-03-31 18:10:34 -05:00
Alex Gleason
dddba516fb
Convert selectors/index to Typescript 2022-03-31 17:00:31 -05:00
Alex Gleason
830fb67215
Fix Jest snapshot 2022-03-31 14:29:04 -05:00
Alex Gleason
c077a4ea58
Improve status.card normalization (it will never be a string) 2022-03-31 14:28:09 -05:00
Alex Gleason
c4dd3c65f9
Convert components/status to Typescript 2022-03-31 14:13:43 -05:00
Alex Gleason
733d240893
Merge remote-tracking branch 'origin/next' into next-emoji-reacts 2022-03-31 11:47:07 -05:00
Justin
3bea4927be Change copy for generic 500 error 2022-03-31 07:13:47 -04:00
Alex Gleason
ba7f99096c
utils/features: don't call .get 2022-03-30 16:30:04 -05:00
Alex Gleason
462658dda7
LinkFooter: replace account aliases with account migration 2022-03-30 15:53:48 -05:00
Alex Gleason
ac7b8553d4
LinkFooter: don't use <ul> tag 2022-03-30 15:51:49 -05:00
Alex Gleason
548ecef20f
LinkFooter: convert to TSX 2022-03-30 15:50:16 -05:00
Alex Gleason
99b89d2230
external_video_id hotfix 2022-03-30 14:01:05 -05:00
Alex Gleason
531f6f3993
Improve bg-shape-1 color normalization 2022-03-30 12:13:23 -05:00
Alex Gleason
c62cd9898a
Fix background shapes for dark mode 2022-03-30 12:08:32 -05:00
marcin mikołajczak
beeec8ba06 Merge branch 'next' into 'next'
Polish translation

See merge request soapbox-pub/soapbox-fe!1167
2022-03-30 17:01:01 +00:00
9915fb3c04 Polish translation
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-03-30 18:43:39 +02:00
Alex Gleason
c82d191dd8
ThumbNavigationLink: fix runtime error
No clue why that was happening
2022-03-30 11:34:05 -05:00
Alex Gleason
9fb3439cda Merge branch 'next-truthsocial-fixes' into 'next'
Next: TruthSocial fixes

See merge request soapbox-pub/soapbox-fe!1166
2022-03-30 16:15:32 +00:00
Alex Gleason
ebc2bf96ac
external_video_id: render card html instead of hardcoding the provider 2022-03-30 11:03:35 -05:00
Alex Gleason
b363c20359
Enable Trends and Suggestions for TruthSocial 2022-03-30 10:58:06 -05:00
Alex Gleason
3e9e0486ba
Preserve TruthSocial "external_video_id" in attachments 2022-03-30 10:55:32 -05:00
Alex Gleason
36fb3759a0 Merge branch 'next' into 'next'
typescript, ThumbNavigationLink component

See merge request soapbox-pub/soapbox-fe!1165
2022-03-30 15:55:18 +00:00
Justin
6099b520a3 Merge branch 'video-upload-progress' into 'next'
Convert VideoProgress to TW and TSX

See merge request soapbox-pub/soapbox-fe!1164
2022-03-30 15:48:38 +00:00
cf0307af0f typescript, ThumbNavigationLink component
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-03-30 17:37:30 +02:00
Justin
6ccc1f10ec Improve style of UploadProgress 2022-03-30 11:22:37 -04:00
Justin
a15697faef Convert UploadProgress to TSX 2022-03-30 10:51:07 -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
9352638761 Convert media.js to TSX 2022-03-30 10:40:09 -04:00
Justin
fbd8fa87ae Improve error handling 2022-03-30 10:40:09 -04:00
9022651a67 Styles, dark mode
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-03-30 15:07:17 +02:00
Alex Gleason
8dfda97fea
Actually, keep some of the good locale changes 2022-03-29 15:34:07 -05:00
Alex Gleason
f5a4a6fb39
Take locales from origin/develop 2022-03-29 15:20:47 -05:00
Alex Gleason
b1d2681115
WIP emoji reacts 2022-03-29 15:17:39 -05: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
6d4d96528c quote posts?
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-03-29 20:12:49 +02:00
6023f69b2e remove duplicate column headings
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-03-29 16:26:02 +02:00
e5f06bf0aa Update snapshots
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-03-29 15:58:11 +02:00
dbeb292009 wip dark mode
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-03-29 15:40:02 +02:00
Alex Gleason
7006af2803
ui/column: fix snapshot 2022-03-28 19:02:21 -05:00
Alex Gleason
570164de33
ui/column: add relative class 2022-03-28 18:55:28 -05:00
Alex Gleason
75adf65ee9
Helmet: fix title 2022-03-28 18:55:21 -05:00
Alex Gleason
a8eed4192d
tintify: tweak color intensity 2022-03-28 18:21:43 -05:00
Alex Gleason
51fc8402f2
MediaGallery: use original image 2022-03-28 18:00:21 -05:00
Alex Gleason
c8bb99af60
Improve color normalization 2022-03-28 18:00:04 -05:00
Alex Gleason
4e5422ec61
SoapboxConfig: normalize cryptoAddresses 2022-03-28 15:29:39 -05:00
Alex Gleason
483b28988f
Normalize SoapboxConfig 2022-03-28 14:58:50 -05:00
Alex Gleason
2c0ce084c3
Chats: remove duplicate navigation 2022-03-28 11:07:26 -05:00
Alex Gleason
32085632fa
ComposeForm minor improvements 2022-03-26 23:53:44 -05:00
Alex Gleason
1a1464f5ba
Poll: convert to React.FC, remove PollContainer 2022-03-26 22:24:52 -05:00
Alex Gleason
cc1df1bd09
Polls: style with Tailwind 2022-03-26 22:06:18 -05:00
Alex Gleason
9262d5c26b
Poll: break into smaller components 2022-03-26 19:53:51 -05:00
Alex Gleason
e78ea4aaf3
Polls: break out PollOptionText into a React.FC 2022-03-26 19:05:16 -05:00
Alex Gleason
334b45ec74
Polls: break out PollPercentageBar into separate component 2022-03-26 18:52:48 -05:00
Alex Gleason
0cdf898b37
Convert Polls to TSX 2022-03-26 18:11:26 -05:00
Alex Gleason
4322712bfb
Convert OptionalMotion and ReducedMotion to TypeScript 2022-03-26 17:26:26 -05:00
7f7d3ed2ee Update Polish translation
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-03-26 23:03:14 +01:00
Alex Gleason
c0c758c103
Typescript: reducers/polls.ts 2022-03-26 16:20:45 -05:00
Alex Gleason
1ce340c1c5
Make polls look mostly okay 2022-03-26 15:39:50 -05:00
Alex Gleason
05f5045648
Convert utils/features.ts to TypeScript 2022-03-26 14:23:29 -05:00
Alex Gleason
55c99f0207
utils/features.js: TruthSocial features 2022-03-26 14:06:25 -05:00
Alex Gleason
da17562e0a
Features conditional routing 2022-03-26 13:53:01 -05:00
Alex Gleason
f83119bfc9
Filter statuses by full acct with @ symbol 2022-03-26 11:17:27 -05:00
Alex Gleason
24a78f7740
Merge remote-tracking branch 'origin/develop' into next 2022-03-26 11:15:06 -05:00
Alex Gleason
f7425d80eb
Add test for search_index with mentions 2022-03-26 10:45:45 -05:00
ea57d1c4a7 Fix filtering, allow filtering by mentioned usernames
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-03-26 10:57:48 +01:00
Alex Gleason
ced665a446
CryptoDonate tailwind refactors 2022-03-25 17:53:59 -05:00
Alex Gleason
18323cdc75
CryptoAddress: convert to tsx 2022-03-25 16:59:05 -05:00
Alex Gleason
5d4eb96cca
CryptoDonate: convert utils to ts 2022-03-25 16:39:26 -05:00
Alex Gleason
c62d402a4e
DetailedCryptoAddress: convert to tsx 2022-03-25 16:27:37 -05:00
Alex Gleason
d8bde70043
CryptoIcon: convert to tsx 2022-03-25 16:22:09 -05:00
Alex Gleason
7e2a74b05d
CryptoDonate: convert to tsx 2022-03-25 15:24:10 -05:00
Alex Gleason
13c4948ad2
Restore /crypto/donate page 2022-03-25 15:16:05 -05:00
Alex Gleason
c8c2f40e38
SiteWallet: convert to tsx 2022-03-25 14:42:04 -05:00
Alex Gleason
67c0c83b44
Refactor sidebar panels with Widget component 2022-03-25 14:08:12 -05:00
Alex Gleason
999f518f10
Display CryptoDonatePanel, convert to tsx 2022-03-25 13:38:03 -05:00
Alex Gleason
75f78dc5cb
Jest: update snapshots 2022-03-24 19:06:36 -05:00
Alex Gleason
ef0de13c91
Improve dark mode 2022-03-24 18:56:22 -05:00
Alex Gleason
ee691e0cc8
LinkFooter: remove "Legal" link 2022-03-24 16:59:25 -05:00
Alex Gleason
ae2153dffe
Add ThemeToggle to Navbar (developers only) 2022-03-24 16:17:39 -05:00
Alex Gleason
53b920c297
ThemeToggle: convert to TSX 2022-03-24 16:03:02 -05:00
Alex Gleason
f8592b3616
Jest: fix tests 2022-03-24 14:44:39 -05:00
Alex Gleason
dec49003f4
Merge remote-tracking branch 'origin/next' into next-ts-strict 2022-03-24 14:30:39 -05:00
Alex Gleason
2940a3ff4d
Put Typescript in "strict" mode, fix or ignore errors 2022-03-24 14:27:27 -05:00
Justin
867912aa1b Wrap profile fields 2022-03-24 14:08:54 -04:00
Alex Gleason
ca68bc9df8 Merge branch 'next-ts-strict' into 'next'
Typescript: Start fixing strictFunctionTypes errors

See merge request soapbox-pub/soapbox-fe!1143
2022-03-24 17:41:19 +00:00
Alex Gleason
84d7d2ee38
Add @ts-ignore lines for strictFunctionTypes 2022-03-24 12:26:27 -05:00
Alex Gleason
67471638c3
Typescript: Start fixing strictFunctionTypes errors 2022-03-24 11:53:09 -05:00
Justin
e0b1abdfc0 Merge branch 'fix-effect' into 'next'
Remove conditional to run style logic

See merge request soapbox-pub/soapbox-fe!1142
2022-03-24 16:34:12 +00:00
Alex Gleason
29e434d31f Merge branch 'next-ts-strict' into 'next'
Next: Typescript: start fixing 'strict' mode errors

See merge request soapbox-pub/soapbox-fe!1138
2022-03-24 16:27:17 +00:00
Justin
ea6cf58cb5 Merge branch 'fix-colors' into 'next'
Resolve missing CSS variables in the theme

See merge request soapbox-pub/soapbox-fe!1140
2022-03-24 16:17:04 +00:00
Justin
63bafc41a1 Remove conditional to run style logic 2022-03-24 12:16:41 -04:00
Alex Gleason
161cd3d1fc
Revert lazy type changes to actions/instance.ts 2022-03-24 11:09:30 -05:00
Alex Gleason
53e997beb0
Merge remote-tracking branch 'origin/next' into next-ts-strict 2022-03-24 10:51:56 -05:00
Justin
97af1ece28 Resolve missing CSS variables in the theme 2022-03-24 11:48:03 -04:00
Justin
a9c83ed294 Make sure the current element is present before execution 2022-03-24 11:06:01 -04:00
Justin
2094f9673d Fix bug when clicking on a Status 2022-03-24 08:23:18 -04:00
Alex Gleason
5f4930dba3 Merge branch 'next-dark-mode' into 'next'
Next: dark mode

See merge request soapbox-pub/soapbox-fe!1136
2022-03-24 03:04:40 +00:00
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