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

hyperglass-community / hyperglass / 45126199074
89%

Build:
DEFAULT BRANCH: main
Ran 23 Nov 2026 06:52AM UTC
Jobs 2
Files 458
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

23 Nov 2026 06:44AM UTC coverage: 87.405% (+0.2%) from 87.216%
45126199074

push

github

web-flow
feat(ui): keep a per-browser history of recent queries (#587)

* feat(config): add web.history and the query history text

Add `web.history` with `enable` (default true) and `limit` (default 10,
from 1 to 50), and the `web.text` keys the query history uses:
history_title, history_open, history_delete, history_clear_all,
history_clear_confirm, history_clear_cancel, history_back and
history_saved_at.

Document them in the sample configuration, complete-config.mdx and
web-ui.mdx, with what the history stores, where, how visitors delete it,
and that kiosks and shared terminals should turn it off.

* test(ui): regenerate the UI test fixture

* feat(ui): add a query history store kept in the browser

A zustand `persist` store, `hyperglass.history` (version 1) in
localStorage, holds one entry per query: its locations, query type id
and name, target and variables, their labels, when it was saved, and
each location's successful response with its query id. Entries are
newest first and limited in number. A location's response is saved in
its query's entry, and saved again when it changes. The opened entry is
not stored.

The storage never throws. When localStorage is full, the oldest
entries are dropped from the stored value until it fits. When the
browser doesn't allow storage, history is kept in memory for the
session. Stored entries that don't have the expected shape are left
out on load, so a malformed value can't break the landing page.

* feat(ui): save successful query results to the history

The form state gets a submission id, new each time the form switches to
the results and cleared by back() and reset(), so the locations of one
query are saved in one entry.

The live Result saves its response when history is enabled and the
result is not an error, using the same test as the result panel
(isQueryError: a request error, or a response that is not a success).
Errors, warnings, timeouts, network errors and non-JSON responses are
not saved. A response that... (continued)

730 of 1006 branches covered (72.56%)

Branch coverage included in aggregate %.

301 of 303 new or added lines in 16 files covered. (99.34%)

19375 of 21996 relevant lines covered (88.08%)

17.07 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
98.05
hyperglass/ui/hooks/use-query-history.ts
1
86.49
hyperglass/ui/hooks/use-record-history.ts
Jobs
ID Job ID Ran Files Coverage
1 backend - 45126199074.1 23 Nov 2026 06:54AM UTC 325
88.78
GitHub Action Run
2 frontend - 45126199074.2 23 Nov 2026 06:52AM UTC 133
79.34
GitHub Action Run
Source Files on build 45126199074
  • Tree
  • List 458
  • Changed 12
  • Source Changed 12
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #45126199074
  • 3fb41c30 on github
  • Prev Build on main (#45126170724)
  • Next Build on main (#45128451644)
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