rename message to hint
This commit is contained in:
@@ -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}>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user