Skip to content

Remove unused paths field from LinterContextProps and contentPaths prop from editors#3568

Open
jeremywiebe wants to merge 2 commits intomainfrom
jer/remove-linter-paths
Open

Remove unused paths field from LinterContextProps and contentPaths prop from editors#3568
jeremywiebe wants to merge 2 commits intomainfrom
jer/remove-linter-paths

Conversation

@jeremywiebe
Copy link
Copy Markdown
Collaborator

Summary:

While working with Ben today on some preview-related refactoring, we started asking what some of the LinterContext values were for. Well, turns out paths is completely unused. A few places set it, but no code looks at it, so we can remove it.
This propogates out to the contentPaths props on the ArticleEditor, EditorPage, and HintEditor components. contentPaths is used to set up paths on linter contexts, but no client passes it down, and because paths is dead, there's no point leaving the prop here.

Issue: LEMS-4083

Test plan:

pnpm test
pnpm typecheck

Run storybook and make sure the previews for EditorPage work!

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 1, 2026

Size Change: -52 B (-0.01%)

Total Size: 502 kB

📦 View Changed
Filename Size Change
packages/perseus-editor/dist/es/index.js 103 kB -41 B (-0.04%)
packages/perseus-linter/dist/es/index.js 9.41 kB -7 B (-0.07%)
packages/perseus/dist/es/index.js 198 kB -4 B (0%)
ℹ️ View Unchanged
Filename Size
packages/kas/dist/es/index.js 20.6 kB
packages/keypad-context/dist/es/index.js 1 kB
packages/kmath/dist/es/index.js 6.36 kB
packages/math-input/dist/es/index.js 98.5 kB
packages/math-input/dist/es/strings.js 1.61 kB
packages/perseus-core/dist/es/index.item-splitting.js 12 kB
packages/perseus-core/dist/es/index.js 25.5 kB
packages/perseus-score/dist/es/index.js 9.78 kB
packages/perseus-utils/dist/es/index.js 403 B
packages/perseus/dist/es/strings.js 8.46 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
Copy Markdown
Contributor

github-actions Bot commented May 1, 2026

🛠️ Item Splitting: No Changes ✅

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 1, 2026

🗄️ Schema Change: No Changes ✅

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 1, 2026

npm Snapshot: Published

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

Example:

pnpm add @khanacademy/perseus@PR3568

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

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

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

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

@jeremywiebe jeremywiebe marked this pull request as ready for review May 2, 2026 00:15
Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

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

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.

Tip: disable this comment in your organization's Code Review settings.

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.

1 participant