Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion website/app/support/page.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PAGES, pageMetadata } from "@/lib/metadata";
import { ChatButton } from "@/components/ChatButton";
import { CONTACT_EMAIL, ISSUES_URL } from "@/lib/site";
import { CONTACT_EMAIL, FACEBOOK_URL, ISSUES_URL } from "@/lib/site";

export const metadata = pageMetadata(PAGES.support);

Expand All @@ -16,6 +16,8 @@ Or chat with the developer here:

You can also <a href={ISSUES_URL}>report a problem on GitHub</a>.

<a href={FACEBOOK_URL}>Follow ShowRecorder on Facebook</a> for new versions, tips and recordings from real shows.

## Getting started

1. Connect your mixer's USB audio, or any USB audio interface, to your iPhone or iPad. You need a USB-C iPhone (iPhone 15 or later) or an iPad; a powered USB-C hub is recommended so it charges while you record.
Expand Down
5 changes: 4 additions & 1 deletion website/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { trackAttrs } from "@/lib/analytics";
import { AppIcon } from "@/components/AppIcon";
import { CONTACT_EMAIL, ISSUES_URL, REPO_URL, SITE_NAME, TRADEMARK_LINE } from "@/lib/site";
import { CONTACT_EMAIL, FACEBOOK_URL, ISSUES_URL, REPO_URL, SITE_NAME, TRADEMARK_LINE } from "@/lib/site";

export function Footer() {
return (
Expand Down Expand Up @@ -51,6 +51,9 @@ export function Footer() {
<li>
<a href={REPO_URL}>Source on GitHub</a>
</li>
<li>
<a href={FACEBOOK_URL}>Facebook</a>
</li>
</ul>
</nav>
<nav aria-label="Supported mixers">
Expand Down
2 changes: 1 addition & 1 deletion website/lib/pageDates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ export const PAGE_DATES: Record<string, string> = {
"/mixers/x32": "2026-11-13",
"/mixers/xr18": "2026-11-07",
"/privacy": "2026-11-10",
"/support": "2026-11-07",
"/support": "2026-11-15",
};
2 changes: 2 additions & 0 deletions website/lib/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export const CONTACT_EMAIL = "showrecorder@ericdahl.dev";
// The app's source code (FSL-1.1-MIT: public to read, MIT two years after each release).
export const REPO_URL = "https://github.com/ericdahl-dev/ShowRecorder";
export const ISSUES_URL = `${REPO_URL}/issues`;
// The ShowRecorder Facebook Page. It has no username yet (Facebook won't allow one on this Page so far), so the address is its id.
export const FACEBOOK_URL = "https://www.facebook.com/profile.php?id=61596288844683";

// Pro's price. It is set in lib/price.ts (lib/docs.ts needs it, and this file imports lib/docs.ts) and read from here.
export { PRO_PRICE, PRO_PRICE_TEXT } from "@/lib/price";
Expand Down
30 changes: 30 additions & 0 deletions website/tests/facebookPage.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { readFileSync } from "node:fs";
import path from "node:path";
import { renderToStaticMarkup } from "react-dom/server";
import { createElement } from "react";
import { Footer } from "@/components/Footer";
import { FACEBOOK_URL } from "@/lib/site";

// The ShowRecorder Facebook Page gets its followers from the site (Eric, 2026-11-15): a footer link on every page
// and a line on the support page.

const ROOT = path.resolve(__dirname, "..");
const read = (...p: string[]) => readFileSync(path.join(ROOT, ...p), "utf8");

describe("the Facebook Page link", () => {
it("is the ShowRecorder Page", () => {
expect(FACEBOOK_URL).toBe("https://www.facebook.com/profile.php?id=61596288844683");
});

it("is in the footer on every page", () => {
const html = renderToStaticMarkup(createElement(Footer));
expect(html).toContain(`href="${FACEBOOK_URL.replace(/&/g, "&amp;")}"`);
expect(html).toContain("Facebook");
});

it("is on the support page", () => {
const page = read("app", "support", "page.mdx");
expect(page).toContain("FACEBOOK_URL");
expect(page).toMatch(/Follow ShowRecorder on Facebook/);
});
});
Loading