Repository navigation
Conversation
…ct JSON-LD - public/llms.txt: UVAI definition, disambiguation from other UVAI tools, API and pricing facts - sitemap: add /docs/api, /privacy, /terms - pricing: title, description and canonical via pricing/layout.tsx (page is a client component) - ProductJsonLd: Organization + SoftwareApplication with Workflow Pro offers from checkout-config, on home and pricing - tests guarding sitemap, pricing metadata, JSON-LD prices and llms.txt facts
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
✅ E2E Test Results: ALL TESTS PASSED
Test Output |
|
Please add a See governance: #898 |
|
@copilot resolve the merge conflicts on this branch. |
There was a problem hiding this comment.
🟡 Changes recommended
The sitemap omits the indexable /projects page, and API guidance can mislead clients about extraction readiness, cache reuse, and rate limits.
4 open issues
What changed in this PR
Improves discovery of UVAI’s Next.js product site by crawlers and answer engines.
Changes:
- Publishes product and API guidance in
llms.txtand expands sitemap coverage. - Adds pricing metadata and reusable Organization, SoftwareApplication, and Workflow Pro offer JSON-LD.
- Adds regression checks for discovery content and price consistency.
| File | Description |
|---|---|
apps/web/src/components/ProductJsonLd.tsx |
Builds product, organization, and offer structured data. |
apps/web/src/app/sitemap.ts |
Adds API documentation and legal pages. |
apps/web/src/app/pricing/layout.tsx |
Adds pricing metadata, canonical URL, and JSON-LD. |
apps/web/src/app/page.tsx |
Renders product JSON-LD on the homepage. |
apps/web/src/app/__tests__/aeo-discovery.test.ts |
Checks sitemap, metadata, prices, and discovery content. |
apps/web/public/llms.txt |
Documents UVAI, API usage, limits, and source links. |
Review effort: Max
| ## API (for developers and coding agents) | ||
|
|
||
| - [API reference](https://uvai.io/docs/api) | ||
| - `POST https://uvai.io/api/video/pack` with `{"url": "https://www.youtube.com/watch?v=VIDEO_ID"}` starts a Video Pack. A new extraction is subject to quotas: HTTP 402 means the free limit was reached (sign in or upgrade), HTTP 429 means a daily limit or the global daily capacity was reached. An already-extracted pack is returned from cache. No API key is needed. |
There was a problem hiding this comment.
@copilot Fix the code for all comments in this review comment.
When a review comment includes a suggested change, apply the suggestion exactly.
Do not make changes beyond what is described in the linked review comment.
There was a problem hiding this comment.
Fixed in 73ea99e: cache reuse, retry behavior, and temporary failures are documented.
|
|
||
| - [API reference](https://uvai.io/docs/api) | ||
| - `POST https://uvai.io/api/video/pack` with `{"url": "https://www.youtube.com/watch?v=VIDEO_ID"}` starts a Video Pack. A new extraction is subject to quotas: HTTP 402 means the free limit was reached (sign in or upgrade), HTTP 429 means a daily limit or the global daily capacity was reached. An already-extracted pack is returned from cache. No API key is needed. | ||
| - `GET https://uvai.io/api/video/pack?video_id=VIDEO_ID` polls a pack: HTTP 202 while processing, HTTP 200 with the pack when ready |
There was a problem hiding this comment.
@copilot Fix the code for all comments in this review comment.
When a review comment includes a suggested change, apply the suggestion exactly.
Do not make changes beyond what is described in the linked review comment.
There was a problem hiding this comment.
Fixed in 73ea99e: polling guidance distinguishes success, stored errors, and missing packs.
| return ( | ||
| <script | ||
| type="application/ld+json" | ||
| dangerouslySetInnerHTML={{ __html: JSON.stringify(buildProductJsonLd()) }} |
There was a problem hiding this comment.
@copilot Fix the code for all comments in this review comment.
When a review comment includes a suggested change, apply the suggestion exactly.
Do not make changes beyond what is described in the linked review comment.
There was a problem hiding this comment.
Fixed in 73ea99e: JSON-LD now escapes <, with a script-breakout regression test.
|
One or more custom setup steps configured for this repository failed during this Copilot code review run: Setup steps run before each review. If the review above is missing context, or no review was posted at all, the failing step above may be the cause. See the workflow run for failure details, fix your setup steps configuration, and re-request a review. Note You can configure setup steps for Copilot code review separately from Copilot cloud agent with a |
…pricing-meta # Conflicts: # apps/web/public/llms.txt # apps/web/src/app/page.tsx Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
✅ E2E Test Results: ALL TESTS PASSED
Test Output |
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
✅ E2E Test Results: ALL TESTS PASSED
Test Output |
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
✅ E2E Test Results: ALL TESTS PASSED
Test Output |
🔍 PR Validation |
✅ E2E Test Results: ALL TESTS PASSED
Test Output |


Canonical issue
Closes #
Outcome
UVAI is easier for answer engines and crawlers to identify and cite: a served
/llms.txt, complete sitemap, proper pricing-page metadata, and Organization / SoftwareApplication JSON-LD.Scope
apps/web/public/llms.txt(served at uvai.io/llms.txt): UVAI definition, API quickstart, limits, plus a line that this is not the "UVAI" video-variation tool at uvai.app or uvai.dev.sitemap.ts: add/docs/api,/privacy,/terms(routes extracted to an exportedSITEMAP_ROUTES).pricing/layout.tsx: title, description, canonical (pricing/page.tsxis a client component and cannot export metadata; the page file is untouched).ProductJsonLd: Organization + SoftwareApplication with Workflow Pro monthly/annual Offers, prices read fromcheckout-config; rendered on/and/pricing.src/app/__tests__/aeo-discovery.test.ts: guards sitemap, pricing metadata, JSON-LD prices and llms.txt facts.StructuredData(layout.test.tsxrequires exactly one HowTo there); Ship/Maintain offers (no checkout, per AGENTS.md).Risk
Verification
Run on this head with
KV_REST_API_*unset (see note):npm run lint(apps/web): passnpm run type-check: passnpx vitest run: 187 files, 1768 passed, 28 skippednext build: pass; built/pricingHTML has titlePricing | UVAI, canonicalhttps://uvai.io/pricing, and Organization/SoftwareApplication/Offer JSON-LD alongside the existing HowTo;sitemap.xmllists 6 URLs.Note: with
KV_REST_API_URL/TOKENexported, 12 existing test files fail onmaintoo (they hit the live pack store); unrelated to this PR.Production evidence
Not applicable until deployed; check a Vercel preview for
/llms.txt,/sitemap.xmland/pricing.Agent handoff