panic icon indicating copy to clipboard operation
panic copied to clipboard

Refactor groups State in channel form modal

Open Cherrett opened this issue 3 years ago • 0 comments

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 groups state into multiple states
  • Update logic and other code in panic-installer-channel-form-modal.tsx as 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

Cherrett avatar Jun 23 '22 09:06 Cherrett