AQUA icon indicating copy to clipboard operation
AQUA copied to clipboard

JAT-105 Config File Selection Prompt

Open selinali2010 opened this issue 1 year ago • 0 comments

Summary

  • Add error case for when no config file is found
  • Add settings modal to proactively change the config file

BE Changes

  • Save configFilePath to the state
  • Add new updateConfigFilePath functionality
  • Add check for config file validity prior to all state.txt changes to ensure the error modal is surfaced ASAP

UI Changes

  • Add new FilePicker component
  • Add settings icon to the title bar

Refactor

  • Change Modal to be a more simple component and shrink width
  • Create ConfirmationModal for handling prereq error modals
  • Move title bar to within the App instead of in the header tag to allow for better control
  • Improve error title text to better fit the context
  • Rename setGraphViewOn to be setIsGraphViewOn

Fixes

  • Add try catch around setGain and setMainPreAmp calls
  • Add await in front of setMainPreAmp call

Testing

  • Add AppContext tests to App.test.tsx to validate error modals

Screenshots

Settings gear icon in the title bar:

image

Settings modal:

image

Missing config file error modal:

image

selinali2010 avatar Oct 15 '23 03:10 selinali2010