[StateViewer] State viewers should be generalized into a single module
We need to consolidate all the various state viewers modules into a single, highly configurable module.
The goal should be to create a module where the number of horizontal cells can be specified (possibly with an option to make it vertical or horizontal). It is important that each cell is independently configurable, allowing for advanced customization.
For each cell, it should be possible to set:
- The text to display in the UI
- A background color to use when the cell became active
- A condition that must be satisfied for the cell to became active
An example:
- Text: "Armed"
- Color: "Green"
- Condition:
fmm_state == ARM_STATE
This approach allows to avoid creating a custom module just for a single specific subsystem.