From e3376d595b636edfb0cca9873156caa5d305aa05 Mon Sep 17 00:00:00 2001 From: Brittany Ellich Date: Tue, 2 Jun 2026 07:33:10 -0700 Subject: [PATCH] Update sign in templates, event handler, and add atproto links to profiles --- features/auth/pages/signin.templ | 8 +- features/auth/pages/signin_templ.go | 9 +- features/connect/handlers.go | 75 ++++++++++++++-- features/connect/handlers_test.go | 127 ++++++++++++++++++++++++++++ features/index/pages/index.templ | 2 +- features/index/pages/index_templ.go | 8 +- 6 files changed, 205 insertions(+), 24 deletions(-) create mode 100644 features/connect/handlers_test.go diff --git a/features/auth/pages/signin.templ b/features/auth/pages/signin.templ index 5c5be5c..442ebce 100644 --- a/features/auth/pages/signin.templ +++ b/features/auth/pages/signin.templ @@ -9,7 +9,7 @@ import ( // Signin renders the chooser: existing Atmosphere account vs create a new one. // next is an optional path to redirect to after sign-in. templ Signin(next string) { - @layouts.Base("sign in", "Sign in with your ATProto account.") { + @layouts.Base("sign in", "Sign in with your Atmosphere (Bluesky) account.") {
@@ -22,9 +22,7 @@ templ Signin(next string) { you{ "@" }atmo.quest:~$ auth --pick
-
choose how to start your quest.
- step 1 of 1 · pick a path

sign in

atmo.quest is built on ATProto. Your records live in your repo, not ours. You'll sign in with the same identity you use anywhere on the open social web. @@ -33,13 +31,13 @@ templ Signin(next string) {

option a
-
sign in with your Atmosphere account
+
Sign in with your Atmosphere (Bluesky) account
already have a handle like you.bsky.social or any ATProto PDS? Go this way.
▸ continue ↵
option b
-
Continue without an Atmosphere account
+
Continue without an Atmosphere (Bluesky) account
use atmo.quest locally — link an Atmosphere account later in Settings to claim your data.
▸ continue
diff --git a/features/auth/pages/signin_templ.go b/features/auth/pages/signin_templ.go index 10c41d8..49bdf33 100644 --- a/features/auth/pages/signin_templ.go +++ b/features/auth/pages/signin_templ.go @@ -5,13 +5,12 @@ package pages //lint:file-ignore SA4006 This context is only used if a nested component is present. -import "github.com/a-h/templ" -import templruntime "github.com/a-h/templ/runtime" - import ( + "atmoquest/features/common/layouts" "net/url" - "atmoquest/features/common/layouts" + "github.com/a-h/templ" + templruntime "github.com/a-h/templ/runtime" ) // Signin renders the chooser: existing Atmosphere account vs create a new one. @@ -62,7 +61,7 @@ func Signin(next string) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 2, "atmo.quest:~$ auth --pick
choose how to start your quest.
step 1 of 1 · pick a path

sign in

atmo.quest is built on ATProto. Your records live in your repo, not ours. You'll sign in with the same identity you use anywhere on the open social web.