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>
This commit is contained in:
Anthony Ettinger 2026-10-26 10:25:47 +00:00
parent 580817b06f
commit 58827b3e2a
6 changed files with 65 additions and 2 deletions

View file

@ -0,0 +1,20 @@
// The sign-in page carries the Profullstack footer (webring row + badges), and
// the refresh only ever swaps in a footer that still links the ring.
import assert from "node:assert/strict";
import test from "node:test";
import { ringFooter, setRingFooter } from "../src/lib/ring-footer.mjs";
test("the bundled footer links the ring and both badges for app.logicsrc.com", () => {
const html = ringFooter();
assert.match(html, /rssamplifier\.com\/ring\/profullstack/);
assert.match(html, /built\.indie\.pit\.world/);
assert.match(html, /pwamart\.com\/for\.svg\?site=https%3A%2F%2Fapp\.logicsrc\.com%2F|pwamart\.com\/for\.svg\?site=https:\/\/app\.logicsrc\.com\//);
});
test("a refresh without the ring row is ignored", () => {
const before = ringFooter();
assert.equal(setRingFooter("<footer>nope</footer>"), false);
assert.equal(setRingFooter(undefined), false);
assert.equal(ringFooter(), before);
});