- Cookie settings
- Allow only necessary cookies
- Add domain as configurable option
- form action:
- why is cookie consent modal shown again after redirect to route?
- prevent default form submit
- Logic
- Set Cookie after rejecting all cookies to not display the dialog again
- ID for cookie consent log as UUID instead of integer
- JavaScript
- update JS to .mjs and add bundler like rollup
- emit successful submit form event
- submit form asynchronously
- SCSS
- no need for seperate styling scss
- Style dialog
- Markup
- make form available in dialog (Fuck off, IE11!!!)
- Forms
- Style form --> form styles can be applied by using and configuring the symfony twig bundle
- What parts are themeable and changeable?
- Header
- has to be generic to place logo, title or whatever
- Main section
- pre-form section
- Form
- form widgets
- overwritable CookieConsentType.php???
- form submit buttons
- form widgets
- post-form section
- Footer
- has to be generic to whatever content to user needs
- Header
- Security
- Which domain is set when setting cookies? With subdomain?
- Project setup
- Create Symfony Flex recipe: https://github.com/symfony/recipes
- Setup watchers for JS and SCSS separately
- Separate dev from prod builds
- JS is handled by Rollup watching assets and rebuilding if needed, notifying the websocket server when done
- SCSS is handled like before but with a watcher, maybe use https://github.com/egoist/rollup-plugin-postcss - so we can build in rollup only
- consent dialog
- positionable
- themeable
- editable description
- fillable slots
- compliant (overview)
- equally displayed buttons to allow or reject all cookies
- privacy by default
- revokation of consent has to be persistent, too
- session or persistent cookie?
- legitimate interest?
- nice to have:
- Close button in top right corner
- content
- configurable categories
- explicit cookies under each category
- Categories are:
- Strictly necessary cookies
- Preferences cookies
- Statistics cookies
- Marketing cookies
- submit types
- save
- reject all
- configurable categories
- persistence
- logging