release: 1.8.0
test / test (push) Waiting to run

Add in-panel Help: CSS-only drawer with seeded Status and domain topics,
«?» entry points on cards, and guide.md boundary for what stays in-repo.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-18 23:00:08 +03:00
parent 27aeadc71d
commit 33ee08f7b6
15 changed files with 486 additions and 22 deletions
+22
View File
@@ -0,0 +1,22 @@
package handlers
import (
"net/http"
"github.com/mixeme/selfpost/internal/web/auth"
)
func (h *Handlers) HandleHelp(w http.ResponseWriter, r *http.Request) {
p, ok := h.principal(r)
if !ok {
http.Error(w, "internal error", http.StatusInternalServerError)
return
}
data := map[string]any{
"Title": "SelfPost — help",
"User": auth.CurrentUser(r),
"Active": "help",
"IsGlobal": p.IsGlobal(),
}
h.view.Render(w, http.StatusOK, "help", data)
}