Skip to content

Conversation

@nishasy
Copy link
Contributor

@nishasy nishasy commented Dec 12, 2025

Summary:

One part of our modernization effort is removing string refs.

sortable.tsx ended up being a more complex case. Updated it in this PR, including:

  • Removed string refs
  • Removed findDOMNode
  • Coverted callback functions to arrow functions so that this could still work

Note: Most of this was written by Cursor/Claude Sonnet 4.5.

Issue: https://khanacademy.atlassian.net/browse/LEMS-369

Test plan:

pnpm jest

Storybook

  • Check sorter and matcher widgets in demo page: /?path=/story/editors-editorpage--demo

One part of our modernization effort is removing string refs.

`sortable.tsx` ended up being a more complex case. Updated it in this PR, including:
- Removed string refs
- Removed findDOMNode
- Coverted callback functions to arrow functions so that `this` could still work

Note: Most of this was written by Cursor/Claude Sonnet 4.5.

Issue: https://khanacademy.atlassian.net/browse/LEMS-369

Test plan:
`pnpm jest`

Storybook
- Check sorter and matcher widgets in demo page: /?path=/story/editors-editorpage--demo
@nishasy nishasy self-assigned this Dec 12, 2025
@github-actions
Copy link
Contributor

🗄️ Schema Change: No Changes ✅

@github-actions
Copy link
Contributor

🛠️ Item Splitting: No Changes ✅

@github-actions
Copy link
Contributor

Size Change: +186 B (+0.04%)

Total Size: 498 kB

Filename Size Change
packages/perseus/dist/es/index.js 200 kB +186 B (+0.09%)
ℹ️ View Unchanged
Filename Size
packages/kas/dist/es/index.js 20.8 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.3 kB
packages/math-input/dist/es/strings.js 1.61 kB
packages/perseus-core/dist/es/index.item-splitting.js 13.1 kB
packages/perseus-core/dist/es/index.js 25.6 kB
packages/perseus-editor/dist/es/index.js 97.7 kB
packages/perseus-linter/dist/es/index.js 8.65 kB
packages/perseus-score/dist/es/index.js 9.3 kB
packages/perseus-utils/dist/es/index.js 403 B
packages/perseus/dist/es/strings.js 7.73 kB
packages/pure-markdown/dist/es/index.js 1.39 kB
packages/simple-markdown/dist/es/index.js 6.72 kB

compressed-size-action

@github-actions
Copy link
Contributor

npm Snapshot: Published

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

Example:

pnpm add @khanacademy/perseus@PR3126

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

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

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

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

@nishasy nishasy marked this pull request as ready for review December 13, 2025 00:49
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.

2 participants