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

[Locked Figure Labels] Add/edit/delete locked ellipse labels #1655

Merged
merged 10 commits into from
Sep 24, 2024

Conversation

nishasy
Copy link
Contributor

@nishasy nishasy commented Sep 19, 2024

Summary:

Add the ability to add/edit/delete labels for locked ellipses
within the interactive graph editor.

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

Test plan:

image

- Add feature flag for locked ellipse labels
- Add labels to LockedEllipseType
- Update builder
- Update stories and tests

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

Test plan:
- Go to http://localhost:6006/?path=/story/perseuseditor-widgets-interactive-graph--mafs-with-locked-ellipse-labels-flag
- Confirm that the visible label is on the locked ellipse only
- Go to the point, line, and vector  stories and confirm that the
  locked ellipse does not have a visible label (make sure the
  flags are separating the behaviors correctly)
Add the ability to add/edit/delete labels for locked ellipses
within the interactive graph editor.

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

Test plan:
- Go to http://localhost:6006/?path=/story/perseuseditor-widgets-interactive-graph--mafs-with-locked-ellipse-labels-flag
- Go to locked figures
- Open the locked ellipse settings
- Confirm that the label settings are there
- Play around with the label settings and confirm that it moves
  and updates with the ellipse
@nishasy nishasy self-assigned this Sep 19, 2024
@nishasy nishasy marked this pull request as ready for review September 19, 2024 20:53
@khan-actions-bot
Copy link
Contributor

Gerald

Required Reviewers
  • @Khan/perseus for changes to .changeset/dry-parents-invite.md, packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-ellipse-settings.test.tsx, packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-ellipse-settings.tsx, packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-line-settings.tsx, packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-vector-settings.test.tsx, packages/perseus-editor/src/widgets/interactive-graph-editor/locked-figures/locked-vector-settings.tsx

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

Copy link
Contributor

github-actions bot commented Sep 19, 2024

npm Snapshot: Published

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

Example:

yarn add @khanacademy/perseus@PR1655

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

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

Copy link
Contributor

github-actions bot commented Sep 19, 2024

Size Change: +112 B (+0.01%)

Total Size: 863 kB

Filename Size Change
packages/perseus-editor/dist/es/index.js 279 kB +112 B (+0.04%)
ℹ️ View Unchanged
Filename Size
packages/kas/dist/es/index.js 38.3 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-linter/dist/es/index.js 22.2 kB
packages/perseus/dist/es/index.js 418 kB
packages/perseus/dist/es/strings.js 3.36 kB
packages/pure-markdown/dist/es/index.js 3.66 kB
packages/simple-markdown/dist/es/index.js 12.4 kB

compressed-size-action

Copy link

codecov bot commented Sep 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.63%. Comparing base (ca4be05) to head (505b4ae).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1655      +/-   ##
==========================================
+ Coverage   70.45%   70.63%   +0.18%     
==========================================
  Files         562      588      +26     
  Lines      108077   112705    +4628     
  Branches     7944    11428    +3484     
==========================================
+ Hits        76142    79607    +3465     
- Misses      31748    33098    +1350     
+ Partials      187        0     -187     

Impacted file tree graph

see 1150 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 ca4be05...505b4ae. Read the comment docs.

@nishasy nishasy changed the base branch from locked-ellipse-labels to main September 24, 2024 17:22
@nishasy
Copy link
Contributor Author

nishasy commented Sep 24, 2024

The parent pull-request (#1653) has been merged into main, but this branch (locked-ellipse-labels-editor) now has conflicts with the new base branch. These conflicts must be resolved before checks can complete on this pull-request.

@nishasy nishasy merged commit 790e189 into main Sep 24, 2024
13 checks passed
@nishasy nishasy deleted the locked-ellipse-labels-editor branch September 24, 2024 17:30
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