You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 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]>
constConditionalPopover=({ children })=>(noData ? (
75
-
<Popovertitle={'This file is not available for the selected study'}>
76
-
{children}
77
-
</Popover>
78
-
) : (
79
-
children
80
-
));
89
+
constConditionalPopover=({ children })=>{
90
+
if(noData){
91
+
return(
92
+
<Popovercontent={'This file is not available for the selected study'}>
93
+
{children}
94
+
</Popover>
95
+
);
96
+
}
97
+
if(!userHasAccessToDownload){
98
+
return(
99
+
<Popovercontent={'You don\'t have access to this data'}>
100
+
{children}
101
+
</Popover>
102
+
);
103
+
}
104
+
if(missingRequiredIdentityProviders.length){
105
+
constonlyInCommonMsg=missingRequiredIdentityProviders.length>1 ? `Data selection requires [${missingRequiredIdentityProviders.join(', ')}] credentials to access. Please change selection to only need one set of credentials and log in using appropriate credentials`
106
+
: `This dataset is only accessible to users who have authenticated via ${missingRequiredIdentityProviders}. Please log in using the ${missingRequiredIdentityProviders} option.`;
0 commit comments