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
Refactoring Numeric Input helper functions to remove underscore (#2128)
This PR is part of the Numeric Input Project, and will be landed onto the feature branch for a full QA pass.
The intended goal was to remove all cases of underscore in the Numeric Input component, and to improve the commenting / documentation of the code.
Some things to note:
- I've changed the logic of `generateExamples` to match `shouldShowExamples`, as we were generating a list of all possible examples and simply not displaying it. This seemed unnecessary and we can exit both functions early.
- I've added more specific types for `PerseusNumericInputWidgetOptions.simplify`
Issue: LEMS-2446
- New tests
- Manual testing in storybook
Author: SonicScrewdriver
Reviewers: SonicScrewdriver, mark-fitzgerald, jeremywiebe
Required Reviewers:
Approved By: mark-fitzgerald
Checks: ✅ Publish npm snapshot (ubuntu-latest, 20.x), ✅ Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x), ✅ Check for .changeset entries for all changed files (ubuntu-latest, 20.x), ✅ Cypress (ubuntu-latest, 20.x), ✅ Check builds for changes in size (ubuntu-latest, 20.x), ✅ Publish Storybook to Chromatic (ubuntu-latest, 20.x)
Pull Request URL: #2128
Copy file name to clipboardexpand all lines: packages/perseus-core/src/parse-perseus-json/regression-tests/__snapshots__/parse-perseus-json-snapshot.test.ts.snap
0 commit comments