• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Khan / perseus / 5872894963
69%

Build:
DEFAULT BRANCH: main
Ran 15 Aug 2023 11:53PM UTC
Jobs 2
Files 528
Run time 10s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
5872894963

push

github

web-flow
Roll v2 Keypad Onto Desktop Web (#645)

https://github.com/Khan/perseus/assets/23404711/b199ff5b-9db6-4394-8ef3-120531564ab3

Updates Perseus / Math Input to use keypad.

Also changes how it's used: 

- Instead of a set of keys appearing on focus, the button on the right acts as a toggle.
- Instead of a warning icon appearing when there is an parsing, the input shows a red "invalid" state and a tooltip appears with a friendly message.
- ~~There is no longer a `buttonsVisible` prop, since visibility is managed by the toggle. I believe this disabled the buttons in some cases. @jeremywiebe do we still need that ability?~~
  - This has been restored. The three states are:
    - `focused` default behavior, toggle off to start
    - `always` default behavior, toggle on to start
    - `never` toggle button disabled
- ~~`buttonSets` went from "any" that seemed to take an array to an object with fields that reflect the props on Keypad that toggle the presence of tabs.~~
  - `buttonSets` type was restored but marked deprecated in jsDocs
    - `keypadButtonSets` prop added that takes new type
    - `buttonSets` maps to `keypadButtonSets`
- Also adds optional `extraKeys` prop that takes an array of `Keys`.

Author: nedredmond

Reviewers: jeremywiebe, nedredmond, handeyeco

Required Reviewers:

Approved By: jeremywiebe, jeremywiebe

Checks: ✅ finish_coverage, ✅ Lint, Typecheck, Format, and Test (ubuntu-latest, 16.x), ✅ Publish npm snapshot (ubuntu-latest, 16.x), ✅ Extract i18n strings (ubuntu-latest, 16.x), ✅ Check builds for changes in size (ubuntu-latest, 16.x), ✅ Cypress Coverage (ubuntu-latest, 16.x), ✅ Jest Coverage (ubuntu-latest, 16.x), ✅ gerald, ✅ Check for .changeset file (ubuntu-latest, 16.x)

Pull Request URL: https://github.com/Khan/perseus/pull/645

7584 of 16583 branches covered (45.73%)

Branch coverage included in aggregate %.

318 of 341 new or added lines in 3 files covered. (93.26%)

23 existing lines in 3 files now uncovered.

71130 of 96995 relevant lines covered (73.33%)

716.34 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
87.68
-0.86% packages/perseus/src/widgets/expression.tsx
6
43.08
0.0% packages/perseus-editor/src/widgets/expression-editor.tsx
16
78.46
-2.25% packages/perseus/src/components/math-input.tsx

Uncovered Existing Lines

Lines Coverage ∆ File
3
78.46
-2.25% packages/perseus/src/components/math-input.tsx
3
92.87
-2.3% packages/perseus/src/components/tooltip.tsx
17
67.57
-14.99% packages/perseus/src/components/tex-buttons.tsx
Subprojects
ID Flag name Job ID Ran Files Coverage
1 cypress 5872894963.1 15 Aug 2023 11:53PM UTC 366
26.11
GitHub Action Run
2 jest 5872894963.2 16 Aug 2023 12:03AM UTC 523
63.17
GitHub Action Run
Source Files on build 5872894963
  • Tree
  • List 528
  • Changed 51
  • Source Changed 0
  • Coverage Changed 51
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • e036092e on github
  • Prev Build on main (#5871401526)
  • Next Build on main (#5881314455)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc