Currently the form config properties layout.config.visible and component.config.visible show and hide only the parts they are responsible for. This may have some use cases, but they are unusual, and it makes it more work to do the usual use case of hiding both the layout and component.
Change the layout.config.visible property to also hide the component.
The changes are mainly in the layout components: https://github.com/redbox-mint/redbox-portal/tree/feature/ng19-forms/angular/projects/researchdatabox/form/src/app/component
This change will remove the ability to hide the layout and show the component.
If we want this functionality, we'll need to assess the best way to implement it: likely via new config properties in layout.config.