Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HP-1261 Feat/disco single file download (#1492)
* feat(downloadVariableMetadataButton): initial commit * feat(downloadVariableMetadataButton): Got zip DL to work * feat(downloadVariableMetadataButton): Made DownloadAllModal a reusable DownloadModal, sorted out promise.all logic * feat(downloadVariableMetadataButton): Cleaned up lint issues, added interface for dataDictionaries * feat(downloadVariableMetadataButton): fixed failing unit test for DownloadModal * feat(downloadVariableMetadataButton): Got unit test to work * feat(downloadVariableMetadataButton): Improved unit tesT * feat(downloadVariableMetadataButton): Removed commented code from unit test and update var ref * feat(downloadVariableMetadataButton): Moved constant to constants file * feat(downloadVariableMetadataButton): Ran linter * feat(downloadVariableMetadataButton): Removed commented test code * feat(downloadVariableMetadataButton): updated logic for rendering download variable metadata button, ran linter * feat(downloadVariableMetadataButton): added function createUniqueDownloadErrorMsg * feat(downloadVariableMetadataButton): formatted code for readability in DiscoveryConfig.d.ts and DiscoveryDetails.tsx * feat(downloadVariableMetadataButton): updated unit test for downloadVariableMetadata * feat(downloadVariableMetadataButton): Updated test to pass * feat(downloadVariableMetadataButton): Ran linter * feat(downloadVariableMetadataButton): Updated download failed msg respose * feat(downloadVariableMetadataButton): Change em to strong in messages for readability * feat(downloadVariableMetadataButton): Removed excessive spacing in DownloadVariableMetadata.test.tsx * feat(downloadVariableMetadataButton): Added space for code readability in DownloadVariableMetadata.test.tsx * feat(downloadVariableMetadataButton): Updated to use one modal and disable buttons during downloading * feat(downloadVariableMetadataButton): Added support for loading state for DownloadAllFiles button and DownloadVariableMetadata button * feat(downloadVariableMetadataButton): Made data type for inProgress always a string to improve consistency * feat(downloadVariableMetadataButton): removed unneeded console statement * feat(downloadVariableMetadataButton): Added inline solution for checking noVariableLevelMetadata * feat(downloadVariableMetadataButton): Wrote initial unit test for DownloadDataDictionaryInfo * feat(downloadVariableMetadatabutton): Got second test to pass * feat(downloadVariableMetadataButton): Wrote additional unit tests for DownloadDataDictionaryInfo * feat(downloadVariableMetadataButton): Cleaned up unit test, ran linter * feat(downloadVariableMetadataButton): Updated unit tests based on refacotring of DataDownloadList and DownloadVariableMetadata * feat(downloadVariableMetadataButton): Replaced test data with constant to improve maintainability, ran linter * feat(downloadVariableMetadataButton): Renamed variable showList with resourceFieldValueIsValid to increase clarity, updated unit tests and ran linter * feat(downloadVariableMetadataButton): Updated initial declaration of value for Data Dictionary to an empty object casted to a Data Dictionary type to improve code clarity, removed unneeded console log statement * feat(downloadVariableMetadataButton):removed unneeded console log statement * feat(downloadVariableMetadataButton):removed unintentionally changed file * feat(downloadVariableMetadataButton): Added additional data type checks to CheckHealLoginNeeded to avoid error introduced by function being called with an array containing an empty object * feat individual download button * update redirection, style and popover update * fix tests * fix test * update css * add comment * fix grid gutter * use button title from config * fix test * rename variable * renaming variables and functions * fix * reorg code and add tests * fix redirect to disco detail with slash * disable button base on user access * update test * fix typo * address review comments --------- Co-authored-by: Jarvis Raymond <[email protected]> Co-authored-by: Jarvis <[email protected]>
- Loading branch information