feat(seo): add robots.ts allowing all crawlers + AI bots (#233)#290
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
3 tasks
bntvllnt
added a commit
that referenced
this pull request
May 10, 2026
## Problem PR #288 (the #266 a11y fix) added \`aria-controls\`, \`aria-haspopup\`, and a \`React.useId()\` hook to the combobox. Those additions pushed the \`forwardRef\` arrow function from 70 → 71 lines, tripping the project's \`max-lines-per-function\` rule (limit 70). Every PR branched from main after #288 inherits the lint failure on \`Quality Gates → Lint\` — currently blocking #290 (#233 robots) and #291 (#234 sitemap). ## Fix Extract the \`<PopoverContent>\` + \`<Command>\` + \`<CommandList>\` JSX into a local \`ComboboxListPanel\` component. Pure structural refactor — no runtime behavior change. Both consumers (\`packages/ui\` source and \`apps/registry/registry/default\` copy) kept aligned per #266 / #269. | Metric | Before | After | |---|---|---| | forwardRef arrow body | 71 lines | **52 lines** | | Block including signature + closing | 73 lines | 62 lines | ## Validation - Refactor preserves all ARIA attributes, refs, and event wiring. - Both files stay byte-identical in semantic structure. - Local \`wc -l\`: forwardRef block now 62 lines. ## Test plan - [ ] CI \`Quality Gates → Lint\` passes on this PR. - [ ] After merge, #290 and #291 re-run and lint passes. - [ ] Combobox visual stories unchanged. Refs #266 Co-authored-by: bntvllnt <bntvllnt@users.noreply.github.com>
Next.js MetadataRoute.Robots emitted from app/robots.ts so crawlers get explicit directives instead of an empty default. - User-agent: * → allow / - Explicit allow for AI crawlers: GPTBot, ClaudeBot, Claude-Web, anthropic-ai, PerplexityBot, Google-Extended, Applebot-Extended, CCBot, Bytespider, Amazonbot, cohere-ai - sitemap → https://ui.vllnt.ai/sitemap.xml (sitemap.ts shipped in parallel under #234) - host pinned to canonical site URL Site URL respects NEXT_PUBLIC_SITE_URL when set so preview deploys emit the right host. Closes #233
823f9d1 to
a1a4642
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
apps/registry/app/robots.tsso crawlers get explicit directives instead of the empty default.User-agent: *→allow: /GPTBot,ClaudeBot,Claude-Web,anthropic-ai,PerplexityBot,Google-Extended,Applebot-Extended,CCBot,Bytespider,Amazonbot,cohere-ai.sitemap→https://ui.vllnt.ai/sitemap.xml(companion seo: add app/sitemap.ts enumerating routes + 225 component pages #234, in flight).hostpinned to canonical URL.NEXT_PUBLIC_SITE_URLrespected so preview deploys emit the right host.Why explicit AI allows?
Per locked decision in epic #252, AI crawlers are allowed. Naming them explicitly:
Validation
next(MetadataRoute.Robots).Test plan
curl -s https://ui.vllnt.ai/robots.txtreturnsUser-agent: *block + 11 AI crawlers +Sitemap:line +Host:line.Sitemap:link resolves.Closes #233