Conversation
|
EDIT: Staging changed to https://decidim-cookie-consent.herokuapp.com/ Sorry for inconvenience! |
|
I have some styling related suggestions. Cookie notificationI would categorize the buttons differently:
Same thing for the buttons within the cookie settings modal. Disabled content notificationI would put a bit of hightlight to the disabled content notification so that the user sees it clearly there is something missing. Colors are just example in the screenshot, use the Decidim theme colors instead.
|
We used .ql-editor selector to find content inside editor (while editing), but decidim_sanitize_editor added same class (ql-editor) when we are rendering content with editor.
ahukkanen
left a comment
There was a problem hiding this comment.
Technically this is good to go for me but could you please add the documentation page?
We maintain the developer related documentation in the decidim main repository, so we can include it in this PR.
For details, see the related issue (and Andres suggestion about the location for this):
decidim/documentation#94
ahukkanen
left a comment
There was a problem hiding this comment.
Docs looks good, just few minor things noticed when reading through.
ahukkanen
left a comment
There was a problem hiding this comment.
Great! This is good to go for me.
I'll leave this still open for @andreslucena and @carolromero to have the final review.
andreslucena
left a comment
There was a problem hiding this comment.
Foremost, great job @lahdeero! I have lots of smallish things to improve, but generally I liked the approach!
I didn't know about this tags @ahukkanen, great finding! Just a detail, that |
Nice note @andreslucena ! I didn't catch that. I think we should also add Also the text that is used in place of the meta description is apparently called a "regular snippet" as per this doc: So this should prevent Google adding the content to the meta description. |
ahukkanen
left a comment
There was a problem hiding this comment.
These should cover all the cases mentioned at:
https://en.wikipedia.org/wiki/Noindex
And data-nosnippet as per:
https://developers.google.com/search/docs/advanced/robots/robots_meta_tag#data-nosnippet-attr
I hope so, this would be great to solve!! |
andreslucena
left a comment
There was a problem hiding this comment.
Sorry for the delay. I wanted to give it a last review with fresh eyes. Everything seems great 👍🏽 🚀
|
@ahukkanen can you review this one last time? Thanks! |
* Replace cookie consent dialog * Can manage cookies via modal * Add translations and remove old route * Update modal after accepting all or essential * Refactor javascript * Update cookie name * Trigger text/plain scripts * Disable iframes when cookies rejected * Add tests and fix accessability issues * Add and fix tests * Fix dialog * Add changelog and fix js-cookie dependency * Fix i18n and lint errors * Add role attributes to html * Remove old test * Add more logic to select_cookies * Copy packa-lock.json to design app * Accept essential cookies before system tests * Fix css stylelint offenses * Update failing tests * Update failing tests vol2 * Comment broken seed * Fix conflicting selectors We used .ql-editor selector to find content inside editor (while editing), but decidim_sanitize_editor added same class (ql-editor) when we are rendering content with editor. * Dont continue javascript logic if modal missing * Suggested css changes * Revert seed * Remove locals prefix * Fix live meetings without cookies * Add config for cookies * Fix dialog mobile view * Update tests * normalize locales * Add max height to disabled iframe * Add organization variable so it sets cookie * Prevent cookie dialog in social share tests * Add test for cookie details * Update changelog * Update css for medium size screens * Prevent search engines from indexing modals * Clean copy paste code * Update changelog * Change cookie variable names * Fix iframe disabled param * Fix cookieName variable * Reduce amount of custom css in dialog * Css changes * Make category descriptions easier to open * i18n Essential only -> Accept only essential * Change term in tests also * Change cookie consent to data consent * Change variable name * Update file name in test * Update cell name * Add cookies documentation * Update cookies documentation * Remove colon * Use antora docs formatting for the list * Add session cookie and update documentation * Tell robots not to care about the dialog
* Replace cookie consent dialog * Can manage cookies via modal * Add translations and remove old route * Update modal after accepting all or essential * Refactor javascript * Update cookie name * Trigger text/plain scripts * Disable iframes when cookies rejected * Add tests and fix accessability issues * Add and fix tests * Fix dialog * Add changelog and fix js-cookie dependency * Fix i18n and lint errors * Add role attributes to html * Remove old test * Add more logic to select_cookies * Copy packa-lock.json to design app * Accept essential cookies before system tests * Fix css stylelint offenses * Update failing tests * Update failing tests vol2 * Comment broken seed * Fix conflicting selectors We used .ql-editor selector to find content inside editor (while editing), but decidim_sanitize_editor added same class (ql-editor) when we are rendering content with editor. * Dont continue javascript logic if modal missing * Suggested css changes * Revert seed * Remove locals prefix * Fix live meetings without cookies * Add config for cookies * Fix dialog mobile view * Update tests * normalize locales * Add max height to disabled iframe * Add organization variable so it sets cookie * Prevent cookie dialog in social share tests * Add test for cookie details * Update changelog * Update css for medium size screens * Prevent search engines from indexing modals * Clean copy paste code * Update changelog * Change cookie variable names * Fix iframe disabled param * Fix cookieName variable * Reduce amount of custom css in dialog * Css changes * Make category descriptions easier to open * i18n Essential only -> Accept only essential * Change term in tests also * Change cookie consent to data consent * Change variable name * Update file name in test * Update cell name * Add cookies documentation * Update cookies documentation * Remove colon * Use antora docs formatting for the list * Add session cookie and update documentation * Tell robots not to care about the dialog


🎩 What? Why?
Allow user to choose which cookies they want to accept and reject. Technically there is four (4) cookie categories: essential, preferences, analytics and marketing. Iframes are disabled until all categories are accepted, scripts that require cookies could be added as follows:
Note that you can always change your cookie settings by clicking "Cookie settings" in the footer (participant side)
📌 Related Issues
Testing
📷 Screenshots