Skip to content

Conversation

@benchristel
Copy link
Member

While investigating how we might parse/migrate PerseusItem data before emitting
it from the editor, I noticed this weird jsonMode param in the onChange
callback. Nothing in webapp seems to be using it, so I'd just as soon remove
it. It's a footgun.

Issue: none

Test plan:

pnpm storybook
open http://localhost:6006

View the EditorPage stories.

Copy link
Collaborator

@jeremywiebe jeremywiebe left a comment

Choose a reason for hiding this comment

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

I was going to ask for changes because I thought we still needed to render the JSON switch/checkbox, but I see that's been migrated up into the new exercise chrome!

Good to go! Thanks for removing this bit of now-unused code!

@benchristel benchristel force-pushed the benc/remove-json-mode-toggle branch from 0a216f2 to 39fb3c8 Compare August 4, 2025 17:24
@github-actions
Copy link
Contributor

github-actions bot commented Aug 4, 2025

🗄️ Schema Change: No Changes ✅

@github-actions
Copy link
Contributor

github-actions bot commented Aug 4, 2025

🛠️ Item Splitting: No Changes ✅

@github-actions
Copy link
Contributor

github-actions bot commented Aug 4, 2025

Size Change: -56 B (-0.01%)

Total Size: 496 kB

Filename Size Change
packages/perseus-editor/dist/es/index.js 92.4 kB -56 B (-0.06%)
ℹ️ View Unchanged
Filename Size
packages/kas/dist/es/index.js 20.7 kB
packages/keypad-context/dist/es/index.js 1 kB
packages/kmath/dist/es/index.js 5.98 kB
packages/math-input/dist/es/index.js 98.6 kB
packages/math-input/dist/es/strings.js 1.61 kB
packages/perseus-core/dist/es/index.item-splitting.js 12.9 kB
packages/perseus-core/dist/es/index.js 21.5 kB
packages/perseus-linter/dist/es/index.js 7.07 kB
packages/perseus-score/dist/es/index.js 9.29 kB
packages/perseus-utils/dist/es/index.js 403 B
packages/perseus/dist/es/index.js 209 kB
packages/perseus/dist/es/strings.js 7.56 kB
packages/pure-markdown/dist/es/index.js 1.39 kB
packages/simple-markdown/dist/es/index.js 6.71 kB

compressed-size-action

@github-actions
Copy link
Contributor

github-actions bot commented Aug 4, 2025

npm Snapshot: Published

Good news!! We've packaged up the latest commit from this PR (39fb3c8) and published it to npm. You
can install it using the tag PR2740.

Example:

pnpm add @khanacademy/perseus@PR2740

If you are working in Khan Academy's frontend, you can run the below command.

./dev/tools/bump_perseus_version.ts -t PR2740

If you are working in Khan Academy's webapp, you can run the below command.

./dev/tools/bump_perseus_version.js -t PR2740

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants