mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
ref: DEVEX-532 During #26627, I think we should've given `ModuleConfiguration` an `optionalFields` prop in the first place--our one and only usage of `ModuleConfiguration` doesn't render optional fields in a way that makes sense as children. Also, `ModuleConfiguration` should be the component responsible for rendering the collapsible section, not `ModuleSettingsStep` This makes Storybook more accurately represent what module config looks like, since ModuleConfiguration.stories.tsx now shows the optional field in a collapsible section: <img width="1840" height="1191" alt="image" src="https://github.com/user-attachments/assets/2b385ea7-a060-409a-8e84-aa37f0b09c2c" />