-
Notifications
You must be signed in to change notification settings - Fork 5
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
Study : deprecaction of customisations and usage of module-api #646
Comments
It's a cleanly separate block of code : https://github.com/tchapgouv/tchap-web-v4/blob/0a54d6f17a9b19de995a007b497ea70d2d6361c3/webpack.config.js#L61..L100 The module used, https://webpack.js.org/plugins/normal-module-replacement-plugin/, has a documented version for webpack 5 (element uses 4) and doesn't look like it's being deprecated. So that looks straightforward, as a temporary measure. |
Comment ça marcheLe module api nous fourni un groupe d’outil permettant de créer des modules qui qui vont être appliquer à l’application durant la phase de compilation. Permettant ainsi d’override/catch certain components/evenemment du package matrix-react-sdk. Ces modules peuvent être installé indépendamment du projet Tchap-web, dans leur prorpre repo github. Dans notre cas, pour plus de simplicité, nous allons directement l’installer dans le projet, ce qui a déjà été fait avec le module de traductions. Avantages
Inconvénients
Module test simple pour les utilisateurs externesWhen the external user click to add or explore a room : → we just display a popup to indicate that he doesnt have the rights to add or explore new rooms without invitations Steps
Développement local
Il y a 3 niveaux de code a modifier :
D’autre idées de POC
|
PR dans tchap-web : #1058 |
Customisations is being deprecated in favor of Module API. element-hq/element-web#25736
For now they're still there, with a deprecated warning message.
We want to avoid a situation where we are blocked from upgrading element-web for more than a sprint because our customisations have become incompatible.
The text was updated successfully, but these errors were encountered: