-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(app): fix choose csv file button label #15529
Conversation
add ternary for choose csv button
console.log('isLoading', isLoading) | ||
console.log('startSetup', startSetup) | ||
console.log('enableCsvFile', enableCsvFile) | ||
console.log( | ||
'result', | ||
mostRecentAnalysis?.result === 'parameter-value-required' | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🪵
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, I'll remove them.
@@ -157,6 +170,10 @@ export function ProtocolSetupParameters({ | |||
}} | |||
onClickButton={handleConfirmValues} | |||
buttonText={t('confirm_values')} | |||
buttonIsDisabled={ | |||
enableCsvFile && | |||
mostRecentAnalysis?.result === 'parameter-value-required' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I refactored the getAnalysisStatus
utility in this PR, but this works for now!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
Overview
update the label for choose csv button, confirm values disabled condition and add
useFeatureFlag
For
ChooseCSV
button, we need check two things. One is type and the other is analysis's reuslt.if type is csv_file and result is ok => green background('ready') and display
file name
if type is csv_file and result is parameter-value-required => background ('not ready') and display
required
close AUTH-539
before
after
Test Plan
set up a protocol run with the following protocol
rtp_phase2_test.py.zip
Changelog
Review requests
Risk assessment
low