perf(statuspages): page, search and compress public status pages
A status page with 3128 components was 30 MB of uncompressed HTML: all components at once, each with 90 bars carrying a tooltip. - The status page server gzips text responses. - Status pages list 50 components at a time (?page=N) and offer a search (?q=) over component and group names once they have more than one page. Group headings keep the status and count of the whole group. Single-file exports still list every component. - Rows linking a detail page draw their bars as one path per status, without tooltips; the detail page keeps them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
52d2ce25c9
commit
b051f6c430
12 files changed
+4059
-3094
No files matched your search
@@ -88,6 +88,7 @@ func run(log *slog.Logger, level *slog.LevelVar) error {
|
||||
return err
|
||||
}
|
||||
health.Register(r)
|
||||
r.Use(platform.Compress())
|
||||
r.StaticFS("/static", web.Static())
|
||||
pages.Mount(r)
|
||||
go pages.Run(ctx)
|
||||
|
||||
Reference in new issue
Block a user