From a2cf83aafe79a972211baef4efeebf2db7d511a3 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Thu, 15 Oct 2026 03:21:41 +0200 Subject: [PATCH] feat(web-app-bluesky): build the configured title into the social app and its server pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The title was never set: the spec only matched a substring of Bluesky's default. The patched web build now carries it: a rendered headings.ts makes every screen title ' — ', a list of template patches next to the color patches rewrites title, application-name, og:site_name, og:title, twitter:title, the noscript heading and the 'on X' suffixes of the server templates (regexps that match whatever the element holds, the title HTML-escaped), and a rendered Logotype.tsx shows the generated text-only logotype slot as the splash wordmark. The login broker's SSO handoff page takes its colors from the design tokens the proxy injects and its titles from SITE_TITLE. The probe for design sources a disabled design no longer wants used find contains without read_whole_file, so it matched line starts only and never triggered the re-clone; it now reads whole files and looks for each marker the configuration dropped. The spec asserts the exact screen title, the server-rendered titles and the 404 page, the wordmark, and the handoff page under sso. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> --- .../files/login-broker/server.js | 9 +-- .../files/playwright/test-design.js | 67 ++++++++++++++++- .../files/playwright/test-native-admin.js | 4 +- roles/web-app-bluesky/meta/services.yml | 4 ++ roles/web-app-bluesky/tasks/00_core.yml | 3 + roles/web-app-bluesky/tasks/01_social_app.yml | 45 ++++++++++-- .../web-app-bluesky/templates/compose.yml.j2 | 1 + .../web-app-bluesky/templates/headings.ts.j2 | 8 +++ .../web-app-bluesky/templates/logotype.tsx.j2 | 30 ++++++++ .../templates/playwright.env.j2 | 4 +- roles/web-app-bluesky/vars/main.yml | 71 +++++++++++++++++++ 11 files changed, 232 insertions(+), 14 deletions(-) create mode 100644 roles/web-app-bluesky/templates/headings.ts.j2 create mode 100644 roles/web-app-bluesky/templates/logotype.tsx.j2 diff --git a/roles/web-app-bluesky/files/login-broker/server.js b/roles/web-app-bluesky/files/login-broker/server.js index aceba6b871..fe64a86580 100644 --- a/roles/web-app-bluesky/files/login-broker/server.js +++ b/roles/web-app-bluesky/files/login-broker/server.js @@ -72,6 +72,7 @@ const CONFIG = { // nocheck: env-default the broker owns its own cookie, no role renders it handoffCookieMaxAgeSec: parseInt(process.env.HANDOFF_COOKIE_MAX_AGE || "3300", 10), insecureTls: (process.env.INSECURE_TLS || "").toLowerCase() === "true", + siteTitle: requireEnv("SITE_TITLE"), logoutPath: "/sso/logout" }; @@ -371,12 +372,12 @@ function renderHandoff(session, redirectTo) { <html lang="en"> <head> <meta charset="utf-8" /> -<title>Bluesky SSO handoff +${escapeHtml(CONFIG.siteTitle)} SSO handoff - + -

Signing you in to Bluesky…

+

Signing you in to ${escapeHtml(CONFIG.siteTitle)}…