So to summarize, there are 3 different requests in this thread:
- A list of compatible devices by service, directly within a service in Gladys
- A list of Gladys-compatible devices in Gladys, but at the « global » Gladys level.
- A list of Gladys-compatible devices in the Gladys documentation
All three are not opposed, we can certainly do several, but the source of the information must be the same. Otherwise, we know very well how it will end, after 1 update there will be a list that will not be up to date compared to the others.
I think it indeed makes sense to have this information entered in the Gladys repo in a configuration file since it is directly coupled with the Gladys code. This allows the developer to modify the configuration file in the same PR that will add a compatibility, and thus remain consistent in every way.
This information must be internationalized, so there will be a file per language.
We need to put tests to ensure that if a device is added in one language, it is also added in another language, otherwise we will quickly find ourselves with developers filling out one language and not the other and the list will be desynchronized!
What do you think?
Personally, I am rather in favor of proposal 2) and 3), I think that 1) requires too complex work and will make the UI heavy everywhere in the services.
If you have ideas and wish to propose a PR for this, it will be with pleasure ![]()