panic
panic copied to clipboard
Refactor groups State in channel form modal
Description
In the ui/src/components/installer/panic-installer-channel-form-modal/panic-installer-channel-form-modal.tsx file, we currently have a single state (groups) for all channels. This is not ideal as it decreases maintainability and readability.
This should be split into different states, one for each channel. The component should be updated to use these states accordingly.
Requirements
- Refactor the
groupsstate into multiple states - Update logic and other code in
panic-installer-channel-form-modal.tsxas required - Test out the modified component and make sure that everything still functions as intended
Blocked by
N/A
Acceptance criteria
Scenario: Using the channels setup page Given: PANIC UI is running When: Using the channels setup page And: Adding/editing/deleting channels Then: The respective actions work as intended