copied from D8 version: https://www.drupal.org/project/eu_cookie_compliance/issues/3068670

Summary

The new feature for cookie categories is great, and let sites to be GDPR compliant. However, there is still work to do to ensure it works for users.

  • From the end-user point of view, we need a way to display individual cookies with cookie technical name, human name, and description.
  • From the administrator point of view, we need a way to manage individual categories and individual cookie informations with a good UX.
  • From a developers point of view, the information should be stored in the eu_cookie_compilance.settings configuration entity (as now it does), but in a structured way (now is just text that need to be split by line or by pipe)
  • The cookie information individual descriptions should be still translatable.

Solution

  • Evolve the admin form to allow to add/edit/delete separately the different Cookie categories and individual cookie information.
  • Evolve the eu_cookie_compliance.settings configuration entity to store the cookie categories information in a structured way.
  • Refactor the places where cookie compliance categories are read to adapt they to the new format.

Comments

reszli created an issue. See original summary.

reszli’s picture

I started working on a better UI for categories (in paralele with the D8 version):

  • created new variable to store categories in a structured way (array)
  • introduced default_state and disabled flags for each individual category
  • implemented hook_update_N to migrate existing string config to new array form
  • created admin UI for CRUD and for ordering categories
  • split permissions and menus to allow management of categories only, without having access to popup behaviour
  • rewired front-end to use new config
reszli’s picture

Status: Active » Needs review
reszli’s picture

Version: 7.x-2.x-dev » 7.x-1.x-dev
StatusFileSize
new27.67 KB

Improved latest patch a bit:

category add/edit form:

  • exposed the category as a value for the convenience of any other module altering the form
  • added a delete link next to the Save button (similar to D8)
  • exposed the entire list of cookie categories (with all attributes) to be available at Drupal.settings.cookie_categories_details

Also rerolled it to apply to 7.x-1.x branch as 2.x seems to be unused for now.

reszli’s picture

Status: Needs review » Closed (duplicate)