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

Make graph specific properties persist and display on preview graph #1354

Merged
merged 6 commits into from
Jun 17, 2024

Conversation

Myranae
Copy link
Contributor

@Myranae Myranae commented Jun 17, 2024

Summary:

Previously, graph specific properties, like number of sides and snapTo type for polygons, did not appear in the preview graph and did not persist or actually affect the preview graph. This makes it so the options selected affect the preview graph.

Issue: LEMS-2093

Test plan:

Function builds the graph key based on the "correct" object
@Myranae Myranae self-assigned this Jun 17, 2024
Copy link
Contributor

github-actions bot commented Jun 17, 2024

Size Change: +89 B (+0.01%)

Total Size: 845 kB

Filename Size Change
packages/perseus-editor/dist/es/index.js 271 kB +89 B (+0.03%)
ℹ️ View Unchanged
Filename Size
packages/kas/dist/es/index.js 38.2 kB
packages/kmath/dist/es/index.js 4.26 kB
packages/math-input/dist/es/index.js 80.1 kB
packages/math-input/dist/es/strings.js 1.73 kB
packages/perseus-core/dist/es/index.js 906 B
packages/perseus-error/dist/es/index.js 866 B
packages/perseus-linter/dist/es/index.js 21.8 kB
packages/perseus/dist/es/index.js 407 kB
packages/perseus/dist/es/strings.js 3.21 kB
packages/pure-markdown/dist/es/index.js 3.67 kB
packages/simple-markdown/dist/es/index.js 12.4 kB

compressed-size-action

Copy link

codecov bot commented Jun 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.96%. Comparing base (50c8233) to head (2155a78).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1354      +/-   ##
==========================================
+ Coverage   69.77%   70.96%   +1.18%     
==========================================
  Files         488      492       +4     
  Lines      103276   103365      +89     
  Branches     7430    11200    +3770     
==========================================
+ Hits        72058    73349    +1291     
+ Misses      31039    30016    -1023     
+ Partials      179        0     -179     

Impacted file tree graph

Files Coverage Δ
...us-editor/src/widgets/interactive-graph-editor.tsx 90.46% <100.00%> (+0.20%) ⬆️

... and 142 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 50c8233...2155a78. Read the comment docs.

@Myranae Myranae marked this pull request as ready for review June 17, 2024 17:19
@Myranae Myranae requested a review from nishasy June 17, 2024 17:19
@khan-actions-bot
Copy link
Contributor

Gerald

Required Reviewers
  • @Khan/perseus for changes to .changeset/witty-moons-develop.md, packages/perseus-editor/src/widgets/interactive-graph-editor.tsx, packages/perseus-editor/src/widgets/__tests__/interactive-graph-editor.test.tsx

Don't want to be involved in this pull request? Comment #removeme and we won't notify you of further changes.

@khan-actions-bot khan-actions-bot requested a review from a team June 17, 2024 17:19
@Myranae Myranae requested review from SonicScrewdriver, handeyeco and a team and removed request for a team June 17, 2024 17:19
Copy link
Contributor

@nishasy nishasy left a comment

Choose a reason for hiding this comment

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

Interesting!

Copy link
Contributor

@nishasy nishasy left a comment

Choose a reason for hiding this comment

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

Interesting!

@Myranae Myranae merged commit e73373f into main Jun 17, 2024
14 checks passed
@Myranae Myranae deleted the tb/LEMS2093/polygon-graph-editor branch June 17, 2024 18:05
nishasy added a commit that referenced this pull request Jun 17, 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/perseus@23.5.0

### Minor Changes

- [#1348](#1348)
[`73ba4f7c9`](73ba4f7)
Thanks [@nishasy](https://github.com/nishasy)! - [Interactive Graph
Editor] Update the locked ellipse settings so they only take degrees as
input.


- [#1353](#1353)
[`e528c5b2b`](e528c5b)
Thanks [@nishasy](https://github.com/nishasy)! - [Interactive Graph]
View a locked polygon


- [#1351](#1351)
[`9a6517ca2`](9a6517c)
Thanks [@nishasy](https://github.com/nishasy)! - [Interactive Graph
Editor] Add blue and gold to locked figures colorset

### Patch Changes

- [#1350](#1350)
[`1e877c6d4`](1e877c6)
Thanks [@nishasy](https://github.com/nishasy)! - [Interactive Graph
Editor] Add locked vector to storybook story for all locked figures


- [#1345](#1345)
[`92990f15f`](92990f1)
Thanks [@benchristel](https://github.com/benchristel)! - Fix a bug in
the exercise editor where the preview did not update after a change to
the graph type or number of line segments.

## @khanacademy/perseus-editor@6.11.0

### Minor Changes

- [#1348](#1348)
[`73ba4f7c9`](73ba4f7)
Thanks [@nishasy](https://github.com/nishasy)! - [Interactive Graph
Editor] Update the locked ellipse settings so they only take degrees as
input.


- [#1353](#1353)
[`e528c5b2b`](e528c5b)
Thanks [@nishasy](https://github.com/nishasy)! - [Interactive Graph]
View a locked polygon


- [#1351](#1351)
[`9a6517ca2`](9a6517c)
Thanks [@nishasy](https://github.com/nishasy)! - [Interactive Graph
Editor] Add blue and gold to locked figures colorset


- [#1354](#1354)
[`e73373f48`](e73373f)
Thanks [@Myranae](https://github.com/Myranae)! - Fix interactive graph
editor in storybook to display and persist options

### Patch Changes

- [#1350](#1350)
[`1e877c6d4`](1e877c6)
Thanks [@nishasy](https://github.com/nishasy)! - [Interactive Graph
Editor] Add locked vector to storybook story for all locked figures

- Updated dependencies
\[[`1e877c6d4`](1e877c6),
[`92990f15f`](92990f1),
[`73ba4f7c9`](73ba4f7),
[`e528c5b2b`](e528c5b),
[`9a6517ca2`](9a6517c)]:
    -   @khanacademy/perseus@23.5.0
nishasy added a commit that referenced this pull request Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants