Skip to content

Conversation

@nishasy
Copy link
Contributor

@nishasy nishasy commented Sep 24, 2025

Summary:

Adding the long alt text warning message to the perseus linter.
This will make it show up in the issues panel, and it will show
the red dot of doom.

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

Test plan:

pnpm jest packages/perseus-linter/src/rules/image-widget.test.ts

Storybook

  • ?path=/docs/widgets-image-editor-demo--docs#populated-within-editor-page

…ing message about alt text length, and encourage the use of long description if alt text is too long
…ng for long alt text

Adding the long alt text warning message to the perseus linter.
This will make it show up in the issues panel, and it will show
the red dot of doom.

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

Test plan:
`pnpm jest packages/perseus-linter/src/rules/image-widget.test.ts`

Storybook
- `?path=/docs/widgets-image-editor-demo--docs#populated-within-editor-page`
@github-actions
Copy link
Contributor

github-actions bot commented Sep 24, 2025

🗄️ Schema Change: No Changes ✅

@github-actions
Copy link
Contributor

github-actions bot commented Sep 24, 2025

🛠️ Item Splitting: No Changes ✅

@github-actions
Copy link
Contributor

github-actions bot commented Sep 24, 2025

Size Change: +87 B (+0.02%)

Total Size: 493 kB

Filename Size Change
packages/perseus-linter/dist/es/index.js 7.16 kB +87 B (+1.23%)
ℹ️ 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.7 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 21.9 kB
packages/perseus-editor/dist/es/index.js 94.9 kB
packages/perseus-score/dist/es/index.js 9.34 kB
packages/perseus-utils/dist/es/index.js 403 B
packages/perseus/dist/es/index.js 202 kB
packages/perseus/dist/es/strings.js 7.6 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

npm Snapshot: Published

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

Example:

pnpm add @khanacademy/perseus@PR2921

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

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

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

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

@nishasy nishasy marked this pull request as ready for review September 24, 2025 22:27
@nishasy
Copy link
Contributor Author

nishasy commented Sep 24, 2025

Putting the video in a new comment rather than the PR description so the checks don't rerun.

Screen.Recording.2025-09-24.at.3.28.17.PM.mov

Copy link
Member

@catandthemachines catandthemachines left a comment

Choose a reason for hiding this comment

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

Looks great to me! Thank you @nishasy 😊

@nishasy nishasy changed the title [Image] | (CX) | Add issues panel warning for long alt text Do not land - needs to wait for AX pilot [Image] | (CX) | Add issues panel warning for long alt text Sep 25, 2025
Base automatically changed from image-long-alt-message to main September 26, 2025 00:14
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