Skip to content

feat(tools): render fact strip on tool page - #6518

Open
rebelchris wants to merge 1 commit into
mainfrom
feat/tool-facts
Open

feat(tools): render fact strip on tool page#6518
rebelchris wants to merge 1 commit into
mainfrom
feat/tool-facts

Conversation

@rebelchris

@rebelchris rebelchris commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds getToolFacts(slug) to packages/shared/src/graphql/tools.ts, fetched as a separate query in getStaticProps with .catch(() => []) — same deploy-window pattern as officialSource/claimedBy, so a not-yet-deployed facts field can't 500 the page.
  • Renders the description fact as a one-line subtitle under the H1 (secondary color, single line).
  • Renders a quiet fact strip under the hero chip row (only when pricingModel, license, or integrations exists): Pricing · Freemium, License · MIT, Integrates with · X, Y, Z. Enum values are human-cased (open-coreOpen core); each value links to its sourceUrl when present.
  • Adds a provenance/correction caption under the strip: From public docs · checked {relative date} · See something wrong?, using the newest verifiedAt across facts and the existing publishTimeRelativeShort helper. The correction link mailtos support@daily.dev (existing app-wide support address) with a prefilled subject Tool page correction: {tool title}.
  • No new keys render as "Unknown" — only facts the API actually returns are shown.

Pairs with daily-api feat/tool-facts (API deploys first; this page tolerates the deploy window since facts is fetched separately and swallowed on error).

Test plan

  • node ./scripts/typecheck-strict-changed.js passes
  • eslint --max-warnings=0 clean on both changed files
  • pnpm --filter shared test — only the pre-existing 3 locale failures in numberFormat.spec.ts
  • pnpm --filter webapp test — only the pre-existing WorldGuideSheet.spec.tsx failure
  • NEXT_PUBLIC_API_URL=https://api.daily.dev pnpm --filter webapp build succeeds against the current production API, which lacks facts (deploy-window acceptance test)
  • Screenshots (left to Chris)

🤖 Generated with Claude Code

Preview domain

https://feat-tool-facts.preview.app.daily.dev

Fetches DatasetTool.facts via a separate query (same deploy-window
pattern as officialSource/claimedBy) so the not-yet-deployed API can't
500 the page. Renders the description fact as a one-line subtitle
under the H1, a quiet pricing/license/integrations strip under the
hero chip row with source links, and a provenance caption ("checked
{relative date} · See something wrong?") that mailtos support@daily.dev
for corrections.

Pairs with daily-api feat/tool-facts (deploys first).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
daily-webapp Ready Ready Preview Aug 24, 2026 12:28pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
storybook Ignored Ignored Aug 24, 2026 12:28pm

Request Review

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