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

hyperglass-community / hyperglass / 45109507319
89%

Build:
DEFAULT BRANCH: main
Ran 23 Nov 2026 04:04AM UTC
Jobs 2
Files 444
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 04:03AM UTC coverage: 86.879% (+0.08%) from 86.804%
45109507319

push

github

web-flow
chore(ui): upgrade to zustand 5 (#580)

* chore(ui): upgrade to zustand 5

- zustand ^3.7.2 -> ^5.0.16 (lockfile resolves 5.0.16).
- Import the named `create`; v5 has no default export.
- util/state.ts: drop the removed SetState/GetState types and type
  withDev with the v5 StateCreator<T, [], []> signature.
- use-greeting.ts: use the curried create<T>()(...) form that persist
  needs in v5.
- Wrap every selector that builds a new object in useShallow. v5 no
  longer memoizes selector results, so React's getSnapshot check throws
  "Maximum update depth exceeded". The equality-function argument in
  looking-glass-form.tsx (removed in v5) is replaced the same way.
- results/individual.test.tsx: unmount before resetting the store in
  afterEach. v5 delivers the reset to the mounted Result, which then
  queried the emptied form with the real fetch during the next test.

* test(ui): check that the greeting store reads a zustand 3 payload

Visitors keep the greeting acknowledgement that zustand 3's persist wrote as JSON.stringify({ state, version: 0 }). Check that zustand 5 restores it without a migrate, keeps the defaults when nothing is stored, and keeps the store's actions.

* fix(ui): keep an acknowledged greeting closed after hydration

zustand 5 renders a store's initial state while React hydrates, so the
prerendered Greeting saw isAck: false during hydration even when the
visitor's acknowledgement was stored. Its effect then opened the modal
and persisted isOpen: true, and the visitor saw the greeting on every
page load. zustand 3 rendered the rehydrated state, so this is a
regression of the upgrade.

The effect now reads the acknowledgement from the store. The new test
prerenders Greeting with renderToString and hydrates it, with an
acknowledgement stored by zustand 3 and by zustand 5, and checks that a
new visitor still gets the greeting.

580 of 841 branches covered (68.97%)

Branch coverage included in aggregate %.

12 of 13 new or added lines in 9 files covered. (92.31%)

18502 of 21123 relevant lines covered (87.59%)

14.56 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
71.43
0.0% hyperglass/ui/util/state.ts
Jobs
ID Job ID Ran Files Coverage
1 frontend - 45109507319.1 23 Nov 2026 04:04AM UTC 125
76.25
GitHub Action Run
2 backend - 45109507319.2 23 Nov 2026 04:07AM UTC 319
88.48
GitHub Action Run
Source Files on build 45109507319
  • Tree
  • List 444
  • Changed 11
  • Source Changed 10
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #45109507319
  • c5763d8d on github
  • Prev Build on main (#44927609537)
  • Next Build on main (#45114001458)
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