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

HELP-Med show questions #295

Closed
wants to merge 15 commits into from
Closed

HELP-Med show questions #295

wants to merge 15 commits into from

Conversation

am-bean
Copy link
Contributor

@am-bean am-bean commented Aug 14, 2024

Making the questions appear as soon as the instructions have been read. This uses a Boolean that seems to be misnamed. For some reason, whether or not the questions appear is controlled by isGenerativeContext. To avoid breaking anything else, I have kept the name as it is, but this seems like something that should be refactored eventually.

@am-bean am-bean requested a review from a team as a code owner August 14, 2024 09:10
Copy link

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

@@ -330,7 +330,9 @@ const ChatWithInstructions: FC<
<div className="flex items-end justify-end gap-4">
<GeneralButton
text="I understand"
onClick={() => setReadInstructions(true)}
onClick={() => {setReadInstructions(true);
setIsGenerativeContext(false);}
Copy link
Contributor

@shincap8 shincap8 Aug 15, 2024

Choose a reason for hiding this comment

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

If an user hasn't click on save and then finish, and clicks on the submit button at the end of the page the interaction with the bot wouldn't be properly saved. Please remove line 334

Copy link
Contributor

@shincap8 shincap8 left a comment

Choose a reason for hiding this comment

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

Please review comments

@am-bean
Copy link
Contributor Author

am-bean commented Aug 16, 2024

Good point. The other changes aren't useful without line 334, so I'll just cancel this PR. It would be nice to be able to show the questions right away because some users keep trying to put their answers in the chatbots, but changing the "Submit" button seems like a bad idea right now, so I'll keep it as is.

@am-bean am-bean closed this Aug 16, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Aug 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants