Profullstack footer on the app.logicsrc.com sign-in page (#255)
Some checks are pending
CI / build (push) Waiting to run
Deploy to dev2 / deploy (push) Waiting to run
test / test (push) Waiting to run

* Profullstack footer on the app.logicsrc.com sign-in page (webring + built.indie + pwamart badges)

Server-rendered @profullstack/footer (clearnet template) under the LogicSRC
footer on the public sign-in page (/), bundled at boot and refreshed from the
@latest template every 15 min. Serves /.well-known/openwebring.json for the
Profullstack ring. Lockfile footer 0.2.1 -> 0.2.6 (checked with bun 1.4.2
--frozen-lockfile).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* PWA manifest + meta description: say what the app is (it carried a moshcode tagline)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(web): ring nav has previous/next only since footer 0.2.2 (no random hop)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Anthony Ettinger 2026-10-26 03:45:08 -07:00 • committed by GitHub
parent 580817b06f
commit ff0c903c6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 69 additions and 4 deletions

View file

@ -106,6 +106,7 @@ export function page({ title = "LogicSRC ▸ credentials", body = "", head = ""
<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
<meta name="theme-color" content="#101418">
<title>${esc(title)}</title>
<meta name="description" content="LogicSRC credentials: share secrets with your team, end-to-end encrypted. The server never sees them.">
<link rel="manifest" href="/manifest.webmanifest">
<link rel="icon" href="/icon.svg" type="image/svg+xml">
<style>${BRAND_CSS}</style>

View file

@ -0,0 +1,33 @@
// The Profullstack footer (links, copyright, the << Profullstack >> webring row and
// the built.indie + pwamart badges) from @profullstack/footer, on the public
// sign-in page. It is rendered into the HTML on the server because rssamplifier's
// ring verifier reads the page and never runs script.
//
// Pages render synchronously, so the footer is kept as a string: the bundled
// template at boot, then the @latest template from the CDN, refreshed every 15
// minutes (a footer release reaches us with no redeploy). A failed refresh keeps
// the last good copy. No CSP on this app, so the footer brings its own styles.
import { footerHtml, footerHtmlSync } from "@profullstack/footer";
export const RING_FOOTER_OPTIONS = { site: "https://app.logicsrc.com/" };
let html = footerHtmlSync(RING_FOOTER_OPTIONS);
/** The footer markup; never empty. */
export const ringFooter = () => html;
/** Accept a rendered footer only when it still links the ring. */
export function setRingFooter(next) {
if (typeof next !== "string" || !next.includes("/ring/profullstack") || next.length > 64_000) return false;
html = next;
return true;
}
export function startRingFooterRefresh(everyMs = 15 * 60_000) {
if (process.env.PROFULLSTACK_FOOTER_OFFLINE === "1") return () => {};
const run = () => footerHtml(RING_FOOTER_OPTIONS).then(setRingFooter, () => {});
run();
const timer = setInterval(run, everyMs);
timer.unref?.();
return () => clearInterval(timer);
}