Hi @niraj
I can confirm that removing the contents of the branding.json
file will produce an invalid branding doc on the server. This can cause problems in multiple places where we assume that the branding document should respect a specific structure.
I think that the action points that we can take is:
- update
cht-conf
to validate the contents of thebranding.json
file before uploading, and disallow malformed structures. - add a command to remove existent branding, instead of incentivizing to empty
branding.json
contents to achieve this - update admin app to inform the user that their branding document is malformed. There is an error thrown in the console, but no indication in the UI that this is the case.
Iโm going to create issues to track these shortly.
For my curiosity, does any of our documentation indicate that you should empty the branding.json
file contents to clear branding?
Thanks!