Skip to content

feat(admin): add Sentry, PostHog, and Pylon deep-links to user profile#986

Draft
kilo-code-bot[bot] wants to merge 1 commit intomainfrom
session/agent_22f87a89-220a-4bc3-9814-01d0a6c37b5e
Draft

feat(admin): add Sentry, PostHog, and Pylon deep-links to user profile#986
kilo-code-bot[bot] wants to merge 1 commit intomainfrom
session/agent_22f87a89-220a-4bc3-9814-01d0a6c37b5e

Conversation

@kilo-code-bot
Copy link
Contributor

@kilo-code-bot kilo-code-bot bot commented Mar 10, 2026

Summary

  • Adds deep-link buttons for Sentry, PostHog, and Pylon to the admin user profile's External Links card, filtered by the user's email address.
  • Sentry links to issues filtered by user.email, using the existing SENTRY_ORG env var (fallback: kilo-code). PostHog links to the persons search using NEXT_PUBLIC_POSTHOG_PROJECT_ID (fallback: 141915). Pylon links directly to customer search.
  • Follows the existing visual pattern (color-coded pill buttons with external link icons, opening in new tabs).

Verification

  • pnpm typecheck — passed with no errors
  • Manually reviewed that the new links follow the same structure and styling as existing Stripe and HaveIBeenPwned links

Visual Changes

N/A — no screenshots available from CLI, but the change adds three new styled link buttons (red for Sentry, blue for PostHog, emerald for Pylon) to the existing External Links card on the admin user detail page.

Reviewer Notes

  • The Sentry org slug is read from process.env.SENTRY_ORG which is already configured in .env as kilo-code.
  • The PostHog project ID is read from process.env.NEXT_PUBLIC_POSTHOG_PROJECT_ID with a hardcoded fallback of 141915 (the project ID found in existing PostHog scripts). You may want to add NEXT_PUBLIC_POSTHOG_PROJECT_ID=141915 to .env for explicitness.
  • The Pylon URL uses a static app.usepylon.com domain with no configurable org/project since no Pylon config exists in the codebase yet.
  • All emails are encodeURIComponent-encoded in the URLs.

@kilo-code-bot
Copy link
Contributor Author

kilo-code-bot bot commented Mar 10, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (1 files)
  • src/app/admin/components/UserAdmin/UserAdminExternalLinks.tsx

Reviewed by gpt-5.4-20260305 · 207,089 tokens

@evanjacobson evanjacobson marked this pull request as draft March 10, 2026 16:41
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.

0 participants