fixthestatusquo/proca

Create a blueprint with all options of widget

marcinkoziej opened this issue · 3 comments

Create a blueprint with all options of widget
tttp commented

https://github.com/fixthestatusquo/proca/blob/main/docs/config.md#component

there is this documentation. Do you think it's enough? what's your idea?

Hmm, some good info here! Would be great to put this into a full config (unrealistic) to see the full extent of the config

tttp commented

idea:

have a json schema that describes everything, including the default value)

+a config viewer that shows the merged result (ap config (green)> campaign config (tile) > default config (grey)

the code contains a lot of

if config.component.whatever?.custom?.option === true

it might be more readable that the config always contains the default to skip a lot of conditional "?.", but it makes it harder to see what is the default reading the code. I'm not sure

also, we would include the default config of components that aren't included in the journey....