Commit graph appflowy-editor/test/new
Author SHA1 Message Date
Lucas.Xu
76c854bd5a
fix: tabbing whitespace at the front will convert current paragraph into heading (#206) 2023-06-16 11:27:51 +08:00
Yijing Huang
6a4a8ae818
feat: mobile tool bar basic features (#161)
* refactor: refactor mobile toolbar

* feat: add text decoration icon in AFMobileIcons

* chore: update mobile parameter

* feat: add text decoration basic feature

* chore: replace text by AppFlowyEditorLocalizations

* feat: add code toolbar item

* chore: refactor code
- add hasMenu in MToolbarItem
- add const size

* feat: add line input menu

* chore: create toolbar items draft file

* refactor: textDecorationMToolbarItem refactor

* fix: add key to ensures MToolbarWidget is rebuilt whenever the selection changes

* feat: add link toolbar item and the way to close item menu

* chore: replace m by mobile

* chore:replace BuiltInAttributeKey by FlowyRichTextKeys

* chore: replace m by mobile

* refactor: refactor MobileToolbarWidget

* refactor: add MobileToolbarStyle to control all cosmetic parameters

* refactor: refactor MobileToolbarItemMenuBtn to stateless widget

* feat: add heading menu

* fix: fix open the wrong menu

* feat: add heading icon

* feat: add todo list and list toolbar item

* feat: add quote toolbar item

* fix: fix selection service error

* test: add mobile toolbar basic elements test

* test: add item menu button test and helper widgets

* test: add text decoration mobile toolbar item test

* test: add code mobile toolbar item test

* test: add heading mobile toolbar item test

* test: add list mobile toolbar item test

* chore: fix typo

* test: add quote mobile toolbar item test

* test: add todo list mobile toolbar item test

* test: add link mobile toolbar item test

* chore: update name and add Material widget

* fix: flutter analyze

* fix: flutter analyze in test mobile toolbar

* chore: dart format test code

* refactor: improve code

* fix: fix refactor error

* chore: move all the tests in mobile to test/mobile

* chore: move toolbar/items to toolbar/desktop/items

* chore: remove the mobileToolbarItemMenuStateKey

* chore: add some comments

* test: update testing

---------

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
2023-06-13 14:01:08 +08:00
Lucas.Xu
c0dbd025e0
feat: support shrinkwrap inside editor (#186)
* feat: support shrinkwrap inside editor

* test: add unit test for shrinkwrap
2023-06-12 20:41:15 +08:00
Lucas.Xu
ddab95c65c
feat: support updating character of character shortcut event (#187)
* feat: support updating character of character shortcut event

* test: add unit test for character_shortcut_event
2023-06-12 20:05:53 +08:00
Lucas.Xu
f507c07bc4 fix: after selecting some text and typing a character, one more character will be deleted. 2023-06-07 22:18:28 +08:00
Gunjan Lunkad
eeae6fe818
feat: added divider to work with * (#118)
* feat: Added divider to work with *

* chore: Resolved the suggested changes

* refactor: removed the check for star character

* feat:added  character variable to insert divider .

* feat: support converting stars ** to divider

---------

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
2023-06-07 15:58:28 +08:00
Lucas.Xu
8c88b41244 feat: ignore delete op if it has been deleted 2023-06-07 10:35:39 +08:00
Lucas.Xu
55b92d278f fix: select all commmand doesn't work in nested list 2023-06-07 10:12:41 +08:00
Lucas.Xu
4cf9cd41ec fix: error in merging the text into the node which can't own children 2023-06-06 19:06:46 +08:00
Lucas.Xu
b29d053924 fix: flutter analyze and dart lint 2023-05-22 14:51:57 +08:00
Lucas.Xu
b1a1b14f35 feat: format " to quote 2023-05-16 22:20:22 +08:00
Yijing Huang
5c43d1daad
feat: migrate link menu and color picker (#4)
* chore: move selectionRects to editorState

* chore: delete unused attributeKey font

* feat: refactor showLinkMenu and LinkMenu

* feat: replace old linkMenu

* feat: add text color toolbar item
- separate text color and highlight color item in toolbar
- renaming in BuiltInAttributeKey(color -> textColor, backgroundColor -> highlightColor)
- add text color and highlight color attribute in example.json
- add icons for text color and highlight color in the toolbar

* feat: add highlight color item in toolbar
- add clear highlight color button
- add onDismiss in ColorPicker to remove the overlay after remove highlight color

* chore: delete old ColorPicker

* test: migrate link menu test

* chore: remove editorStyle from color menu and color picker

* test: add color picker test

* feat: remove editor style from link menu
- add utils function and widgets for overlay
- organize utils folder
- add constant text into AppFlowyEditorLocalizations
- improve pop up menu style

* feat: add show link menu command shortcut
- refactor CommandShortcutEventHandler
- update related callback

* feat: add showTextColorMenuCommand and showHighlightColorMenuCommand

* fix: fix merge error in example.json

* refactor: reorganize the file hierarchy

* refactor: migrate format_style_handler_test.dart
- delete format_style_handler_test.dart
- migrate to markdown_commands_test.dart
- move highlight test outside of markdown_commands_test

* feat: delete show menu type command shortcut and their tooltip

* fix: fix tooltip text

* chore: delete context from CommandShortcutEventHandler

* feat: add command shortcut for link menu

* test: add show link menu command test
2023-05-11 11:26:52 +08:00
Lucas.Xu
b4e0a90cc6 test: migrate internal_key_event_handlers 2023-05-03 13:44:54 +08:00
Lucas.Xu
4883a38126 test: migrate redo and undo command 2023-05-03 12:01:34 +08:00
Lucas.Xu
89e22f0d89 test: migrate the slash_handler 2023-05-03 11:10:17 +08:00
Lucas.Xu
fd1a1b1551 test: migrate page up and down 2023-05-02 23:08:38 +08:00
Lucas.Xu
22eafb7b66 test: migrate editor_service_test 2023-05-02 23:01:48 +08:00
Lucas.Xu
67de67ec73 test: migrate the page up and page down 2023-05-02 20:20:32 +08:00
Lucas.Xu
4a32d0a460 test: migrate the markdown_syntax_to_styled_text 2023-05-02 19:59:22 +08:00
Lucas.Xu
3020ce0c4c test: migrate the markdown_comamnds_test 2023-05-02 19:05:46 +08:00
Lucas.Xu
4db30d8d09 test: migrate the escape key 2023-05-02 17:19:38 +08:00
Lucas.Xu
9be02bd3e9 test: migrate the enter key test 2023-05-02 17:14:26 +08:00
Lucas.Xu
0342668721 test: migrate the cursor_left_delete_handler.dart 2023-05-02 15:42:30 +08:00
Lucas.Xu
7bd8cba1fc test: migrate the checkbox_event_handler 2023-05-02 15:19:07 +08:00
Lucas.Xu
9bf6d554a1 test: migrate the backspace test 2023-05-02 14:54:06 +08:00
Lucas.Xu
e7e58f6e05 test: migration arrow keys test 2023-05-01 15:32:39 +08:00
Lucas.Xu
91a13cdcfa feat: implement arrow up and down key 2023-05-01 15:24:51 +08:00
Lucas.Xu
b7bdee4226 test: migrate arrow keys test 2023-05-01 15:13:55 +08:00
Lucas.Xu
53ccb967dd feat: implement home / end shortcut 2023-05-01 14:37:25 +08:00
Lucas.Xu
8931433400 chore: migrate the command_extension 2023-04-30 15:32:29 +08:00
Lucas.Xu
1d0055d0b1 feat: adjust the text command 2023-04-30 15:01:09 +08:00
Lucas.Xu
78c38d24bb feat: add format node and format delta 2023-04-29 14:36:24 +08:00
Lucas.Xu
df5c6b3980 test: add test for remove formot 2023-04-29 12:11:56 +08:00
Lucas.Xu
10ccd61237
Merge branch 'mobile' into feat/to_do_list_charcter_shortcut 2023-04-29 11:35:04 +08:00
Yijing Huang
378cbfb17a test: add todo list character shortcut test 2023-04-28 16:25:51 -05:00
Yijing Huang
19ede2e276 test: add format bold test 2023-04-28 08:44:06 -05:00
Yijing Huang
ed1074fb56
Merge pull request #1 from LucasXu0/feat/single-char-format-style
feat: single character shortcut events
2023-04-28 08:32:24 -05:00
Lucas.Xu
2bf07055ed feat: implement node extension, allSatisfyInSelection 2023-04-28 19:48:34 +08:00
Lucas.Xu
683318b177 feat: implement heading block 2023-04-28 17:03:58 +08:00
Lucas.Xu
23350d21fb feat: implement toolbar 2023-04-28 16:25:51 +08:00
Lucas.Xu
e64d829012 chore: fotmat the code and implement floating_toolbar 2023-04-28 13:33:13 +08:00
Lucas.Xu
5f568f674a test: add arrow key right tests 2023-04-28 11:16:27 +08:00
Lucas.Xu
f191527c2e test: add arrow key left tests 2023-04-28 11:12:49 +08:00
Lucas.Xu
19a6c7a7b4 feat: add testable editor 2023-04-28 10:54:21 +08:00
Yijing Huang
c6d121c667 chore: clean code 2023-04-27 19:29:18 -05:00
Yijing Huang
8c50f4f1ac chore: rename folder 2023-04-27 18:53:36 -05:00
Lucas.Xu
75ce21cc91 feat: implement converting > to quote style 2023-04-27 16:13:29 +08:00
Lucas.Xu
f624f3a308 feat: implement converting 1. to numbered list style 2023-04-27 15:34:39 +08:00
Lucas.Xu
6df42d4b8a feat: optimize selection_transform 2023-04-27 14:28:17 +08:00
Lucas.Xu
d8813151e3 feat: optimize the new line logic 2023-04-27 11:51:11 +08:00