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

feat: show message when goals are unfocused #901

Merged
merged 2 commits into from
Sep 13, 2024
Merged

feat: show message when goals are unfocused #901

merged 2 commits into from
Sep 13, 2024

Conversation

rtetley
Copy link
Collaborator

@rtetley rtetley commented Sep 12, 2024

When there are unfocused goals (when bullets are used) we now display a message stating the subproof is complete but there are still unfocused goals.
Closes #643

When there are unfocused goals (when bullets are used) we now display
a message stating the subproof is complete but there are still unfocused
goals.
collapseGoalHandler={(id) => collapseGoalHandler(id, ProofViewGoalsKey.main)}
displaySetting={displaySetting}
emptyMessage={
goals!.shelved.length ? "There are shelved goals. Try using `Unshelve.`" :
goals!.givenUp.length ? "There are some goals you gave up. Go back and solve them, or use `Admitted.`" :
goals!.unfocused.length ? "The subproof is complete, but there are some unfocused goals. Focus next goal with bullet -." :
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it maybe a bit confusing to specify - as the bullet type to use when it could be any of them

Copy link
Member

Choose a reason for hiding this comment

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

Yes, I think we had a discussion with @SkySkimmer about the API to use here (or to suggest the right bullet as a quickfix if the wrong one is used)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'll change this to make the bullet suggestion non specific and I'll display the unfocused goals as well

@rtetley rtetley merged commit e722705 into main Sep 13, 2024
24 checks passed
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.

Feature request: showing the next bullet
3 participants