Conversation
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
1 issue found across 7 files
Confidence score: 4/5
- This PR is likely safe to merge, with only a minor maintainability risk from duplicating the editor example slugs in
apps/web/src/app/sitemap.ts. - The main concern is drift between this hardcoded list and the real examples source, which could make sitemap entries stale or inconsistent over time.
- Given the low severity (4/10) and non-immediate runtime impact, this looks like a manageable follow-up rather than a merge blocker.
- Pay close attention to
apps/web/src/app/sitemap.ts- duplicated slug definitions can diverge from the examples page data.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="apps/web/src/app/sitemap.ts">
<violation number="1" location="apps/web/src/app/sitemap.ts:5">
P2: This adds a duplicated hardcoded slug list for editor examples, creating a second source of truth that can drift from the actual examples page.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
Move the hardcoded editor example sections/slugs into a shared editor-examples-data.ts module. Both page.tsx and sitemap.ts now import from this single source of truth, eliminating the duplicated slug list that could drift out of sync. Also fixes a missing 'custom-theme' slug that was present in the examples page but absent from the sitemap. Co-authored-by: Zeh Fernandes <ozehfernandes@gmail.com>
- Fix import ordering in sitemap.ts (organizeImports) - Fix line length formatting in llms-full.txt/route.ts Co-authored-by: Zeh Fernandes <ozehfernandes@gmail.com>
Summary by cubic
Make the site friendlier for agents and LLMs with structured data, plaintext endpoints, updated robots rules, and a richer sitemap. Improves discoverability of components and editor examples across tools.
New Features
Organization/WebSite(inlayout.tsx),CollectionPage/ItemList(on/components), andSoftwareSourceCode(on component category pages).GET /llms.txtandGET /llms-full.txtwith 24h caching.sitemap.xml: allow common LLM crawlers and include/templates, all component categories, and editor example routes.Refactors
editor-examples-data.tsused by both the page and sitemap to avoid drift; fixes the missingcustom-themeexample in the sitemap.llms-full.txtroute.Written for commit 21ab100. Summary will update on new commits.