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

hyperglass-community / hyperglass / 44922130797
87%

Build:
DEFAULT BRANCH: main
Ran 21 Nov 2026 04:01PM 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:00PM UTC coverage: 86.216% (+0.02%) from 86.194%
44922130797

push

github

web-flow
feat(ui): show the cache time in the viewer's locale and time zone (#564)

* feat(ui): show the cache time in the viewer's locale and time zone

The backend sends the query timestamp as naive UTC ("2026-11-20 08:00:00"),
and the cached-result tooltip showed it as received after "Cached from".
Add formatTimestamp(), which parses such values as UTC (a value with its own
zone keeps it) and formats them with Intl.DateTimeFormat in the viewer's
locale and time zone, on a 24-hour clock with the zone name. Unparseable
input is returned unchanged.

The time is no longer UTC, so the default web.text.cache_icon drops the
word: "Cached from {time}".

* fix(ui): let the locale pick the clock and parse timestamps strictly

Format with dateStyle "medium" and timeStyle "long" instead of forcing
hourCycle h23. The locale decides the 12- or 24-hour clock, as #551
specifies, and the long time style keeps the zone name or offset. A
forced h23 was also only partial: some locales (fr-CA, ko-KR, th-TH) use
their own long pattern once a zone name is requested.

Accept only the backend's "YYYY-MM-DD HH:MM:SS" and ISO 8601 date-times
(T, optional fraction, Z or offset), with range checks. dayjs accepted
"12" or "abc 2026" as dates and rolled "2026-13-45 99:99:99" over, so
non-timestamps were not returned unchanged.

The cache tooltip test now compares with formatTimestamp under a pinned
time zone, so it passes in any runner locale. Add the backend default
test for cache_icon, and link #551 in the changelog.

* test(ui): compare timestamps against Intl output instead of fixed CLDR strings

Keep one exact string as a smoke check. The other cases format a known
instant with the same Intl options, so a Node or ICU update that changes
the CLDR text can't fail them without a code change. Link the PR in the
changelog entry.

509 of 792 branches covered (64.27%)

Branch coverage included in aggregate %.

22 of 22 new or added lines in 4 files covered. (100.0%)

17924 of 20588 relevant lines covered (87.06%)

10.71 hits per line

Jobs
ID Job ID Ran Files Coverage
1 backend - 44922130797.1 21 Nov 2026 04:03PM UTC 317
88.21
GitHub Action Run
2 frontend - 44922130797.2 21 Nov 2026 04:00PM UTC 125
72.69
GitHub Action Run
Source Files on build 44922130797
  • Tree
  • List 442
  • Changed 4
  • Source Changed 4
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #44922130797
  • 15457cf7 on github
  • Prev Build on main (#44919825075)
  • Next Build on main (#44922510522)
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