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

hyperglass-community / hyperglass / 44925009221
87%

Build:
DEFAULT BRANCH: main
Ran 21 Nov 2026 04:32PM UTC
Jobs 2
Files 442
Run time 1min
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

21 Nov 2026 04:31PM UTC coverage: 86.449% (+0.2%) from 86.241%
44925009221

push

github

web-flow
refactor(ui): render results from props instead of the form store (#565)

* refactor(ui): render results from props so a stored result can be shown

Split the result components into parts that render from props and live
parts that read the form state and run the query:

- `ResultPanel` takes the query target, location, query state, error
  level and the header buttons. `Result` runs `useLGQuery`, stores the
  response and passes the copy, requery and AS path buttons.
- `Path` takes the response and display target, and looks up ASN
  organizations only when given an `onEnriched` callback. `Result`
  passes the stored response and a callback that stores the result.
- `Tags` takes its labels. `Results` passes them from the form state,
  through a new `ResultsView` layout that takes the tags and results.

A result, its tags and its AS path can now be rendered from a stored
response with no form state and no request. Nothing does so yet; query
history and share links will. The live components behave as before.

Closes #555

* refactor(ui): split Result in place and pass the device to ResultPanel

Keep `_Result` where it was, ending in `return <ResultPanel />`, with
`_ResultPanel` after it. Lines that open PRs edit, such as
`setErrorLevel`, stay where they were, so those PRs still apply.

`ResultPanel` now takes the device as `location: { id, name }` instead
of looking it up in the configuration. A stored result for a device that
has since been removed or renamed renders with its stored name. `Result`
looks the device up and shows the "not found" toast, as before.

`ResultQueryState.error` is typed as the hook's error union or `null`,
so a stored result has to pass `null` and is not shown as an error.

Document that `buttons` runs on every render and must not call hooks,
and drop the enrichment polling test, which waited 1.5 s for a code path
`ResultPanel` no longer has.

526 of 794 branches covered (66.25%)

Branch coverage included in aggregate %.

38 of 45 new or added lines in 4 files covered. (84.44%)

17968 of 20599 relevant lines covered (87.23%)

11.28 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
50.0
38.89% hyperglass/ui/components/results/group.tsx
Jobs
ID Job ID Ran Files Coverage
1 backend - 44925009221.1 21 Nov 2026 04:35PM UTC 317
88.21
GitHub Action Run
2 frontend - 44925009221.2 21 Nov 2026 04:32PM UTC 125
74.56
GitHub Action Run
Source Files on build 44925009221
  • Tree
  • List 442
  • Changed 6
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #44925009221
  • 2cf550c2 on github
  • Prev Build on main (#44922510522)
  • Next Build on main (#44925020736)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc