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

Move emoticon replacement logic to withEmoji and fix undo stack #4861

Merged
merged 39 commits into from
Sep 20, 2023

Conversation

compulim
Copy link
Contributor

@compulim compulim commented Sep 15, 2023

Fixes #4865.

Changelog Entry

Breaking changes

  • useTextBoxValue setter will no longer replace emoticon with emoji, in PR #4861

Fixed

Description

This is related to input modality.

Fixes CTRL + Z to rewriting the undo stack. Also refactored as withEmoji.

Design

Refactoring to withEmoji. In future, web devs can build their own send box with our emoticon replacement logic.

However, to support withEmoji, the useTextBoxValue will no longer provide emoticon replacement logic.

Specific Changes

  • Added withEmoji HOC component
  • Updated SendBox/TextBox to use withEmoji
  • Updated useTextBoxValue not to provide emoticon replacement logic
  • Migrated old tests from emoji.js to HTML test
  • I have added tests and executed them locally
  • I have updated CHANGELOG.md
  • I have updated documentation

Review Checklist

This section is for contributors to review your work.

  • Accessibility reviewed (tab order, content readability, alt text, color contrast)
  • Browser and platform compatibilities reviewed
  • CSS styles reviewed (minimal rules, no z-index)
  • Documents reviewed (docs, samples, live demo)
  • Internationalization reviewed (strings, unit formatting)
  • package.json and package-lock.json reviewed
  • Security reviewed (no data URIs, check for nonce leak)
  • Tests reviewed (coverage, legitimacy)

@compulim compulim changed the title [DRAFT] Move emoticon logic to withEmoji Move emoticon logic to withEmoji Sep 19, 2023
@compulim compulim marked this pull request as ready for review September 19, 2023 08:20
@compulim compulim changed the title Move emoticon logic to withEmoji Move emoticon replacement logic to withEmoji and fix undo stack Sep 19, 2023
@compulim compulim added this to the imminent milestone Sep 19, 2023
tdurnford
tdurnford previously approved these changes Sep 20, 2023
@compulim compulim merged commit 7953dff into main Sep 20, 2023
10 checks passed
@compulim compulim deleted the feat-with-emoji branch September 20, 2023 21:28
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.

CTRL-Z undo in text box is not correct
2 participants