-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a feature flag for Mafs point graphs with fixed numPoints (#1381)
## Summary: The point graph has two separate user experiences: - fixed number of points, where you can drag points around, but not add or delete them - unlimited points, where you can add and delete points We have built the first of these experiences in Mafs, but not the second. We want to release Mafs graphs with fixed-numPoints before implementing unlimited points. This commit adds logic to make that possible with feature flags. It also moves the existing (similar) logic for polygon graphs so all decisions about which graph to render are made in one, testable place. Issue: LEMS-2126 Test plan: Deploy a webapp ZND. Visit `/internal-courses/test-everything/test-everything-1/te-interactive-graph/a/survey-of-graph-types` and verify that only the graphs that should use Mafs are doing so. Author: benchristel Reviewers: nishasy, #perseus, Myranae, SonicScrewdriver, mark-fitzgerald, nicolecomputer Required Reviewers: Approved By: nishasy Checks: ✅ codecov/project, ✅ codecov/patch, ✅ Upload Coverage (ubuntu-latest, 20.x), ✅ Publish npm snapshot (ubuntu-latest, 20.x), ✅ Check builds for changes in size (ubuntu-latest, 20.x), ✅ Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x), ✅ Cypress (ubuntu-latest, 20.x), ✅ Jest Coverage (ubuntu-latest, 20.x), ✅ gerald, ✅ Publish Storybook to Chromatic (ubuntu-latest, 20.x), ✅ Check for .changeset entries for all changed files (ubuntu-latest, 20.x) Pull Request URL: #1381
- Loading branch information
1 parent
93eeda1
commit 26dceb8
Showing
3 changed files
with
186 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@khanacademy/perseus": minor | ||
--- | ||
|
||
Make the `mafs.point` flag control whether point graphs with fixed numbers of points should use Mafs. Previously, turning on the `mafs.point` flag would enable Mafs for point graphs with unlimited points as well. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters