Skip to content
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

Merged
merged 4 commits into from
Jun 27, 2024
Merged

fix(app): fix choose csv file button label #15529

merged 4 commits into from
Jun 27, 2024

Conversation

koji
Copy link
Contributor

@koji koji commented Jun 26, 2024

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

Screenshot 2024-06-26 at 2 11 02 PM

after

Screenshot 2024-06-26 at 4 44 01 PM

Test Plan

set up a protocol run with the following protocol
rtp_phase2_test.py.zip

Changelog

Review requests

Risk assessment

low

add ternary for choose csv button
@koji koji requested review from ncdiehl11 and jerader June 26, 2024 18:14
@koji koji marked this pull request as ready for review June 26, 2024 18:14
@koji koji requested a review from a team as a code owner June 26, 2024 18:14
@koji koji removed the request for review from a team June 26, 2024 18:14
Comment on lines 156 to 162
console.log('isLoading', isLoading)
console.log('startSetup', startSetup)
console.log('enableCsvFile', enableCsvFile)
console.log(
'result',
mostRecentAnalysis?.result === 'parameter-value-required'
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🪵

Copy link
Contributor Author

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'
Copy link
Collaborator

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!

Copy link
Collaborator

@jerader jerader left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@koji koji merged commit fc0db8e into edge Jun 27, 2024
20 checks passed
@koji koji deleted the fix_parameters-screen branch June 27, 2024 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants