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

romshark / datapages / 37002637828
41%

Build:
DEFAULT BRANCH: main
Ran 02 Oct 2026 11:44AM UTC
Jobs 11
Files 190
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

02 Oct 2026 11:43AM UTC coverage: 40.458% (-0.03%) from 40.487%
37002637828

push

github

romshark
fix: Keep streams of mixed pages open when hidden

Write openWhenHidden for a page with both public and user-addressed
events when its GET returns enableBackgroundStreaming set to true.
Without it, the page drops its reload on visibility, but its stream
still closes with the tab, and the events published while the tab is
hidden never reach the page. Take this page:

    // PageRoom is /room
    type PageRoom struct{ App *App }

    func (PageRoom) GET(r *http.Request) (
        body datapages.Component,
        bg datapages.EnableBackgroundStreaming,
        err error,
    ) {
        return roomPage(), true, nil
    }

    // Public: EventPosted has no SubjectUser field.
    func (PageRoom) OnPosted(e EventPosted, sse datapages.SSE) error

    // Private: EventNoticed has a SubjectUser field.
    func (PageRoom) OnNoticed(e EventNoticed, sse datapages.SSE) error

It renders these streams for a signed-in visitor and a guest,
neither with openWhenHidden:true:

    data-init="@get('/room/_$/',{retry:'always',...})"
    data-init="@get('/room/_$/anon/',{retry:'always',...})"

Only a page with both kinds of events is affected.

15 of 23 new or added lines in 1 file covered. (65.22%)

14 existing lines in 1 file now uncovered.

14654 of 36220 relevant lines covered (40.46%)

544.92 hits per line

Uncovered Changes

Lines Coverage ∆ File
8
89.32
0.46% internal/generator/write_app_handlers.go

Coverage Regressions

Lines Coverage ∆ File
14
55.66
-0.65% example/file-upload/app/app_templ.go
Jobs
ID Job ID Ran Files Coverage
1 fast-shim - 37002637828.1 02 Oct 2026 11:45AM UTC 4
0.0
GitHub Action Run
2 sqlitesessions - 37002637828.2 02 Oct 2026 11:45AM UTC 9
0.0
GitHub Action Run
3 todolist - 37002637828.3 02 Oct 2026 11:45AM UTC 11
0.0
GitHub Action Run
4 classifieds - 37002637828.4 02 Oct 2026 11:44AM UTC 18
0.0
GitHub Action Run
5 webcomponents - 37002637828.5 02 Oct 2026 11:45AM UTC 6
0.0
GitHub Action Run
6 tailwindcss - 37002637828.6 02 Oct 2026 11:45AM UTC 6
0.0
GitHub Action Run
7 root - 37002637828.7 02 Oct 2026 11:56AM UTC 77
77.97
GitHub Action Run
8 counter - 37002637828.8 02 Oct 2026 11:45AM UTC 12
0.0
GitHub Action Run
9 calculator - 37002637828.9 02 Oct 2026 11:46AM UTC 10
17.11
GitHub Action Run
10 offline-cache - 37002637828.10 02 Oct 2026 11:45AM UTC 19
0.0
GitHub Action Run
11 file-upload - 37002637828.11 02 Oct 2026 11:45AM UTC 18
45.83
GitHub Action Run
Source Files on build 37002637828
  • Tree
  • List 190
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #37002637828
  • 2b087f8c on github
  • Prev Build on main (#37001032554)
  • Next Build on main (#37024249126)
  • Delete
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