Skip to content

PR_26175_OWNER_054: apply corrected legal package#175

Merged
ToolboxAid merged 1 commit into
mainfrom
codex/pr-26175-owner-054-legal-corrected-package
Jun 25, 2026
Merged

PR_26175_OWNER_054: apply corrected legal package#175
ToolboxAid merged 1 commit into
mainfrom
codex/pr-26175-owner-054-legal-corrected-package

Conversation

@ToolboxAid

Copy link
Copy Markdown
Owner

Summary

  • Applies gfs_legal_corrected_package.zip legal content for the canonical public legal pages.
  • Adds legal/legal-nav.js as the single runtime SSoT for the legal side menu.
  • Removes the obsolete dynamic legal document renderer and placeholder disclaimer page.
  • Updates footer legal links/route aliases to canonical legal pages while preserving package compatibility redirects.
  • Updates the legal Playwright spec to validate the corrected static-content implementation.

Root Cause

The previous legal pages mixed placeholder static pages with a dynamic renderer (legal-document-page.js) that depended on unavailable published legal document registry content. That left approved legal copy absent and produced missing-document warnings. The side menus were duplicated and inconsistent across legal pages.

Validation

  • PASS: all files from the ZIP were extracted and read, including README.md, CODEX_FIX_INSTRUCTIONS.md, and every /legal/ file.
  • PASS: browser validation for all required pages confirmed navigation renders, selected page highlighting, aria-current="page", correct titles, document bodies, no console errors, and no Published legal document warnings.
  • PASS: npx playwright test tests/playwright/tools/RemainingLegalPages.spec.mjs --project=playwright --reporter=line --workers=1
  • PASS: node --test tests/dev-runtime/LegalFoundation.test.mjs
  • PASS: git diff --cached --check
  • PASS: runtime search found no references to the obsolete legal renderer/warning path under legal or assets/theme-v2.
  • PASS: repo-structured ZIP created at tmp/PR_26175_OWNER_054-legal-corrected-package_delta.zip.

Notes

CODEX_FIX_INSTRUCTIONS.md was treated as authoritative. The package HTML contained repeated <noscript> fallback nav blocks, so those were removed to satisfy the no-duplicate-navigation and SSoT requirements. Package markdown trailing-space hard breaks were normalized so repository whitespace checks pass; public approved HTML content remains intact.

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

Copy link
Copy Markdown

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: 0626d9b226

ℹ️ 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".

Comment thread legal/terms.html
<link rel="icon" href="/favicon.svg">
<link rel="stylesheet" href="../assets/theme-v2/css/theme.css">
<meta charset="utf-8">
<meta http-equiv="refresh" content="0; url=terms-of-service.html">

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 Update the stale Terms Playwright spec

With this meta-refresh in place, the still-present tests/playwright/tools/TermsOfServicePage.spec.mjs continues to visit /legal/terms.html and assert the old GameFoundryStudio title plus [data-legal-document-*] diagnostics/API-rendered content. When that spec runs, it lands on the new static Terms page and both Terms tests fail, so update or remove that spec as part of this migration.

Useful? React with 👍 / 👎.

Comment thread legal/disclaimer.html
@@ -1,50 +0,0 @@
<!doctype html>

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 Retarget disclaimer coverage before deleting the page

Deleting this page leaves tests/playwright/tools/EnvironmentBannerCoverage.spec.mjs:19 pointing at /legal/disclaimer.html for the legal-family coverage case. When that coverage spec runs, the request now returns the test server's 404 response instead of a shared-layout legal page, so either retarget the matrix to an existing legal URL or keep a compatibility redirect.

Useful? React with 👍 / 👎.

Comment thread legal/legal-nav.js
@@ -0,0 +1,37 @@
const LEGAL_NAV_ITEMS = [
{ href: "/legal/index.html", label: "Legal Overview" },

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 Use prefix-safe hrefs in legal nav

When the static site is served from a path prefix instead of the domain root, these absolute /legal/... hrefs send users to the host root and normalizeLegalPath(window.location.pathname) no longer matches them, so navigation and current-page highlighting break for the legal menu. The shared footer/header routing rewrites data-route links relative to the current page; generate these links the same way or make them relative.

Useful? React with 👍 / 👎.

Comment thread legal/dmca-policy.html
DMCA Agent / Legal Contact<br>
legal@gamefoundrystudio.com<br>
https://gamefoundrystudio.com</p>
<p>A physical mailing address should be added before relying on this policy for formal registered DMCA agent purposes.</p>

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 Remove the visible DMCA placeholder

This public DMCA page now ships an implementation note telling users that a physical mailing address still needs to be added before relying on the policy. Since the page is presented as the approved static legal copy, leaving this placeholder in the rendered policy can mislead copyright reporters and undermines the corrected legal package’s claim that no placeholder legal copy remains.

Useful? React with 👍 / 👎.

@ToolboxAid ToolboxAid merged commit 0c0f2eb into main Jun 25, 2026
1 check passed
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.

2 participants