From bae468e01cede6b9e0b72a9ffd749b5f10868f61 Mon Sep 17 00:00:00 2001 From: David Young Date: Mon, 30 Nov 2026 11:21:37 -0700 Subject: [PATCH] Social accounts: the redirect address at the top of each card It sat under the Save button, while the keys' help pointed below to it. Now it comes first, with a Copy button, ahead of the keys that need it. Co-Authored-By: Claude Opus 5.5 --- internal/web/settings.go | 4 ++-- internal/web/templates/accounts.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/web/settings.go b/internal/web/settings.go index 8d2536a..b55bce9 100644 --- a/internal/web/settings.go +++ b/internal/web/settings.go @@ -176,7 +176,7 @@ var accountFields = []secretField{ {"X", secrets.XBearerToken, "Bearer token", "For reading posts; needs an X API plan with read access. In the X Developer Console, open your app → Keys and tokens → Bearer token.", xConsole}, {"X", secrets.XClientID, "OAuth 2.0 client ID", - "For posting. In your app, set up User authentication (read and write; type Web App; the callback URL below), then Keys and tokens → OAuth 2.0 Client ID.", xConsole}, + "For posting. In your app, set up User authentication (read and write; type Web App; the callback URL above), then Keys and tokens → OAuth 2.0 Client ID.", xConsole}, {"X", secrets.XClientSecret, "OAuth 2.0 client secret", "Next to the client ID, under Keys and tokens. Only a confidential client (Web App) has one; leave empty for a public client.", xConsole}, {"LinkedIn", secrets.LinkedInClientID, "Client ID", @@ -188,7 +188,7 @@ var accountFields = []secretField{ {"LinkedIn page", secrets.LinkedInPageClientSecret, "Client secret", "On the same Auth tab, under the client ID.", linkedInApps}, {"Reddit", secrets.RedditClientID, "Client ID", - "Create app → choose \"web app\" and enter the redirect URI below. The client ID is the string under the app's name.", redditApps}, + "Create app → choose \"web app\" and enter the redirect URI above. The client ID is the string under the app's name.", redditApps}, {"Reddit", secrets.RedditClientSecret, "Client secret", "On the same app, next to \"secret\".", redditApps}, {"YouTube", secrets.YouTubeAPIKey, "API key", diff --git a/internal/web/templates/accounts.html b/internal/web/templates/accounts.html index 87c7a92..41eb1d6 100644 --- a/internal/web/templates/accounts.html +++ b/internal/web/templates/accounts.html @@ -12,6 +12,7 @@

{{.Name}} {{with .Connect}}{{if .Signed}}connected{{with .Account}} as {{.}}{{end}}{{else}}not connected{{end}}{{end}}

+ {{with .Connect}}

{{.Setup}} {{.Redirect}} {{with .Note}}
{{.}}{{end}}

{{end}}
{{range .Fields}} @@ -42,7 +43,6 @@ {{else if .Soon}}

The sign-in expires {{if eq .Days 0}}today{{else if eq .Days 1}}tomorrow{{else}}in {{.Days}} days{{end}}, on {{.At.Local.Format "2 Jan 2006"}}. Reconnect now to keep posting.

{{else}}

The sign-in lasts until {{.At.Local.Format "2 Jan 2006"}}; {{.Network}} doesn't let it be renewed without signing in again. Supermarket reminds you two weeks before.

{{end}} {{end}} -

{{.Setup}} {{.Redirect}}{{with .Note}}
{{.}}{{end}}