Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: replace base Quill editor with Lexical #3586

Merged
merged 1 commit into from
May 31, 2023

Conversation

dmaklygin
Copy link
Contributor

@dmaklygin dmaklygin commented May 30, 2023

FX-4005

Description

We need to replace base functionality of RichTextEditor.
Quill Editor must be replaced by Lexical Editor.

We just need to implement basic functionality.

How to test

  • Use temploy

Development checks

  • Self reviewed
  • Covered with tests

All development checks should be done and set checked to pass the
GitHub Bot: TODOLess action

PR commands

List of available commands:

  • @toptal-bot run package:alpha-release - Release alpha version
  • @toptal-anvil ping reviewers - Ping FX team for review
PR Review Guidelines

When to approve? ✅

You are OK with merging this PR and

  1. You have no extra requests.
  2. You have optional requests.
    1. Add nit: to your comment. (ex. nit: I'd rename this variable from makeCircle to getCircle)

When to request changes? ❌

You are not OK with merging this PR because

  1. Something is broken after the changes.
  2. Acceptance criteria is not reached.
  3. Code is dirty.

When to comment (neither ✅ nor ❌)

You want your comments to be addressed before merging this PR in cases like:

  1. There are leftovers like unnecessary logs, comments, etc.
  2. You have an opinionated comment regarding the code that requires a discussion.
  3. You have questions.

How to handle the comments?

  1. An owner of a comment is the only one who can resolve it.
  2. An owner of a comment must resolve it when it's addressed.
  3. A PR owner must reply with ✅ when a comment is addressed.

@dmaklygin dmaklygin requested a review from a team May 30, 2023 17:22
@dmaklygin dmaklygin self-assigned this May 30, 2023
@changeset-bot
Copy link

changeset-bot bot commented May 30, 2023

⚠️ No Changeset found

Latest commit: 02b15ad

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@@ -0,0 +1,185 @@
// import type { CSSProperties } from '@material-ui/core/styles/withStyles'
import { createStyles } from '@material-ui/core/styles'
// import { rem } from '@toptal/picasso-shared'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I decided to keep these styles, I think we will need them

makeBoldFormat,
makeLinkFormat,
} from '../../formats'
import { makeHeaderFormat, makeBoldFormat, makeLinkFormat } from '../../formats'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

we will remove this file, eventually

@@ -1,7 +1,7 @@
import React, { forwardRef, useRef } from 'react'
import type { BaseProps } from '@toptal/picasso-shared'

import QuillEditorView from '../QuillEditorView'
import QuillEditorView from '../LexicalEditorView'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would keep QuillEditor.tsx for a while

position: 'relative',
// ...listStyles,
// ...margins,
// ...quillSpecificStyles(theme),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

commented them, we will be needed

@dmaklygin dmaklygin requested a review from TomasSlama May 30, 2023 17:30
@toptal-devbot toptal-devbot temporarily deployed to temploy May 30, 2023 17:35 Inactive
Copy link
Contributor

@TomasSlama TomasSlama left a comment

Choose a reason for hiding this comment

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

Tested locally, it works as expected. Good job, I think this will be great base for other PRs ❤️

@dmaklygin dmaklygin merged commit af524e2 into feature/rte-lexical May 31, 2023
@dmaklygin dmaklygin deleted the fx-4005-create-base-lexical branch May 31, 2023 14:49
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.

3 participants