Skip to content

Playground comment submit & Clipboard resize#6

Open
lateefazeez wants to merge 38 commits into
MLH-Fellowship:mainfrom
lateefazeez:playgroundCommentSubmit
Open

Playground comment submit & Clipboard resize#6
lateefazeez wants to merge 38 commits into
MLH-Fellowship:mainfrom
lateefazeez:playgroundCommentSubmit

Conversation

@lateefazeez
Copy link
Copy Markdown

  • I implemented comment submission using cmd + enter, comment box also opens when a comment is submitted
  • I resized the clipboard plugin window.

Copy link
Copy Markdown

@thegreatercurve thegreatercurve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lateefazeez This is quite difficult to review. I can't see exactly what has changed compared to main as these changes still include a lot of the old code, but it's just been copied and pasted into new files, and your changes have then been made on top of these new files.

Would you mind creating a separate PR where you refactor the methods in lexical-code/src/index.ts into their own files, and then rebase this PR on top of that?

That should create 2 atomic PRs, which are a bit more readable.

karam-qaoud and others added 20 commits July 20, 2022 17:14
* Fixed getStyleObjectFromRawCSS function to work for unformatted css strings

* Testing that  handles unformatted css text

* Testing that $getStyleObjectFromRawCss handles unformatted css

* Added TableOfContents

* Renamed TableOfContetnsPlugin file name and added flow file

* Added TableOfContentsPlugin to config files and added styling

* Fixed types

* Added TableOfContentsList as a seperate module

* Fixed type of tag from string to HeadingTagType

* Table of contents updates as user scrolls

* Wrapped plugin in a feature

* Deleted package-lock.json

* Fixed conditioanl rendering syntax

* Removed extra parameter

* package-lock

* fix imports

* Update packages/lexical-playground/src/plugins/TableOfContentsPlugin.tsx

Co-authored-by: Gerard Rovira <zurfyx@users.noreply.github.com>

* Added sticky styling and handled text overflow

* Table of contents updates automtaically on scroll without observing all heading nodes

* Update table correctly  when headings are not visible but exist either up or down

* Fix failing E2E

* Changed isTableOfContentes to showTableOfContents in settings

* Added useEffect to fix memory leak

* Hoisted functions that don't use props

* Renamed isTableOfContets to showTableOfContents

* Changing selectedHeading by observing page top

* resolved lint error

* Refactored scroll up logic

* Added comments

* Added better css

* Changed place of toc div to fix failing test

* Fixed adjacent headings scrolling

* Fixed adjacent headings bug

* Renamed helper methods

* Fixed test

* Added dependency array to useEffect

* Added TableOfContents to dependency array

* Updated dependeny array in useEffect

Co-authored-by: Karam Qaoud <kqaoud@fb.com>
Co-authored-by: Gerard Rovira <zurfyx@users.noreply.github.com>
* fix(lexical): calculate range selection formatting

* chore: add test

* chore: break the loop early when combinedFormat equals 0
* Autolink default protocol

* https
* Specify the return type of getNearestNodeOfType.

* return null from $getNearestNodeOfType.
* Selection.extract sfix

* fix tests
* remove default styling imports on HTML paste

* remove test
@lateefazeez lateefazeez marked this pull request as ready for review July 21, 2022 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants