-
-
Notifications
You must be signed in to change notification settings - Fork 244
Description
Describe the bug
When creating an incident where the name of the affected system(s) contains a whitespace or comma, NetlifyCMS' list widget doesnt allow the user to enter these two characters
Reproduction steps
Steps to reproduce the behavior:
- Create a system component that has a space or comma in it (e.g. "example.com website")
- Create an incident and try to type in the system component's exact name
Expected behavior
Spaces and commas should be allowed within a system component name
Additional context
Partial-Workaround:
- Type the text first then add the spaces - example.comwebsite -> example.com website
Possible solution:
-
Replace static/admin/config.yml lines 62-65 with:
- { label: "Affected systems (use exact name, separated by commas) 🧐", name: "affected", widget: "list", required: false, summary: "{{fields.individualaffected}}", field: { label: "Affected System", name: "individualaffected", widget: "string" }}
(sorry, I'm new at contributing, not sure how to directly reference the code in the file) -
Use a select widget instead of list and populate select widget options with system components defined in repo-root/config.yml