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

romshark / datapages / 35660733796
44%

Build:
DEFAULT BRANCH: main
Ran 21 Sep 2026 10:05PM UTC
Jobs 10
Files 169
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 Sep 2026 10:04PM UTC coverage: 38.786% (-4.7%) from 43.458%
35660733796

push

github

web-flow
feat: Service-worker Page Cache (#33)

* feat: Introduce offline cache

* feat: Add shim page caching for instant loads

- feat: SetShim caches a page shim; the worker serves it at once,
  then morphs in the live page fetched in the background
- feat: add the fast-shim example
- refactor: rename OfflineCacheWriter to PageCacheWriter
- docs: document shim caching in SPECIFICATION and the datapages skill

* chore: Tidy the parser fixture modules

* docs: Update the skill for typed parameters

* docs: Fix PageOffline example return type

* docs: Describe shim serving in the spec

* docs: Rewrite the offline-cache README

* docs: List redirect delivery of page cache writes

* docs: Fix anchor, reserved names and skill format

* fix: Deliver purchase cache writes via redirect

* fix: Keep Datastar reqs out of the offline cache

* perf: Minify the offline service worker

8380 -> 3991 bytes

* fix: Generate the page cache handle in render404

* test: Add the pagecache acceptance case

* chore: Mod tidy

* fix: The offline-cache example does not build

* fix: Pass r.Header to IsDatastarRequest

The offline redirect emitter is branch-only and was missed when the
signature changed. Also tidies the four branch-only modules.

* chore: Mod tidy

* fix: Deliver page cache writes from every handler

An app-level action taking pageCache got the handle and no delivery:

	func (a *App) POSTPrecache(
		r *http.Request, pageCache datapages.PageCacheWriter,
	) error {
		pageCache.Set(href.PageTicket(id), body, rev) // discarded
		return nil
	}

SPECIFICATION.md documented that shape as working. A page action taking
pageCache and returning a body opened an SSE stream and wrote an HTML
document into it, losing the body.

Delivery now follows pageCacheViaRedirect, pageCacheViaBake and
pageCacheViaStream, applied to both the page and the app-level path.

An action returning neither a redirect nor a body now answers on an event
stream and requires a Datastar request. It sent n... (continued)

523 of 4582 new or added lines in 29 files covered. (11.41%)

3 existing lines in 1 file now uncovered.

12298 of 31707 relevant lines covered (38.79%)

33.47 hits per line

Uncovered Changes

Lines Coverage ∆ File
1849
0.0
example/offline-cache/app/app_templ.go
671
0.0
example/offline-cache/app/datapagesgen/app_gen.go
271
0.0
example/fast-shim/app/datapagesgen/app_gen.go
217
0.0
example/offline-cache/app/domain/domain.go
168
0.0
example/offline-cache/cmd/server/testdata.go
161
0.0
example/offline-cache/app/icon_templ.go
130
0.0
example/offline-cache/app/datapagesgen/href/href_gen.go
86
0.0
example/fast-shim/app/app.go
79
0.0
example/offline-cache/app/datapagesgen/action/action_gen.go
74
0.0
example/offline-cache/app/page_purchase.go
41
0.0
example/offline-cache/cmd/server/main.go
38
0.0
example/offline-cache/app/page_login.go
37
0.0
example/offline-cache/app/offline_pages.go
35
0.0
example/fast-shim/cmd/server/main.go
35
0.0
example/offline-cache/app/page_ticket.go
25
0.0
example/offline-cache/app/app.go
24
0.0
example/offline-cache/app/page_show.go
21
0.0
example/offline-cache/app/page_index.go
21
87.43
modules/offline/offline.go
19
0.0
example/offline-cache/app/page_tickets.go
15
0.0
example/fast-shim/app/datapagesgen/href/href_gen.go
14
93.68
0.77% internal/generator/write_app.go
10
0.0
example/offline-cache/app/offline.go
8
86.5
-0.32% internal/parser/parser.go
4
88.52
-0.01% internal/generator/write_app_handlers.go
2
0.0
example/offline-cache/app/datapagesgen/assets/assets_gen.go
2
0.0
example/offline-cache/app/page_offline.go
2
14.44
-0.11% internal/parser/internal/typecheck/typecheck.go

Coverage Regressions

Lines Coverage ∆ File
3
78.57
0.0% modules/sessions/natskv/natskv.go
Jobs
ID Job ID Ran Files Coverage
1 fast-shim - 35660733796.1 21 Sep 2026 10:05PM UTC 4
0.0
GitHub Action Run
2 tailwindcss - 35660733796.2 21 Sep 2026 10:05PM UTC 6
0.0
GitHub Action Run
3 offline-cache - 35660733796.3 21 Sep 2026 10:06PM UTC 19
0.0
GitHub Action Run
4 todolist - 35660733796.4 21 Sep 2026 10:05PM UTC 11
0.0
GitHub Action Run
5 calculator - 35660733796.5 21 Sep 2026 10:07PM UTC 10
17.21
GitHub Action Run
6 webcomponents - 35660733796.6 21 Sep 2026 10:05PM UTC 6
0.0
GitHub Action Run
7 counter - 35660733796.7 21 Sep 2026 10:05PM UTC 12
0.0
GitHub Action Run
8 sqlitesessions - 35660733796.8 21 Sep 2026 10:05PM UTC 9
0.0
GitHub Action Run
9 classifieds - 35660733796.9 21 Sep 2026 10:05PM UTC 18
0.0
GitHub Action Run
10 root - 35660733796.10 21 Sep 2026 10:16PM UTC 74
77.2
GitHub Action Run
Source Files on build 35660733796
  • Tree
  • List 169
  • Changed 9
  • Source Changed 8
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35660733796
  • 3b560baa on github
  • Prev Build on main (#35657547016)
  • Next Build on main (#35664936950)
  • 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