-
Notifications
You must be signed in to change notification settings - Fork 351
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
Remove unused rubric type for iFrame #1996
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@khanacademy/perseus": patch | ||
--- | ||
|
||
Remove unused iframe rubric type | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't see any changes to our main package file ( |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,9 +97,6 @@ export type PerseusGrapherRubric = { | |
|
||
export type PerseusGrapherUserInput = PerseusGrapherRubric["correct"]; | ||
|
||
// TODO(LEMS-2440): Can possibly be removed during 2440; only userInput used | ||
export type PerseusIFrameRubric = Empty; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could removing this now cause problems down the road? I think it's pretty easy to add it back in, but not sure if we need a rubric and userInput for every widget. I'm guessing it's okay, but wanted to double check. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree to remove it now. We already have other widgets where there is no Rubric type. |
||
|
||
export type PerseusIFrameUserInput = { | ||
status: UserInputStatus; | ||
message: string | null; | ||
|
@@ -238,7 +235,6 @@ export type Rubric = | |
| PerseusGradedGroupRubric | ||
| PerseusGradedGroupSetRubric | ||
| PerseusGrapherRubric | ||
| PerseusIFrameRubric | ||
| PerseusInputNumberRubric | ||
| PerseusInteractiveGraphRubric | ||
| PerseusLabelImageRubric | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to just be removing an unused type, so I put it as patch, but it does touch the UserInput type and the Props type, so wasn't sure if that meant it should be minor. Leaning towards
patch
, but wanted to confirm :)