This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We want to be able to specify new role labels for power levels. This goes beyond renaming them (->
custom_translations_url
or module system) and relates to matrix-org/matrix-react-sdk-module-api#6. There are different MSC proposal but nothing agreed upon, yet, so we would like to introduce a Client-global configuration until a more flexible and standardised solution will become available eventually. This assumes that all rooms in a controlled Element/Synapse installation use the same roles.We create a new setting
custom_power_level_roles
(it could also be acustom_power_level_roles_url
if you would prefer that):This PR also adds
UIFeature.customPowerLevel
in order to hide the "Custom Level" option that might be discouraged in certain environments:This is used in the following places:
It's not used in the people list, yet, because I'm not sure what the intention there is. It looks like this explicitly uses short-forms of the labels to better fit in the sidebar so we can't just use the labels from above.
We could do:
but I would be happy about some feedback.
Checklist
Type: enhancement
Here's what your changelog entry will look like:
✨ Features