Skip to content

[SR] Minor improvements to Circle graph SR strings #2017

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 17, 2024

Conversation

nishasy
Copy link
Contributor

@nishasy nishasy commented Dec 16, 2024

Summary:

  • Update the variable names to start with sr prefix.
  • Use srFormatNumber() to make sure the numbers are
    formatted correctly.
  • Update the coordinate types to string in the strings
    instead of number since they are now using
    srFormatNumber() (which returns a string)

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

Test plan:

yarn jest

- Update the variable names to start with `sr` prefix.
- Use `srFormatNumber()` to make sure the numbers are
  formatted correctly.
- Update the coordinate types to `string` in the strings
  instead of `number` since they are now using
  `srFormatNumber()` (which returns a string)

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

Test plan:
`yarn jest`

- Go to http://localhost:6006/iframe.html?globals=&args=&id=perseuseditor-widgets-interactive-graph--interactive-graph-circle&viewMode=story
- Confirm nothing has changed from before
@nishasy nishasy self-assigned this Dec 16, 2024
Copy link
Contributor

npm Snapshot: Published

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

Example:

yarn add @khanacademy/perseus@PR2017

If you are working in Khan Academy's webapp, you can run:

./dev/tools/bump_perseus_version.sh -t PR2017

Copy link
Contributor

Size Change: +6 B (0%)

Total Size: 1.27 MB

Filename Size Change
packages/perseus/dist/es/index.js 416 kB +17 B (0%)
packages/perseus/dist/es/strings.js 4.11 kB -11 B (-0.27%)
ℹ️ View Unchanged
Filename Size
packages/kas/dist/es/index.js 39 kB
packages/keypad-context/dist/es/index.js 760 B
packages/kmath/dist/es/index.js 4.27 kB
packages/math-input/dist/es/index.js 78 kB
packages/math-input/dist/es/strings.js 1.79 kB
packages/perseus-core/dist/es/index.js 1.48 kB
packages/perseus-editor/dist/es/index.js 688 kB
packages/perseus-linter/dist/es/index.js 22.2 kB
packages/pure-markdown/dist/es/index.js 3.67 kB
packages/simple-markdown/dist/es/index.js 12.5 kB

compressed-size-action

@nishasy nishasy marked this pull request as ready for review December 16, 2024 23:43
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 good to me 😊

@nishasy nishasy merged commit 4508e7b into main Dec 17, 2024
8 checks passed
@nishasy nishasy deleted the update-circle-sr-strings branch December 17, 2024 00:20
somewhatabstract added a commit that referenced this pull request Dec 18, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @khanacademy/[email protected]

### Patch Changes

- [#2022](#2022)
[`266d240ed`](266d240)
Thanks [@somewhatabstract](https://github.com/somewhatabstract)! -
Update to Wonder Blocks without custom ID generation API

## @khanacademy/[email protected]

### Patch Changes

- [#2017](#2017)
[`4508e7bea`](4508e7b)
Thanks [@nishasy](https://github.com/nishasy)! - [SR] Minor improvements
to Circle graph SR strings


- [#2022](#2022)
[`266d240ed`](266d240)
Thanks [@somewhatabstract](https://github.com/somewhatabstract)! -
Update to Wonder Blocks without custom ID generation API


- [#2018](#2018)
[`1fe437079`](1fe4370)
Thanks [@catandthemachines](https://github.com/catandthemachines)! -
Fixing scoring for unlimited point to ensure there 1 or more points for
it to be considered scorable.

- Updated dependencies
\[[`266d240ed`](266d240)]:
    -   @khanacademy/[email protected]

## @khanacademy/[email protected]

### Patch Changes

- [#2022](#2022)
[`266d240ed`](266d240)
Thanks [@somewhatabstract](https://github.com/somewhatabstract)! -
Update to Wonder Blocks without custom ID generation API

- Updated dependencies
\[[`4508e7bea`](4508e7b),
[`266d240ed`](266d240),
[`1fe437079`](1fe4370)]:
    -   @khanacademy/[email protected]
    -   @khanacademy/[email protected]

## @khanacademy/[email protected]

### Patch Changes

- [#2022](#2022)
[`266d240ed`](266d240)
Thanks [@somewhatabstract](https://github.com/somewhatabstract)! -
Update to Wonder Blocks without custom ID generation API

- Updated dependencies
\[[`266d240ed`](266d240)]:
    -   @khanacademy/[email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants