Skip to content
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

[Interactive Graph] Remove legacy graph #2228

Merged
merged 4 commits into from
Feb 13, 2025
Merged

[Interactive Graph] Remove legacy graph #2228

merged 4 commits into from
Feb 13, 2025

Conversation

nishasy
Copy link
Contributor

@nishasy nishasy commented Feb 11, 2025

Summary:

The code has been updated and released for a while, and the flags have been removed!
We can officially remove the legacy graph code.

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

Test plan:

yarn jest
yarn lint
yarn typecheck

@nishasy nishasy self-assigned this Feb 11, 2025
Copy link
Contributor

github-actions bot commented Feb 11, 2025

npm Snapshot: Published

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

Example:

yarn add @khanacademy/perseus@PR2228

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

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

Copy link
Contributor

github-actions bot commented Feb 11, 2025

Size Change: -12.6 kB (-0.85%)

Total Size: 1.47 MB

Filename Size Change
packages/perseus/dist/es/index.js 367 kB -12.6 kB (-3.33%)
ℹ️ 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 86.9 kB
packages/math-input/dist/es/index.js 77.7 kB
packages/math-input/dist/es/strings.js 1.79 kB
packages/perseus-core/dist/es/index.js 46.3 kB
packages/perseus-editor/dist/es/index.js 689 kB
packages/perseus-linter/dist/es/index.js 22.2 kB
packages/perseus-score/dist/es/index.js 115 kB
packages/perseus/dist/es/strings.js 6.15 kB
packages/pure-markdown/dist/es/index.js 3.66 kB
packages/simple-markdown/dist/es/index.js 12.5 kB

compressed-size-action


return (
<div
className="graphie-container blank-background"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can't get rid of these less styles yet because they're still being used in the Grapher widget.

// (LEMS-2190): Move the Mafs Angle Graph coordinate reversal logic in interactive-graph-state.ts
// to this file when we remove the legacy graph. This logic allows us to support bi-directional angles
// for the new (non-reflexive) Mafs graphs, while maintaining the same scoring behaviour as the legacy graph.
// Once the legacy graph is removed, we should move this logic directly into the validate function below.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This ticket just got done a couple days ago! This comment just got missed and is cleared to be removed.

@nishasy nishasy requested a review from a team February 11, 2025 20:23
@nishasy nishasy marked this pull request as ready for review February 11, 2025 20:23
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.

Whoohoo let's go!

@nishasy nishasy merged commit edd3424 into main Feb 13, 2025
8 checks passed
@nishasy nishasy deleted the remove-legacy-graph branch February 13, 2025 22:36
catandthemachines added a commit that referenced this pull request Feb 14, 2025
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]

### Major Changes

- [#2234](#2234)
[`1ade12c18`](1ade12c)
Thanks [@handeyeco](https://github.com/handeyeco)! - Move splitters into
perseus-core, add splitPerseusItem

### Minor Changes

- [#2228](#2228)
[`edd34241e`](edd3424)
Thanks [@nishasy](https://github.com/nishasy)! - [Interactive Graph]
Remove legacy graph


- [#2238](#2238)
[`8e4cb7f53`](8e4cb7f)
Thanks [@SonicScrewdriver](https://github.com/SonicScrewdriver)! -
Bugfixes to ensure that focus is handled correctly on unlimited
point/polygon graphs.

### Patch Changes

- [#2223](#2223)
[`f8a4becb0`](f8a4bec)
Thanks [@mark-fitzgerald](https://github.com/mark-fitzgerald)! -
[Bugfix] Interactive Graph crashes in editor when setting domain for
locked function


- [#2201](#2201)
[`91cede41f`](91cede4)
Thanks [@nishasy](https://github.com/nishasy)! - [SR] Refactor - Update
graphs to pass in i18n context


- [#2230](#2230)
[`5fd3aa351`](5fd3aa3)
Thanks [@nishasy](https://github.com/nishasy)! - [SR] Add screen reader
support for pi-based numbers


- [#2224](#2224)
[`639eb089d`](639eb08)
Thanks [@nishasy](https://github.com/nishasy)! - [SR] Add minimal
instructions for how to interact with graph


- [#2205](#2205)
[`ae29e2b2f`](ae29e2b)
Thanks [@catandthemachines](https://github.com/catandthemachines)! -
Updating perseus analytics and events for better metrics.


- [#2232](#2232)
[`dc9989893`](dc99898)
Thanks [@beaesguerra](https://github.com/beaesguerra)! - Tooling:
Enabled jsx-a11y lint rules and disabled existing errors that were found


- [#2229](#2229)
[`91cd0c937`](91cd0c9)
Thanks [@nishasy](https://github.com/nishasy)! - [SR] Sinusoid - add
screen reader support


- [#2236](#2236)
[`df75123e5`](df75123)
Thanks [@nishasy](https://github.com/nishasy)! - [LX] Add hairlines when
Circle center has focus


- [#2243](#2243)
[`43005350f`](4300535)
Thanks [@nishasy](https://github.com/nishasy)! - [SR] Angle - Update
strings to reflect changes to SRUX specs


- [#2245](#2245)
[`037aaa2f4`](037aaa2)
Thanks [@catandthemachines](https://github.com/catandthemachines)! -
fixing bug in getWidgetSubTypeByWidgetId function.


- [#2213](#2213)
[`db9bc4fb6`](db9bc4f)
Thanks [@nishasy](https://github.com/nishasy)! - [SR] Angle - Add the
"interactive elements" overall graph description


- [#2212](#2212)
[`3ec6ec179`](3ec6ec1)
Thanks [@nishasy](https://github.com/nishasy)! - [LX] Add hairlines when
point has focus


- [#2235](#2235)
[`ab2041897`](ab20418)
Thanks [@benchristel](https://github.com/benchristel)! - Remove unused
code, and export the `ParseFailureDetail` type from
`@khanacademy/perseus-core`


- [#2221](#2221)
[`71329fe35`](71329fe)
Thanks [@nishasy](https://github.com/nishasy)! - [SR] Add aria-labels
for x- and y-axis labels


- [#2244](#2244)
[`c565e26d4`](c565e26)
Thanks [@nishasy](https://github.com/nishasy)! - [Interactive Graph]
Replace string-based function call with switch statement

- Updated dependencies
\[[`f8a4becb0`](f8a4bec),
[`ae29e2b2f`](ae29e2b),
[`dc9989893`](dc99898),
[`ab2041897`](ab20418),
[`1ade12c18`](1ade12c),
[`ce320b496`](ce320b4)]:
    -   @khanacademy/[email protected]
    -   @khanacademy/[email protected]
    -   @khanacademy/[email protected]
    -   @khanacademy/[email protected]
    -   @khanacademy/[email protected]
    -   @khanacademy/[email protected]
    -   @khanacademy/[email protected]
    -   @khanacademy/[email protected]
    -   @khanacademy/[email protected]

## @khanacademy/[email protected]

### Minor Changes

- [#2235](#2235)
[`ab2041897`](ab20418)
Thanks [@benchristel](https://github.com/benchristel)! - Remove unused
code, and export the `ParseFailureDetail` type from
`@khanacademy/perseus-core`


- [#2234](#2234)
[`1ade12c18`](1ade12c)
Thanks [@handeyeco](https://github.com/handeyeco)! - Move splitters into
perseus-core, add splitPerseusItem

### Patch Changes

- [#2223](#2223)
[`f8a4becb0`](f8a4bec)
Thanks [@mark-fitzgerald](https://github.com/mark-fitzgerald)! -
[Bugfix] Interactive Graph crashes in editor when setting domain for
locked function


- [#2205](#2205)
[`ae29e2b2f`](ae29e2b)
Thanks [@catandthemachines](https://github.com/catandthemachines)! -
Updating perseus analytics and events for better metrics.


- [#2227](#2227)
[`ce320b496`](ce320b4)
Thanks [@benchristel](https://github.com/benchristel)! - Bugfix: Accept
'scientific' as a buttonSets value when parsing Expression widgets

## @khanacademy/[email protected]

### Patch Changes

- Updated dependencies
\[[`f8a4becb0`](f8a4bec),
[`ae29e2b2f`](ae29e2b),
[`ab2041897`](ab20418),
[`1ade12c18`](1ade12c),
[`ce320b496`](ce320b4)]:
    -   @khanacademy/[email protected]

## @khanacademy/[email protected]

### Patch Changes

- Updated dependencies
\[[`f8a4becb0`](f8a4bec),
[`ae29e2b2f`](ae29e2b),
[`ab2041897`](ab20418),
[`1ade12c18`](1ade12c),
[`ce320b496`](ce320b4)]:
    -   @khanacademy/[email protected]

## @khanacademy/[email protected]

### Patch Changes

- Updated dependencies
\[[`f8a4becb0`](f8a4bec),
[`ae29e2b2f`](ae29e2b),
[`ab2041897`](ab20418),
[`1ade12c18`](1ade12c),
[`ce320b496`](ce320b4)]:
    -   @khanacademy/[email protected]

## @khanacademy/[email protected]

### Patch Changes

- [#2232](#2232)
[`dc9989893`](dc99898)
Thanks [@beaesguerra](https://github.com/beaesguerra)! - Tooling:
Enabled jsx-a11y lint rules and disabled existing errors that were found


- [#2235](#2235)
[`ab2041897`](ab20418)
Thanks [@benchristel](https://github.com/benchristel)! - Remove unused
code, and export the `ParseFailureDetail` type from
`@khanacademy/perseus-core`

- Updated dependencies
\[[`f8a4becb0`](f8a4bec),
[`ae29e2b2f`](ae29e2b),
[`ab2041897`](ab20418),
[`1ade12c18`](1ade12c),
[`ce320b496`](ce320b4)]:
    -   @khanacademy/[email protected]
    -   @khanacademy/[email protected]

## @khanacademy/[email protected]

### Patch Changes

- [#2223](#2223)
[`f8a4becb0`](f8a4bec)
Thanks [@mark-fitzgerald](https://github.com/mark-fitzgerald)! -
[Bugfix] Interactive Graph crashes in editor when setting domain for
locked function


- [#2230](#2230)
[`5fd3aa351`](5fd3aa3)
Thanks [@nishasy](https://github.com/nishasy)! - [SR] Add screen reader
support for pi-based numbers


- [#2232](#2232)
[`dc9989893`](dc99898)
Thanks [@beaesguerra](https://github.com/beaesguerra)! - Tooling:
Enabled jsx-a11y lint rules and disabled existing errors that were found


- [#2229](#2229)
[`91cd0c937`](91cd0c9)
Thanks [@nishasy](https://github.com/nishasy)! - [SR] Sinusoid - add
screen reader support


- [#2235](#2235)
[`ab2041897`](ab20418)
Thanks [@benchristel](https://github.com/benchristel)! - Remove unused
code, and export the `ParseFailureDetail` type from
`@khanacademy/perseus-core`


- [#2244](#2244)
[`c565e26d4`](c565e26)
Thanks [@nishasy](https://github.com/nishasy)! - [Interactive Graph]
Replace string-based function call with switch statement

- Updated dependencies
\[[`f8a4becb0`](f8a4bec),
[`91cede41f`](91cede4),
[`5fd3aa351`](5fd3aa3),
[`639eb089d`](639eb08),
[`edd34241e`](edd3424),
[`ae29e2b2f`](ae29e2b),
[`dc9989893`](dc99898),
[`91cd0c937`](91cd0c9),
[`df75123e5`](df75123),
[`43005350f`](4300535),
[`037aaa2f4`](037aaa2),
[`db9bc4fb6`](db9bc4f),
[`3ec6ec179`](3ec6ec1),
[`8e4cb7f53`](8e4cb7f),
[`ab2041897`](ab20418),
[`1ade12c18`](1ade12c),
[`71329fe35`](71329fe),
[`c565e26d4`](c565e26),
[`ce320b496`](ce320b4)]:
    -   @khanacademy/[email protected]
    -   @khanacademy/[email protected]
    -   @khanacademy/[email protected]
    -   @khanacademy/[email protected]
    -   @khanacademy/[email protected]
    -   @khanacademy/[email protected]
    -   @khanacademy/[email protected]
    -   @khanacademy/[email protected]

## @khanacademy/[email protected]

### Patch Changes

- [#2235](#2235)
[`ab2041897`](ab20418)
Thanks [@benchristel](https://github.com/benchristel)! - Remove unused
code, and export the `ParseFailureDetail` type from
`@khanacademy/perseus-core`

- Updated dependencies
\[[`f8a4becb0`](f8a4bec),
[`ae29e2b2f`](ae29e2b),
[`ab2041897`](ab20418),
[`1ade12c18`](1ade12c),
[`ce320b496`](ce320b4)]:
    -   @khanacademy/[email protected]

## @khanacademy/[email protected]

### Patch Changes

- [#2235](#2235)
[`ab2041897`](ab20418)
Thanks [@benchristel](https://github.com/benchristel)! - Remove unused
code, and export the `ParseFailureDetail` type from
`@khanacademy/perseus-core`

- Updated dependencies
\[[`f8a4becb0`](f8a4bec),
[`ae29e2b2f`](ae29e2b),
[`ab2041897`](ab20418),
[`1ade12c18`](1ade12c),
[`ce320b496`](ce320b4)]:
    -   @khanacademy/[email protected]
    -   @khanacademy/[email protected]
    -   @khanacademy/[email protected]

## @khanacademy/[email protected]

### Patch Changes

- Updated dependencies
\[[`f8a4becb0`](f8a4bec),
[`ae29e2b2f`](ae29e2b),
[`ab2041897`](ab20418),
[`1ade12c18`](1ade12c),
[`ce320b496`](ce320b4)]:
    -   @khanacademy/[email protected]
    -   @khanacademy/[email protected]

## @khanacademy/[email protected]

### Patch Changes

- Updated dependencies
\[[`f8a4becb0`](f8a4bec),
[`ae29e2b2f`](ae29e2b),
[`ab2041897`](ab20418),
[`1ade12c18`](1ade12c),
[`ce320b496`](ce320b4)]:
    -   @khanacademy/[email protected]

## @khanacademy/[email protected]

### Patch Changes

- [#2235](#2235)
[`ab2041897`](ab20418)
Thanks [@benchristel](https://github.com/benchristel)! - Remove unused
code, and export the `ParseFailureDetail` type from
`@khanacademy/perseus-core`

- Updated dependencies
\[[`f8a4becb0`](f8a4bec),
[`ae29e2b2f`](ae29e2b),
[`dc9989893`](dc99898),
[`ab2041897`](ab20418),
[`1ade12c18`](1ade12c),
[`ce320b496`](ce320b4)]:
    -   @khanacademy/[email protected]
    -   @khanacademy/[email protected]
    -   @khanacademy/[email protected]
    -   @khanacademy/[email protected]
    -   @khanacademy/[email protected]
    -   @khanacademy/[email protected]
    -   @khanacademy/[email protected]
@jeremywiebe
Copy link
Collaborator

Such an exciting milestone! 🌮

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.

3 participants