(setting: string)
| 441 | const freeCommand = repo.ok ? fetchCommand(repo.repo, repo.quant) : ''; |
| 442 | |
| 443 | const measure = (setting: string): JSX.Element => { |
| 444 | const found = measurements[setting]; |
| 445 | const busy = measuring === setting; |
| 446 | return ( |
| 447 | <p |
| 448 | className="atlas-settings-measure" |
| 449 | data-testid="atlas-settings-measure" |
| 450 | data-setting={setting} |
| 451 | data-verdict={busy ? 'measuring' : found?.verdict ?? 'not-measured'} |
| 452 | data-before={found === undefined ? '' : fps(found.before)} |
| 453 | data-after={found === undefined ? '' : fps(found.after)} |
| 454 | data-band={found === undefined ? '' : fps(found.band)} |
| 455 | data-nodes={found?.nodes ?? ''} |
| 456 | data-edges={found?.edges ?? ''} |
| 457 | data-at={found?.at ?? ''} |
| 458 | > |
| 459 | {measurementText(found, busy)} |
| 460 | {found !== undefined && found.verdict !== 'not-drawing' && ( |
| 461 | <span className="atlas-settings-measure-scene"> |
| 462 | {text.measureScene(found.nodes, found.edges, found.at)} |
| 463 | </span> |
| 464 | )} |
| 465 | </p> |
| 466 | ); |
| 467 | }; |
| 468 | |
| 469 | return ( |
| 470 | <div |
no test coverage detected