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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ All notable changes to OpenSignup are documented here. Format follows [Keep a Ch

### Removed

- `/opengraph-image.alt.txt` and `/twitter-image.alt.txt` are gone (#1043). Next has read them as metadata only from beside the image in `src/app`, and since the share images moved to `public/` (#898) they were served as plain text files nothing used. The share images' alt text still comes from the `og:image:alt` and `twitter:image:alt` tags, unchanged.
- Seven columns from the first schema that nothing ever wrote or read are out of the Drizzle schema (#972): `participants.phone`, `workspace_members.invited_by_id` and `joined_at`, `slots.price_cents`, `signups.theme`, and `commitments.payment_id` and `notes_visibility`. So the REST API stops sending the keys that came from them, which were always the same value: commitment responses (sign up, and `GET`, `PATCH` and `DELETE /api/commitments/{id}`) lose `paymentId` (always null) and `notesVisibility` (always `"public"`); the organizer signup responses lose `theme` (always `{}`); and slot responses lose `priceCents` (always null). The public signup endpoint and the MCP tools never sent them. The sign-up request no longer takes a `phone` either: nothing stored it, so a request that still sends one is accepted with it ignored, rather than refused when it was under 4 or over 40 characters. The columns stay in the database for now, so a build still running during a deploy can select them; a later migration drops them.
- `participants.sessionTokenHash` is out of the Drizzle schema, so the app no longer reads or writes `participants.session_token_hash`. It was meant for recognising a participant on the same device, which the returning-participant cookie does instead, and no code ever set it, so it was always null. The column stays in the database for now, so a build still running during a deploy can select it; a later migration drops it.
- `signups.claimTokenHash` is out of the Drizzle schema, so the app no longer reads or writes `signups.claim_token_hash`. It came with the same never-built signup-claiming feature as `signup_claims` and was always null. The column stays in the database for now, so a build still running during a deploy can select it; a later migration drops it.
Expand Down
1 change: 0 additions & 1 deletion public/opengraph-image.alt.txt

This file was deleted.

1 change: 0 additions & 1 deletion public/twitter-image.alt.txt

This file was deleted.

4 changes: 3 additions & 1 deletion scripts/generate-og-image.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
* and `twitter-image.png` (Open Graph + Twitter card, 1200×630), committed under
* `public/`, and `apple-icon.png` (180×180 home-screen icon), under `src/app/`.
* The share images' size and alt text are also in `SHARE_IMAGE`
* (src/lib/seo.ts), which `seo.test.ts` checks against the files.
* (src/lib/seo.ts): `seo.test.ts` checks the size against the files, but
* nothing checks the alt text, so change it there when you change the words
* on the image.
*
* Uses `next/og` (Satori + resvg, both bundled with Next — no browser, no
* network, no extra deps) to render on-brand layouts to PNG buffers. NOT part
Expand Down
1 change: 0 additions & 1 deletion src/lib/seo.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,5 @@ describe('pageMetadata', () => {
// A PNG's IHDR chunk holds its width and height at bytes 16 and 20.
expect(png.readUInt32BE(16)).toBe(SHARE_IMAGE.width);
expect(png.readUInt32BE(20)).toBe(SHARE_IMAGE.height);
expect(readFileSync(path.join(dir, `${name}.alt.txt`), 'utf8').trim()).toBe(SHARE_IMAGE.alt);
});
});
4 changes: 2 additions & 2 deletions src/lib/seo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export const INDEXABLE_ROUTES: readonly string[] = [
];

// The share image files (`public/opengraph-image.png`, the same picture as
// `twitter-image.png`, made by `scripts/generate-og-image.mjs`) and their
// `.alt.txt`. `seo.test.ts` checks these against the files.
// `twitter-image.png`, made by `scripts/generate-og-image.mjs`). `seo.test.ts`
// checks the size against the files.
export const SHARE_IMAGE = {
width: 1200,
height: 630,
Expand Down
Loading