Skip to content

Conversation

@catandthemachines
Copy link
Member

Summary:

Adding analytics events to the following widgets:

  • grapher
  • graded-group
  • graded-group-set
  • matrix
  • orderer
  • passage
  • plotter

Issue: LEMS-XXXX

Test plan:

@github-actions
Copy link
Contributor

github-actions bot commented Nov 17, 2025

🗄️ Schema Change: No Changes ✅

@github-actions
Copy link
Contributor

github-actions bot commented Nov 17, 2025

🛠️ Item Splitting: No Changes ✅

@github-actions
Copy link
Contributor

github-actions bot commented Nov 17, 2025

Size Change: +79 B (+0.02%)

Total Size: 498 kB

Filename Size Change
packages/perseus/dist/es/index.js 202 kB +79 B (+0.04%)
ℹ️ 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 99.2 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 22.5 kB
packages/perseus-editor/dist/es/index.js 97.9 kB
packages/perseus-linter/dist/es/index.js 8.64 kB
packages/perseus-score/dist/es/index.js 9.2 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.71 kB

compressed-size-action

…events to grapher, graded-group, graded-group-set, matrix, orderer, passage, and plotter
@github-actions
Copy link
Contributor

github-actions bot commented Nov 17, 2025

npm Snapshot: Published

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

Example:

pnpm add @khanacademy/perseus@PR3039

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

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

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

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

PassageExport.widget.prototype,
"getReference",
).mockImplementation(() => {
jest.spyOn(Passage.prototype, "getReference").mockImplementation(() => {
Copy link
Member Author

Choose a reason for hiding this comment

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

Chatted with @jeremywiebe if updating these tests for getReference signifies any concern for our exported experience for Passage widget. And we determined that this is just for testing purposes, and isn't a concern for our Passage Ref needs for perseus. Let me know if anyone has any other concerns with this implementation.


import type {APIOptions} from "../../../types";

function renderPassage(
Copy link
Member Author

Choose a reason for hiding this comment

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

This test function appeared outdated and not helpful. So I decided to update the tests to utilize our renderQuestion test function.

@catandthemachines catandthemachines merged commit ff91465 into main Nov 25, 2025
11 checks passed
@catandthemachines catandthemachines deleted the catjohnson/more-analtyics-events branch November 25, 2025 22:25
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