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

refactor: Refactors match types #244

Merged
merged 1 commit into from
Nov 10, 2022
Merged

refactor: Refactors match types #244

merged 1 commit into from
Nov 10, 2022

Conversation

ParisaTork
Copy link
Contributor

What does this change?

Match filters are currently represented in the prosemirror-typerighter plugin as HAS_REPLACEMENT, DEFAULT and CORRECT.

This maps to:
HAS_REPLACEMENT == 'Amend'
DEFAULT == 'Review'
CORRECT == 'Ok'

This is inconsistent with the UI and newbies to the repo would benefit from this refactor, as it makes the codebase easier to understand.

How to test

Run Composer and Prosemirror-Typerighter locally - does Typerighter still work?

How can we measure success?

Have we considered potential risks?

Images

@ParisaTork ParisaTork requested a review from a team November 3, 2022 15:19
Copy link
Contributor

@jonathonherbert jonathonherbert left a comment

Choose a reason for hiding this comment

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

Lovely change!

@ParisaTork ParisaTork merged commit 425379d into main Nov 10, 2022
@jonathonherbert jonathonherbert deleted the pt/refactor-match-type branch November 10, 2022 12:48
ParisaTork added a commit that referenced this pull request Nov 10, 2022
ParisaTork added a commit that referenced this pull request Nov 10, 2022
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.

2 participants