ubcuas / GCOM-Front-End

Ground Communications Software
MIT License
0 stars 0 forks source link

Decouple arming and snackbar code #8

Closed jimgeng closed 7 months ago

jimgeng commented 7 months ago

Description

Noticed that the MPSControlSection arming logic was very tightly coupled with the snackbar code, not sure why but it would've been not the best since we don't want the snackbar to have any side effects on the arming (snackbar should only be responsible for displaying error messages).

I decoupled arming code from snackbar code, and in the process also refactored snackbar code so that there is one global app snackbar state that lives inside the redux store instead of multiple instances of a snackbar component (doesn't make sense for there to be multiple anyways).

Type of change

What types of changes does your code introduce to this project? Put an x in the boxes that apply

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. This is simply a reminder of what we are going to look for before merging your code.