Skip to content

Give the /tools pages a #short-answer section and drop their exemption - #191

Merged
Programcode merged 1 commit into
mainfrom
seo/tools-short-answer
Oct 22, 2026
Merged

Programcode merged 1 commit into
mainfrom
seo/tools-short-answer

Conversation

@Programcode

@Programcode Programcode commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

The five /tools pages from #181 each open with a #short-answer section now. The first H2 is a question with a short, direct answer, in English, Spanish and Hungarian. This PR also removes the temporary /tools exemption from the site check (added in a1232d0, squashed into #156) and its note in docs/operations.md.

What changed

  • ToolPageLayout takes a required shortAnswer prop and renders it under the intro, before the tool. It has to come first because the timer, the calculator and the hub cards contain H2s of their own.
  • The copy for all five pages lives in src/locales/tools/{en,es,hu}.json under shortAnswer. The motion count is interpolated from PRACTICE_MOTIONS.length, so it stays correct.
  • On the four tool pages the short answer is also the first entry in the FAQPage JSON-LD, as on the guide pages. The hub has no FAQPage and still doesn't.
  • scripts/check-site.mjs and docs/operations.md are back to exempting only /terms and /privacy.

Nothing touches SQL, migrations or Edge Functions.

Verification

GitHub Actions is out of minutes, so these are local results on 98fdc379, not CI:

  • npm run verify exited 0: docs check, lint (eslint, knip, repo rules), typecheck, unit 404/404, collaboration 30/30, edge 394/394, build, service-worker test, smoke e2e 42 passed and 1 flaky. The flaky test, e2e/startup-shell.spec.ts (/app mounting before Jam), passed on retry and doesn't touch /tools.
  • check-site with the exemption removed: 47 HTML files, sitemap and llms.txt resolve; no problems. Every built dist/tools/**/index.html has <h2 id="short-answer"> as its first H2.
  • In the browser, against the production build: all five pages in en, es and hu, at desktop 1280×900 and on Pixel 7. That's 30 checks, and each found #short-answer as the first H2, ending in ?, with the translated answer and no raw keys. The only console errors came from /_vercel/insights and /_vercel/speed-insights, which exist only on Vercel's hosting.

The H1, intro and article on these pages are still hard-coded English, as they were in #181. Only the short answer and the tool UI change with the language.

🤖 Generated with Claude Code

Desktop, English: debate timer

Desktop, Spanish: tools hub

Mobile, Hungarian: speech time calculator

Each free tool page and the /tools hub now opens with a question H2
(#short-answer) and a short, direct answer, in English, Spanish and
Hungarian. On the four tool pages that answer also leads the FAQPage
JSON-LD, the same way the guide pages do.

With every indexed page answering a question, the temporary /tools
exemption in scripts/check-site.mjs and its note in docs/operations.md
are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 22, 2026 16:29
@coderabbitai

coderabbitai Bot commented Oct 22, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

Next included review available in 24 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
📥 Commits

Reviewing files that changed from the base of the PR and between a238ba6 and 98fdc37.

📒 Files selected for processing: 11
  • docs/operations.md
  • scripts/check-site.mjs
  • src/components/free-tools/ToolPageLayout.tsx
  • src/locales/tools/en.json
  • src/locales/tools/es.json
  • src/locales/tools/hu.json
  • src/pages/tools/DebateTimerToolPage.tsx
  • src/pages/tools/FlowSheetToolPage.tsx
  • src/pages/tools/MotionGeneratorToolPage.tsx
  • src/pages/tools/SpeechTimeCalculatorToolPage.tsx
  • src/pages/tools/ToolsHubPage.tsx
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Note

🎁 Summarized by CodeRabbit Free

Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Essentials by visiting https://app.coderabbit.ai/settings/billing.

Comment @coderabbitai help to get the list of available commands.

@Programcode
Programcode merged commit 298fbc1 into main Oct 22, 2026
3 of 10 checks passed

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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