-
-
Notifications
You must be signed in to change notification settings - Fork 395
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
Update @joeattardi/emoji-button
to @picmo/popup-picker
#9667
Conversation
Seems also we have similar validation issues generated as with the previous version. We fixed this by disabling the error temporarily until it is fixed upstream (#8597) but it seems it is still not fixed for the HTML validator. We are still waiting for update of the HTML validator, the issue is already resolved at the CSS validator (see #8596). The problem with the new version is that it contains many more of these values that we would need to ignore, so let's see if the HTML validator would be updated meanwhile we are waiting for the remaining issues to be resolved at There is also one additional CSS validation issue at |
Hi all, PicMo maintainer here, I am working on the CSP issue and hope to have it resolved soon. |
In order not to override too much from the emoji popup picker, create a specific reference element positioned exactly where we want the popup picker to appear.
After the latest fixes at picmo popup picker 5.6.1, the customizations are no longer needed.
After the switch to picmo, there are many more errors that we need to ignore while we are waiting for the HTML validator to be updated.
This is finally ready for review thanks to the fixes provided by @joeattardi. Many thanks! Regarding the Nu validator bugs, unfortunately there is still no progress regarding those. In this PR, I am just ignoring the validator errors the same way as we used to do. The CSS generated by Picmo is valid but the problem is at the Nu validator. Related issues at the validator repositories: |
The underlying issue with the HTML Nu validator seems to be finally fixed but we are still waiting for them to release a new version of the Docker container for those fixes to reach our CI flows. More about this: #8596 (comment) |
As we don't have class properties transform plugin for webpack, use a constant instead to avoid "Missing class properties transform" error.
Note for the reviewer: This is not related to any changes in this PR. If you enable redesign and go to conversations, the button is positioned correctly: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried it locally, it works as expected. I see that we've also won i18n for this 👏🏽 👏🏽
* feature/redesign-turbo: Install turbo-rails Fix incorrect expecations after change of allowed file extensions (#9877) Update `@joeattardi/emoji-button` to `@picmo/popup-picker` (#9667) Address Crowdin feedback (#9678) Fix cryptic file validation errors (#9663) Fix disappearing sub-lists in rich text editors (#9867) Implement authorization data recovery for deleted users (#9463) Redesigned: admin bar (#9874)
) * Update `@joeattardi/emoji-button` to `@picmo/popup-picker` * Update package-lock.json * Update the design app packages and package-lock.json * Fix unused i18n keys spec * Remove unnecessary options * Pass the `triggerElement` option to indicate the opening button * Fix mobile positioning of the emoji picker * Remove the overrides and solve the positioning using custom reference In order not to override too much from the emoji popup picker, create a specific reference element positioned exactly where we want the popup picker to appear. * Update `@picmo/popup-picker` * Fix the screen jumping bug after upgrading `@picmo/popup-picker` * Add aria text to the add emoji button * Fix the CSS import for the popup-picker * Fix emoji picker integration with the character counter * Remove unnecessary CSS importing * Fix the comment specs testing the visibility of the emoji section * Update @picmo/popup-picker to 5.6.1 * Remove unnecessary customizations from emoji handler After the latest fixes at picmo popup picker 5.6.1, the customizations are no longer needed. * Update teh ignored HTML CSS validation issues After the switch to picmo, there are many more errors that we need to ignore while we are waiting for the HTML validator to be updated. * Fix webpack compilation issue As we don't have class properties transform plugin for webpack, use a constant instead to avoid "Missing class properties transform" error. * Change emoji reference element to a block to fix accessibility issue
🎩 What? Why?
As it often happens with NPM packages,
@joeattardi/emoji-button
is now deprecated as stated here:https://emoji-button.js.org/
Fortunately the update is rather easy to
@picmo/popup-picker
which is what this PR does. As a bonus, this adds the possibility to translate the UI strings for the picker as pointed out at #9631.Note that this is still a draft PR until the following issue is resolved at the dependency:
joeattardi/picmo#224
📌 Related Issues
Content Security Policy Issues - BLOCKER joeattardi/picmo#224Invalid CSS forscrollbar-width
joeattardi/picmo#226Popup picker "jumping" effect after upgrade 5.4.0 -> 5.6.0 joeattardi/picmo#240CSS validation issues joeattardi/picmo#241Testing
packages
folder with the updated onepackages
folder manuallynpm i
within thedevelopment_app
rm -rf public/decidim-packs
within thedevelopment_app
📷 Screenshots
Before
![Old emoji picker](https://user-images.githubusercontent.com/864340/183612725-4759c9f3-52c3-437e-a996-9ae9913fb6df.png)
After
![New emoji picker](https://user-images.githubusercontent.com/864340/183612978-561cf954-940d-49e8-bc67-2685027b6ac1.png)