Skip to content

fix(site): remove static release labels#4

Merged
t3chn merged 1 commit into
mainfrom
codex/site-remove-static-release-labels
May 4, 2026
Merged

fix(site): remove static release labels#4
t3chn merged 1 commit into
mainfrom
codex/site-remove-static-release-labels

Conversation

@t3chn
Copy link
Copy Markdown
Contributor

@t3chn t3chn commented May 4, 2026

Summary

  • Remove hard-coded site release/version labels from the landing page.
  • Remove stale social image metadata and delete the old og-image asset that contained prior release text.
  • Add a CI guard so site release metadata stays dynamic or absent.

Issue: N/A

Test plan

  • node scripts/check-site-release-metadata.js
  • git diff --cached --check
  • rg check against site files for stale version/alpha/social-image markers

Risk

  • Social previews no longer use a large static image until a generated versionless image is added.

Why:
- mycel.run was still serving hard-coded release labels, and the site source still had manually maintained version metadata and a stale social image.
- The site should not require manual release/version text updates when package badges can reflect live package state.

What changed:
- Remove the static hero release badge, JSON-LD softwareVersion, alpha notice, and social image metadata from index.html.
- Delete the stale og-image.png that contained old release labels.
- Add a site metadata guard and GitHub Actions check to prevent reintroducing hard-coded release labels.

Testing:
- node scripts/check-site-release-metadata.js
- git diff --cached --check
- rg check against site files for stale version/alpha/social-image markers

Risk:
- narrow - social previews no longer use a large static image until a generated versionless image is added.
@t3chn t3chn merged commit c8a10b9 into main May 4, 2026
1 check passed
@t3chn t3chn deleted the codex/site-remove-static-release-labels branch May 4, 2026 08:17
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 619bd4d573

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


const html = fs.readFileSync("index.html", "utf8");
const jsonLd = html.match(
/<script type="application\/ld\+json">\n([\s\S]*?)\n<\/script>/,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Make JSON-LD matcher tolerate CRLF line endings

The regex used to extract the JSON-LD block hard-codes \n delimiters, so it fails when index.html is saved with CRLF (common on Windows checkouts), causing CI to throw index.html is missing JSON-LD metadata even though the script tag exists. This makes the new site guard flaky across contributor environments and can block unrelated PRs; matching \r?\n (or parsing the script block without newline assumptions) avoids that false failure.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant