diff --git a/CHANGELOG.md b/CHANGELOG.md index 80c87f4..c044274 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,19 @@ See [`docs/versioning.md`](docs/versioning.md) for what the numbers mean and ## Unreleased +### Added + +- `/about` says what maply is, how to play in Telegram and on the site, what + Google sign-in gives maply and where the panoramas come from, in all sixteen + languages, as plain HTML without a script. Google's brand review could not + read the home page, which is the Mini App, and refused the brand; `/about` + is the home page the sign-in screen names now. + +### Changed + +- The line that carries the DM keyboard ("Buttons below: play, today's result + and the menu") is deleted as soon as it is sent. The keyboard stays. + ## v0.1.0-rc.1 - 2026-11-23 For the operator: no migrations. Pull the image from diff --git a/cmd/maply-dev/accounts.go b/cmd/maply-dev/accounts.go index a7f19f0..b91a28b 100644 --- a/cmd/maply-dev/accounts.go +++ b/cmd/maply-dev/accounts.go @@ -57,6 +57,7 @@ func mountAccounts(e *Env, mux *http.ServeMux) { e.API.Accounts = svc mux.Handle("/auth/", svc.Middleware(svc.Handler())) mux.Handle("GET /privacy", svc.Privacy()) + mux.Handle("GET /about", svc.About()) mux.HandleFunc("GET /dev/accounts/list", func(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "text/plain; charset=utf-8") _, _ = w.Write([]byte(accountsList(r.Context(), e))) diff --git a/cmd/maply/main.go b/cmd/maply/main.go index 017655d..5b926da 100644 --- a/cmd/maply/main.go +++ b/cmd/maply/main.go @@ -229,6 +229,7 @@ func run(log *slog.Logger) error { mux.Handle("/face/", game) mux.Handle("/auth/", accounts.Middleware(accounts.Handler())) mux.Handle("GET /privacy", accounts.Privacy()) + mux.Handle("GET /about", accounts.About()) mux.Handle("/thumb/", game) mux.Handle("/og/", game) if cards != nil { diff --git a/internal/account/account_test.go b/internal/account/account_test.go index 297e001..c150f2d 100644 --- a/internal/account/account_test.go +++ b/internal/account/account_test.go @@ -197,3 +197,30 @@ func TestARequestThatSignsForItselfIsNobodyOnTheSite(t *testing.T) { } } } + +// The about page is the home page Google's brand review reads: it names the +// app and the site, links the privacy page in its language and the owner's +// Telegram, and leaves no placeholder behind. +func TestAboutExplainsTheAppWithoutScript(t *testing.T) { + svc := New(Config{Key: []byte("k1"), AppURL: "https://maply.example.org/"}) + for _, lang := range i18n.Codes() { + rec := httptest.NewRecorder() + svc.About().ServeHTTP(rec, httptest.NewRequest("GET", "/about?lang="+lang, nil)) + body := rec.Body.String() + if rec.Code != http.StatusOK || !strings.Contains(body, "