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

zooniverse / front-end-monorepo / 7833207531
77%

Build:
DEFAULT BRANCH: master
Ran 08 Feb 2024 05:06PM UTC
Jobs 1
Files 1332
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

08 Feb 2024 05:03PM UTC coverage: 81.173% (-0.02%) from 81.196%
7833207531

push

github

web-flow
refactor: fix missing effect dependencies (#5875)

* refactor: fix missing effect dependencies
Declare `isBrowser` and `localStorage` in the global scope, so that they aren't declared on each app render. Add an `initialTheme` variable to store the initial theme state when a page loads.

* Refactor initialTheme to allow for dark theme

* Clean up redundant component state

* Set initialTheme to 'light' during SSR

* Add an extra setState call in the browser
Grommet doesn't pick up the theme correctly without an extra `setThemeMode` call inside a `useEffectHook`, when the page mounts.

* Simplify the effect hook

* Enable MST static rendering in Node

* Move useState and useEffect into usePreferredTheme

---------

Co-authored-by: Delilah C <23665803+goplayoutside3@users.noreply.github.com>

10435 of 14545 branches covered (0.0%)

Branch coverage included in aggregate %.

15754 of 17718 relevant lines covered (88.92%)

433.96 hits per line

Subprojects
ID Flag name Job ID Ran Files Coverage
1 /jobs/135896270 7833207531.1 08 Feb 2024 05:06PM UTC 0
81.17
GitHub Action Run
Source Files on build 7833207531
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #7833207531
  • 0196a473 on github
  • Prev Build on master (#7832270955)
  • Next Build on master (#7833284291)
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