rename message to hint

This commit is contained in:
Alexander Bentkamp
2023-01-24 16:37:18 +01:00
parent ecc9a488a2
commit 8c4b995a32
44 changed files with 187 additions and 527 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ export const Goal = React.memo((props: GoalProps) => {
if (props.goal.goal.isRemoved) cn += 'b--removed '
// TODO: make this prettier
const hints = goal.messages.map((m) => <div>{m.message}</div>)
const hints = goal.hints.map((m) => <div>{m.text}</div>)
if (goal.goal.userName) {
return <details open className={cn}>
+1 -1
View File
@@ -121,7 +121,7 @@ const InfoDisplayContent = React.memo((props: InfoDisplayContentProps) => {
{goals && <Goals filter={{ reverse: false, showType: true, showInstance: true, showHiddenAssumption: true, showLetValue: true }} key='goals' goals={goals} />}
</LocationsContext.Provider>
<FilteredGoals headerChildren='Expected type' key='term-goal'
goals={termGoal !== undefined ? {goals: [{goal:termGoal, messages: []}]} : undefined} />
goals={termGoal !== undefined ? {goals: [{goal:termGoal, hints: []}]} : undefined} />
{userWidgets.map(widget =>
<details key={`widget::${widget.id}::${widget.range?.toString()}`} open>
<summary className='mv2 pointer'>{widget.name}</summary>
+4 -4
View File
@@ -1,13 +1,13 @@
import { InteractiveGoals, InteractiveGoal } from '@leanprover/infoview-api';
export interface GameMessage {
message: string;
spoiler: boolean;
export interface GameHint {
text: string;
hidden: boolean;
}
export interface GameInteractiveGoal {
goal: InteractiveGoal;
messages: GameMessage[];
hints: GameHint[];
}
export interface GameInteractiveGoals {