Commit graph

68 commits

Author SHA1 Message Date
Alex Gleason
889c2658ba
ComposeForm: refactor canSubmit so it works correctly in more scenarios 2023-11-27 14:32:41 -06:00
Alex Gleason
c7f9a9eb56
ComposeForm: get text from the editorRef instead of component state
Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1563
2023-11-14 11:08:32 -06:00
tassoman
fba42b531b adding tailwind snap effect to scrolled autosuggested items 2023-10-15 02:16:27 +02:00
Alex Gleason
e0c11fbfd1
Rework MentionNode to take a whole Mention entity 2023-10-13 22:14:55 -05:00
Alex Gleason
a37fa8bb85
Mention: allow it to link to the profile. disabled for MentionNode 2023-10-13 22:07:43 -05:00
Alex Gleason
dde8322c7d
MentionNode: move Mention into a separate component 2023-10-13 21:09:52 -05:00
Alex Gleason
622692fe4d
MentionNode: truncate Nostr usernames 2023-10-13 17:37:11 -05:00
Alex Gleason
f6d60c243a
MentionNode: add Tooltip 2023-10-13 17:29:52 -05:00
Alex Gleason
5aacfe299a
MentionNode: show the username, not the full acct 2023-10-13 17:22:45 -05:00
Alex Gleason
964ba8c758
Make MentionNode a DecoratorNode instead of a TextNode 2023-10-13 17:19:55 -05:00
Alex Gleason
dfe8f84ae1 Merge branch 'compose-clear' into 'main'
Compose clear

See merge request soapbox-pub/soapbox!2809
2023-10-13 20:29:28 +00:00
Alex Gleason
8f55b6d5c2
Split SubmitPlugin out of StatePlugin 2023-10-13 15:16:39 -05:00
Tassoman
2876252ac0 adding case insensitive match during status composition 2023-10-13 17:20:00 +00:00
Alex Gleason
181df09039
submitCompose: accept an options object 2023-10-13 11:47:24 -05:00
Alex Gleason
d71bb8a673
ComposeForm: pass onSubmit through UploadForm to ComposeUpload 2023-10-13 11:16:43 -05:00
Alex Gleason
d0170dc449 Merge branch 'upgrade-react-intl' into 'main'
Upgrade react-intl, remove translationRunner, fix `yarn i18n`

Closes #1553

See merge request soapbox-pub/soapbox!2799
2023-10-11 20:27:32 +00:00
Alex Gleason
f6251a221a
Run yarn i18n, copy some messages from en.json back into source files 2023-10-11 15:15:50 -05:00
Alex Gleason
ad329c33fa
Remove AutosuggestTextarea 2023-10-11 13:38:58 -05:00
Alex Gleason
ae63d37d78
rtl.ts -> utils/rtl.ts 2023-10-10 20:02:22 -05:00
Alex Gleason
596ea21976
Chunk ScheduleForm differently, fix screen blinking when compose is focused 2023-10-09 22:29:57 -05:00
Alex Gleason
e1982804b6
ComposeForm: wrap ComposeEditor with Suspense 2023-10-09 22:19:27 -05:00
Alex Gleason
b02c39da2d
Delete Bundle component, use Suspense and React.lazy 2023-10-07 17:14:45 -05:00
Tassoman
5ed8c78c88 added vertical scroll feature to the autosuggest component 2023-10-07 13:26:14 +00:00
Alex Gleason
ebed7cee0b Merge branch 'conversation-verbose' into 'main'
Poor's man verbose conversations

See merge request soapbox-pub/soapbox!2768
2023-10-04 23:32:27 +00:00
Alex Gleason
3f640e9797
Untuck tests out of __tests__ directories, colocate with program files 2023-10-02 14:27:40 -05:00
Alex Gleason
645ce60a5f
eslint: use semicolon TypeScript delimeter 2023-10-02 13:54:02 -05:00
tassoman
e8eefda486 updated: reply-indicator overflows verbose communications, during reply 2023-09-28 08:03:40 +02:00
tassoman
12118e1435 autosuggest css should be relative, not fixed 2023-09-27 14:40:11 +02:00
Alex Gleason
2d7ce9b684
lexical: pass compose text from the reducer on mount
Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1531
2023-09-25 22:47:55 -05:00
Alex Gleason
eb875673fd
ComposeForm: insert emoji from picker into lexical
Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1529
2023-09-25 16:31:01 -05:00
Alex Gleason
cdda5363f6
actions: useEmoji --> chooseEmoji 2023-09-25 16:20:47 -05:00
Alex Gleason
cefe9adc05
EmojiNode: fix getTextContent, remove unused exportDOM 2023-09-25 16:12:51 -05:00
Alex Gleason
f3783f1a50
AutosuggestPlugin: don't autosuggest hashtags for now
https://gitlab.com/soapbox-pub/soapbox/-/issues/1527
2023-09-25 16:09:53 -05:00
Alex Gleason
4b5602a086
lexical: render native emojis as Twemoji 2023-09-25 16:02:13 -05:00
Alex Gleason
2a9cb08d08
lexical: restore EmojiNode, fix Android backspace! 2023-09-25 15:46:29 -05:00
Alex Gleason
aea2653b19
AutosuggestPlugin: remove extraneous ? 2023-09-25 15:18:46 -05:00
Alex Gleason
ab22422aa7
MentionNode: use 'segmented' to fix Android problems 2023-09-25 15:12:43 -05:00
Alex Gleason
e88b952a6f
lexical: remove MentionPlugin, only insert mention when selected from autosuggest 2023-09-25 14:49:00 -05:00
Alex Gleason
71bb8cc73e
lexical: fix license path in lexical files 2023-09-25 13:32:12 -05:00
Alex Gleason
f628cd73b0
MentionPlugin: use a simpler regex, fix double-@ mentions
Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1530
2023-09-25 13:30:52 -05:00
Alex Gleason
5449ea3326
MentionPlugin: simplify regex and getMatch 2023-09-25 12:25:40 -05:00
Alex Gleason
7ff9d2ed3b
MentionPlugin: do a little refactoring 2023-09-25 12:16:29 -05:00
Alex Gleason
60f0e6ff6a
Disable EmojiNode for now :( 2023-09-24 14:48:38 -05:00
Alex Gleason
4298722da9
EmojiNode: clone with key 2023-09-24 14:46:19 -05:00
Alex Gleason
aabaaee8b8 Merge branch 'instance-zod' into 'main'
Convert instance to use zod

See merge request soapbox-pub/soapbox!2751
2023-09-24 15:23:33 +00:00
Alex Gleason
550cd38c3c Delete mention-node.tsx 2023-09-24 03:31:22 +00:00
Alex Gleason
3b630ed8fb
Convert instance to use zod 2023-09-23 20:49:33 -05:00
Alex Gleason
939c1bfbb8
lexical: fix custom emojis (add a text representation of them) 2023-09-23 17:27:39 -05:00
Alex Gleason
e712d7bb52
lexical: remove unused nodes 2023-09-23 16:26:46 -05:00
Alex Gleason
bc3662afc7
lexical: fix ctrl+Enter 2023-09-23 16:20:09 -05:00