element-portable/src/components/views/rooms
alunturner ca25c8f430
Commands for plain text editor (#10567)
* add the handlers for when autocomplete is open plus rough / handling

* hack in using the wysiwyg autocomplete

* switch to using onSelect for the behaviour

* expand comment

* add a handle command function to replace text

* add event firing step

* fix TS errors for RefObject

* extract common functionality to new util

* use util for plain text mode

* use util for rich text mode

* remove unused imports

* make util able to handle either type of keyboard event

* fix TS error for mxClient

* lift all new code into main component prior to extracting to custom hook

* shift logic into custom hook

* rename ref to editorRef for clarity

* remove comment

* try to add cypress test for behaviour

* remove unused imports

* fix various lint/TS errors for CI

* update cypress test

* add test for pressing escape to close autocomplete

* expand cypress tests

* add typing while autocomplete open test

* refactor to single piece of state and update comments

* update comment

* extract functions for testing

* add first tests

* improve tests

* remove console log

* call useSuggestion hook from different location

* update useSuggestion hook tests

* improve cypress tests

* remove unused import

* fix selector in cypress test

* add another set of util tests

* remove .only

* remove .only

* remove import

* improve cypress tests

* remove .only

* add comment

* improve comments

* tidy up tests

* consolidate all cypress tests to one

* add early return

* fix typo, add documentation

* add early return, tidy up comments

* change function expression to function declaration

* add documentation

* fix broken test

* add check to cypress tests

* update types

* update comment

* update comments

* shift ref declaration inside the hook

* remove unused import

* update cypress test and add comments

* update usePlainTextListener comments

* apply suggested changes to useSuggestion

* update tests

---------

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2023-04-27 07:37:47 +00:00
..
EventTile Enable @typescript-eslint/explicit-function-return-type in /src (#9788) 2023-01-12 13:25:14 +00:00
NotificationBadge Explicitly specify all children props (#10312) 2023-03-08 13:28:07 +00:00
wysiwyg_composer Commands for plain text editor (#10567) 2023-04-27 07:37:47 +00:00
AppsDrawer.tsx Conform more of the codebase to strictNullChecks (#10573) 2023-04-13 08:52:57 +01:00
Autocomplete.tsx Conform more of the codebase to strictNullChecks (#10358 2023-03-13 15:07:20 +00:00
AuxPanel.tsx Conform more of the codebase to strictNullChecks (#10602) 2023-04-17 08:31:58 +01:00
BasicMessageComposer.tsx Fix lack of screen reader indication when triggering auto complete (#10664) 2023-04-21 09:49:05 +00:00
CollapsibleButton.tsx Enable @typescript-eslint/explicit-function-return-type in /src (#9788) 2023-01-12 13:25:14 +00:00
DecryptionFailureBar.tsx Fix decryption failure bar covering the timeline (#10360) 2023-03-30 10:11:16 +01:00
E2EIcon.tsx Conform more of the codebase to strictNullChecks (#10358 2023-03-13 15:07:20 +00:00
EditMessageComposer.tsx Conform more of the codebase with strictNullChecks (#10703) 2023-04-25 09:28:48 +01:00
EmojiButton.tsx Add arrow key controls to emoji and reaction pickers (#10637) 2023-04-20 14:56:21 +00:00
EntityTile.tsx Enable "jsx-a11y/alt-text" and "jsx-a11y/label-has-associated-control" lint rules (#10361) 2023-03-14 21:25:11 +00:00
EventTile.tsx Replace uses of checkDeviceTrust with getDeviceVerificationStatus (#10663) 2023-04-24 14:19:46 +01:00
ExtraTile.tsx Refactor ExtraTile to use functional components (#10191) 2023-02-23 11:57:37 +00:00
HistoryTile.tsx Conform more of the codebase to strictNullChecks (#10358 2023-03-13 15:07:20 +00:00
JumpToBottomButton.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
LinkPreviewGroup.tsx Conform more of the codebase to strictNullChecks (#10358 2023-03-13 15:07:20 +00:00
LinkPreviewWidget.tsx Conform more of the codebase to strictNullChecks (#10602) 2023-04-17 08:31:58 +01:00
LiveContentSummary.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
MemberList.tsx Conform more of the codebase to strictNullChecks (#10504 2023-04-04 11:41:46 +01:00
MemberTile.tsx Replace uses of checkDeviceTrust with getDeviceVerificationStatus (#10663) 2023-04-24 14:19:46 +01:00
MessageComposer.tsx Conform more of the codebase to strictNullChecks (#10573) 2023-04-13 08:52:57 +01:00
MessageComposerButtons.tsx Conform more of the codebase to strictNullChecks (#10672) 2023-04-21 11:50:42 +01:00
MessageComposerFormatBar.tsx Conform more of the codebase to strictNullChecks (#10666) 2023-04-20 09:49:10 +01:00
NewRoomIntro.tsx Fix block/inline Element descendants error noise in NewRoomIntro.tsx (#10412) 2023-03-21 10:55:48 -05:00
NotificationBadge.tsx Conform more of the codebase to strictNullChecks (#10358 2023-03-13 15:07:20 +00:00
PinnedEventTile.tsx Make more code conform to strict null checks (#10219 2023-02-24 15:28:40 +00:00
PresenceLabel.tsx Conform more of the codebase to strictNullChecks (#10350 2023-03-10 14:55:06 +00:00
ReadReceiptGroup.tsx Conform more of the codebase to strictNullChecks (#10602) 2023-04-17 08:31:58 +01:00
ReadReceiptMarker.tsx Conform more of the codebase to strictNullChecks (#10602) 2023-04-17 08:31:58 +01:00
RecentlyViewedButton.tsx Conform more of the codebase to strictNullChecks (#10602) 2023-04-17 08:31:58 +01:00
ReplyPreview.tsx Conform more of the codebase to strictNullChecks (#10573) 2023-04-13 08:52:57 +01:00
ReplyTile.tsx Conform more of the codebase to strictNullChecks (#10602) 2023-04-17 08:31:58 +01:00
RoomBreadcrumbs.tsx Enable @typescript-eslint/explicit-function-return-type in /src (#9788) 2023-01-12 13:25:14 +00:00
RoomContextDetails.tsx Make more code conform to strict null checks (#10219 2023-02-24 15:28:40 +00:00
RoomHeader.tsx Make existing and new issue URLs configurable (#10710) 2023-04-26 09:36:00 +00:00
RoomInfoLine.tsx Make more code conform to strict null checks (#10219 2023-02-24 15:28:40 +00:00
RoomList.tsx Conform more of the codebase with strictNullChecks (#10703) 2023-04-25 09:28:48 +01:00
RoomListHeader.tsx Conform more code to strictNullChecks (#10374) 2023-03-16 11:07:29 +00:00
RoomPreviewBar.tsx Conform more of the codebase to strictNullChecks (#10672) 2023-04-21 11:50:42 +01:00
RoomPreviewCard.tsx Add border to 'reject' button on room preview card (#9205) 2023-02-06 10:50:06 +00:00
RoomSublist.tsx Conform more of the codebase to strictNullChecks (#10666) 2023-04-20 09:49:10 +01:00
RoomTile.tsx Conform more of the codebase with strictNullChecks (#10703) 2023-04-25 09:28:48 +01:00
RoomTileCallSummary.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
RoomUpgradeWarningBar.tsx Conform more of the code base to strict null checking (#10147) 2023-02-13 17:01:43 +00:00
SearchBar.tsx ARIA Accessibility improvements (#10674) 2023-04-20 17:13:30 +00:00
SearchResultTile.tsx Merge pull request from GHSA-xv83-x443-7rmw 2023-04-25 09:30:32 +01:00
SendMessageComposer.tsx Conform more of the codebase to strictNullChecks (#10672) 2023-04-21 11:50:42 +01:00
Stickerpicker.tsx Fix creatorUserId is required error when opening sticker picker (#10423) 2023-03-23 17:25:16 +00:00
ThirdPartyMemberInfo.tsx Make more code conform to strict null checks (#10219 2023-02-24 15:28:40 +00:00
ThreadSummary.tsx Make more code conform to strict null checks (#10219 2023-02-24 15:28:40 +00:00
TopUnreadMessagesBar.tsx Make more code conform to strict null checks (#10219 2023-02-24 15:28:40 +00:00
VoiceRecordComposerTile.tsx Implement MSC3952: intentional mentions (#9983) 2023-03-23 11:47:40 +00:00
WhoIsTypingTile.tsx Fix typing tile duplicating users (#10678) 2023-04-20 14:44:54 +00:00