You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Hint Mode: Start Coords] Add start coords UI for polygon graphs (snap to grid only) (#1488)
## Summary:
Add the UI to specify start coords for Polygon graph type (not unlimited, snap to grid only)
- Add the polygon graph type go start-coords-settings.tsx
- No need to create a separate start-coord-polygon.tsx file because
it's identical to start-coord-point.tsx. Reusing that component.
- Update the selection logic in interactive-graph-editor.tsx so it
properly updates the graph with the new snapTo value. (It was stuck
on the previously selected value before.)
- Add the start coords UI polygon flag
- Update the flag tests so they actually test what they're supposed to
Issue: https://khanacademy.atlassian.net/browse/LEMS-2072
## Test plan:
`yarn jest`
Storybook
- Polygon story without default graph settings
- http://localhost:6006/?path=/story/perseuseditor-widgets-interactive-graph--interactive-graph-polygon
- For default graph settings, go to a different story and select polygon from the dropdown
- http://localhost:6006/?path=/story/perseuseditor-widgets-interactive-graph--interactive-graph-point
<img width="379" alt="Screenshot 2024-08-05 at 5 29 35 PM" src="https://github.com/user-attachments/assets/712d2114-4644-46b2-a693-73c788564ae7">
Author: nishasy
Reviewers: nishasy, Myranae
Required Reviewers:
Approved By: Myranae
Checks: ✅ codecov/project, ✅ codecov/patch, ✅ Upload Coverage (ubuntu-latest, 20.x), ✅ Publish npm snapshot (ubuntu-latest, 20.x), ✅ Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x), ✅ Cypress (ubuntu-latest, 20.x), ✅ Check builds for changes in size (ubuntu-latest, 20.x), ✅ Check for .changeset entries for all changed files (ubuntu-latest, 20.x), ✅ Jest Coverage (ubuntu-latest, 20.x), ✅ Publish Storybook to Chromatic (ubuntu-latest, 20.x), ✅ gerald
Pull Request URL: #1488
0 commit comments