feat(regions): public region list and touch-friendly maps
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 11m21s
ci / test (pull_request) Successful in 13m31s
ci / build (pull_request) Successful in 18m20s
ci / image (pull_request) Successful in 5m47s

GET /api/v1/public/regions lists the platform regions with their
location and whether a checker is online, without authentication and to
any origin, for the website's front page. Each instance answers from
memory for 30 seconds; organizations' own regions are never listed.

On touch screens one finger scrolls the page and two move the map, the
pins are larger, and a tap no longer leaves rows highlighted. The
gesture hints are translated, and the regions table drops the key and
owner columns on phones so the location fits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
Sebastian UnterschützandClaude Opus 5.5 committed 2026-11-28 20:48:30 +01:00
1 parent 6c246b145f
commit 23717afec9
14 files changed
+273 -74

No files matched your search

+5
View File
@@ -67,6 +67,9 @@ type Server struct {
// snapshots lets status page servers asking for the same page at once
// share one build of it.
snapshots singleflight.Group
// publicRegions caches the answer of the public region list.
publicRegions publicRegionsCache
}
// Deps are the external resources a Server needs.
@@ -127,6 +130,8 @@ func (s *Server) Mount(r gin.IRouter) {
g := r.Group("/", s.sessions.Load(), s.localize(), auth.CSRF(), s.audit(), s.accountGate())
r.GET("/api/openapi.json", s.openAPIJSON)
// Public data for websites: no session, no CSRF.
r.GET("/api/v1/public/regions", s.listPublicRegions)
r.GET("/install.sh", s.installScript)
g.GET("/api/docs", s.apiDocsPage)