Repository navigation
fix(home): Fix broken agent integration links on homepage - #19807
Conversation
Mastra, Eve, and Flue moved to standalone JavaScript guides, and Vercel AI lives under /configuration/integrations/, so the homepage agent cards sent users through /platform-redirect/ to paths no platform has, which renders "We couldn't find documentation for this path on any platform". Link Mastra, Eve, and Flue directly to their guides and point Vercel AI at the JS integration page.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Without a stored platform preference, the Vercel AI and OpenAI cards landed on the platform picker. Add a defaultPlatform fallback to PreferredPlatformLink and use javascript.node for both cards. Point OpenAI at the JS integration page instead of the Python-only /agent-tracing/openai/.
| to="/configuration/integrations/openai/" | ||
| defaultPlatform="javascript.node" |
There was a problem hiding this comment.
Note to reviewers: For this one we also could link to the python side by default but I figured JS in general is a bigger target audience and defaulted to node. Happy to change tho.
|
The plan checks homepage loads, destination guide loads, JavaScript 404s, and client errors. An issue escalates when guide loads stay flat and 404s rise. An issue also escalates when homepage loads drop. Monitoring in Services: Mention PlanWhat changedHomepage Mastra, Eve, and Flue cards now open the JavaScript standalone guides. Vercel AI and OpenAI cards now use platform-redirect with a JavaScript Node default. The change is live after a sentry-docs deploy. Home renders only on the user docs site. RiskBroken guide hrefs send readers to 404 pages. A Home render failure hides the docs homepage. A bad default platform leaves Vercel AI and OpenAI on the empty redirect warning. Intended effectThe new cards work when the three standalone guides gain loads relative to the homepage.
Regression watchA bad Home render drops homepage loads. A bad href raises JavaScript 404s. A bad default platform raises platform-redirect pageloads. Client errors on the docs catch-all would show a Home crash.
Not observableHomepage card clicks have no metric, so intended effect is destination volume only. The |
The platform selector looks up guide icons as `javascript-flue`. That key was missing from PLATFORM_TO_ICON, so it fell back to the JavaScript icon.
<!-- Keep the urgency section so automation can prioritize this PR. You may delete other sections you don't need. --> ## DESCRIBE YOUR PR The agent integration cards at the bottom of the docs homepage linked to `/platform-redirect/` paths that no longer exist in the platform docs tree, so the redirect page could not find documentation for Mastra, Eve, Flue, or Vercel AI. OpenAI also sent users to its Python-only docs path. - Link Mastra, Eve, and Flue directly to their standalone JavaScript guides. - Route Vercel AI and OpenAI through their current integration paths. - When no platform preference has been saved, default Vercel AI and OpenAI to JavaScript/Node. A saved platform preference continues to take precedence. `eslint` and `prettier` pass for the changed files. `tsc --noEmit` shows no new errors in the changed files; it reports an existing missing SVG module type because Next-generated types are unavailable in this environment. The Node integration redirects were verified to resolve successfully. The full build and visual QA have not been run. ## IS YOUR CHANGE URGENT? Help us prioritize incoming PRs by letting us know when the change needs to go live. Select exactly one option. For deadlines, replace `YYYY-MM-DD` with the due date. You can update this information later by editing the PR description. - [ ] Urgent deadline (GA date, etc.): YYYY-MM-DD - [ ] Other deadline: YYYY-MM-DD - [x] No deadline: Not urgent, can wait up to 1 week+ ## SLA - Teamwork makes the dream work, so please add a reviewer to your PRs. - Please give the docs team up to 1 week to review your PR unless you've supplied a deadline. Thanks in advance for your help! ## PRE-MERGE CHECKLIST _Make sure you've checked the following before merging your changes:_ - [ ] Checked Vercel preview for correctness, including links - [ ] PR was reviewed and approved by any necessary SMEs (subject matter experts) - [ ] PR was reviewed and approved by a member of the [Sentry docs team](https://github.com/orgs/getsentry/teams/docs) ## LEGAL BOILERPLATE <!-- Sentry employees and contractors can delete or ignore this section. --> Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms. ## EXTRA RESOURCES - [Sentry Docs contributor guide](https://docs.sentry.io/contributing/) <!-- junior-request-attribution:start --> via **Andrei Borza**. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AC0BKK9QLCUA%3A1791208275.194579 --> -- [View Junior Session](https://junior-prod.sentry.dev/conversations/slack%3AC0BKK9QLCUA%3A1791208275.194579) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0BKK9QLCUA%3A1791208275.194579/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Andrei <168741329+andreiborza@users.noreply.github.com>
|
Verified in
|
DESCRIBE YOUR PR
The agent integration cards at the bottom of the docs homepage linked to
/platform-redirect/paths that no longer exist in the platform docs tree, so the redirect page could not find documentation for Mastra, Eve, Flue, or Vercel AI. OpenAI also sent users to its Python-only docs path.eslintandprettierpass for the changed files.tsc --noEmitshows no new errors in the changed files; it reports an existing missing SVG module type because Next-generated types are unavailable in this environment. The Node integration redirects were verified to resolve successfully. The full build and visual QA have not been run.IS YOUR CHANGE URGENT?
Help us prioritize incoming PRs by letting us know when the change needs to go live.
Select exactly one option. For deadlines, replace
YYYY-MM-DDwith the due date. You can update this information later by editing the PR description.SLA
Thanks in advance for your help!
PRE-MERGE CHECKLIST
Make sure you've checked the following before merging your changes:
LEGAL BOILERPLATE
Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.
EXTRA RESOURCES
via Andrei Borza.
--
View Junior Session [Sentry]