mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-12-01 17:24:48 +00:00
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>
20 lines
922 B
JavaScript
20 lines
922 B
JavaScript
// 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);
|
|
});
|