[2.x] Rewrite in Twig templates & Vanilla JS / TS

Created on 2 December 2024, 3 months ago

Problem/Motivation

Coming from πŸ“Œ JS Performance & size optimization (cookiesjsr) Active and looking at #3323154: [2.x] Replace the current UI with VueJS or HTMX Client UI β†’ two years later, I'm wondering why we need a reactivity framework at all for the cookie banner?

  • The UI part could be solved in twig, placing the banner and modal code hidden on the page.
  • JS doesn't do much more than executing the services and setting some classes, if I'm not missing something
  • The core functionality is plain JS generated from typescript anyway - that can be kept and generated easily
  • The style is CSS generated from SASS - that can be kept and generated easily

This will simplify things a lot and reduce the code size to a minimum. We won't have any third party dependencies.

Vue or React now looks like "Mit Kanonen auf Spatzen schießen" (German) to me πŸ˜‰

If someone still thinks it would be better to have this in react or vue, we could implement the client-side as swappable submodule, but I don't think it will ever be needed then?

Am I missing something?

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024