Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ENH] Implemented UI improvements (#16)
* Cleaned up old files * Added favicon * Added summary stats * Implemented navbar * Implemented logic for displaying snackbar/toasts * Fixed the bg color on hover for modality buttons * Added `circularProgress` on `submit query` button while result is being fetched * Modified how dataset name is displayed in `ResultCard` * Implemented validation for `continuousField` * Refactored and formatted with prettier * [WIP] Implemented alert for OpenNeuro * Implemented `OpenNeuro` alert * Moved the logic for validation of `ContinuousField` to `QueryForm` * [REF] compute errors from props --------- Co-authored-by: rmanaem <[email protected]> * [REF] remove responsibilities from async getter also learn a bit about promises * [REF] remove responsibilities from node getter funtion - learn more about async / await * [REF] Removed `autoHideDuration` prop from `Snackbar` * [REF] Added an empty line for readability * [REF] Reduced inline comment * [REF] Refactored logic inside `useEffect` to use `then` instead of an `async` function * [REF] Refactored `summaryStats` * [REF] Renamed `minAgeBiggerThanMax` to `minAgeExceedsMaxAge` * [REF] Renamed `label` to `nodeName` * [REF] Fixed typo in `openNeuroIsAnOption` * Added comment `TODO` comment * Added `notistack` * [REF] Reworked logic of displaying toasts to use `notistack` * Removed custom toast/snackbar components * [REF] Renamed `tryThisOptionsGetter` to `getAttributes` --------- Co-authored-by: Sebastian Urchs <[email protected]>
- Loading branch information