Restore the @profullstack/footer webring row (#248)
Some checks are pending
CI / build (push) Waiting to run
Deploy to dev2 / deploy (push) Waiting to run
test / test (push) Waiting to run

The fleet is rolling out @profullstack/footer on purpose; put it back as
the site footer (links, webring, copyright) on SiteShell pages and the
homepage, before the pit.world global footer (still last in <body>).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Anthony Ettinger 2026-10-19 06:41:41 -07:00 • committed by GitHub
parent d150717f90
commit 3b1bdfbef0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 35 additions and 37 deletions

View file

@ -92,12 +92,14 @@ describe("server-rendered page markup", () => {
expect(markup).toContain('id="project-request-form"');
});
it("carries the site footer (links + copyright), with no webring of its own", async () => {
it("carries the Profullstack webring links (the ring verifier reads the homepage)", async () => {
process.env.PROFULLSTACK_FOOTER_OFFLINE = "1";
const markup = renderPageMarkup("/", await siteFooterHtml());
expect(markup).toContain('class="site-footer"');
expect(markup).toContain('href="/terms"');
expect(markup).toContain('href="/privacy"');
expect(markup).not.toContain("rssamplifier.com/ring");
expect(markup).toContain("data-pfs-footer");
const from = "from=https%3A%2F%2Flogicsrc.com%2F";
for (const hop of ["previous", "next", "random"]) {
expect(markup).toContain(`https://rssamplifier.com/ring/profullstack/${hop}?${from}`);
}
});
});

View file

@ -1,6 +1,6 @@
{
"name": "@logicsrc/web",
"version": "0.1.1",
"version": "0.1.2",
"private": true,
"description": "LogicSRC standards and open specification PWA (Next.js).",
"scripts": {

View file

@ -2,7 +2,8 @@ import type { ReactNode } from "react";
import { renderInstallCommand } from "@/lib/install-command";
import { Breadcrumbs } from "@/components/breadcrumbs";
import { SideNav } from "@/components/side-nav";
import { SITE_FOOTER_COLOR, SITE_FOOTER_HTML } from "@/lib/site-footer";
import { Footer } from "@profullstack/footer/react";
import { SITE_FOOTER, SITE_FOOTER_COLOR } from "@/lib/site-footer";
/**
* The site chrome for every standalone route: the sidebar that unfolds to
@ -38,10 +39,9 @@ export function SiteShell({
<section className="workspace">
<Breadcrumbs leaf={crumbTitle} />
{children}
<div
style={{ color: SITE_FOOTER_COLOR, marginTop: "2rem" }}
dangerouslySetInnerHTML={{ __html: SITE_FOOTER_HTML }}
/>
<div style={{ color: SITE_FOOTER_COLOR, marginTop: "2rem" }}>
<Footer {...SITE_FOOTER} />
</div>
</section>
</main>
);

View file

@ -1,30 +1,26 @@
/**
* The site footer: one row of links plus the copyright. The network links
* (pit.world, search, ring) come from the pit.world global footer, which the
* root layout appends to every page (components/pit-footer.tsx).
* SiteShell and the homepage markup string (lib/page-markup.ts) share this HTML.
*/
const LINKS: Array<[string, string]> = [
["Specs", "/specs"],
["Docs", "/docs"],
["Blog", "/blog"],
["RSS", "/blog/rss.xml"],
["llms.txt", "/llms.txt"],
["Code", "https://github.com/profullstack/logicsrc"],
["Terms", "/terms"],
["Privacy", "/privacy"],
];
import { footerHtml, type FooterOptions } from "@profullstack/footer";
/** Muted text, as the old footer had. */
/**
* The site footer: @profullstack/footer (links, copyright and the Profullstack
* webring). SiteShell renders it as the package's React server component; the
* homepage, which is the legacy markup string (lib/page-markup.ts), gets the same
* footer as HTML. Both render on the server, which is what the ring's verifier reads.
*/
export const SITE_FOOTER: FooterOptions = {
site: "https://logicsrc.com/",
links: [
{ label: "Specs", href: "/specs" },
{ label: "Docs", href: "/docs" },
{ label: "RSS", href: "/blog/rss.xml" },
{ label: "llms.txt", href: "/llms.txt" },
{ label: "Terms", href: "/terms" },
{ label: "Privacy", href: "/privacy" },
],
};
/** Muted text, as the old footer had; the package inherits `color`. */
export const SITE_FOOTER_COLOR = "#5b6b7a";
export const SITE_FOOTER_HTML =
`<footer class="site-footer" style="display:flex;flex-wrap:wrap;justify-content:space-between;gap:.5rem 1.25rem;border-top:1px solid rgba(91,107,122,.25);padding:1.25rem 0;font-size:.875rem">` +
`<span>&copy; ${new Date().getFullYear()} LogicSRC</span>` +
`<nav aria-label="Footer" style="display:flex;flex-wrap:wrap;gap:.5rem 1.25rem">` +
LINKS.map(([label, href]) => `<a href="${href}" style="color:inherit">${label}</a>`).join("") +
`</nav></footer>`;
export async function siteFooterHtml(): Promise<string> {
return SITE_FOOTER_HTML;
export function siteFooterHtml(): Promise<string> {
return footerHtml(SITE_FOOTER);
}