Skip to content

Conversation

@iamrajjoshi
Copy link
Contributor

folks are often confused about if they should use the Github Integration or the Github Enterprise Integration. to try to combat this, i added a component (based off of CreateGitHubAppForm) which parses the domain the user inputs and tells them what integration to install

Screen.Recording.2025-06-11.at.9.20.09.PM.mov

@iamrajjoshi iamrajjoshi self-assigned this Jun 12, 2025
@vercel
Copy link

vercel bot commented Jun 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
develop-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 17, 2025 8:30pm
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 17, 2025 8:30pm

@codecov
Copy link

codecov bot commented Jun 12, 2025

Bundle Report

Changes will increase total bundle size by 9.56kB (0.05%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 10.92MB 2.97kB (0.03%) ⬆️
sentry-docs-client-array-push 9.77MB 6.59kB (0.07%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: sentry-docs-client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
static/chunks/pages/_app-*.js -3 bytes 873.24kB -0.0%
static/css/*.css 1.51kB 741.17kB 0.2%
static/chunks/7750-*.js -3 bytes 401.83kB -0.0%
server/app/api/ip-*.js 644 bytes 259.13kB 0.25%
server/app/_not-*.js 644 bytes 259.12kB 0.25%
server/app/[[...path]]/page_client-*.js 644 bytes 259.08kB 0.25%
server/app/platform-*.js 644 bytes 244.62kB 0.26%
static/chunks/app/[[...path]]/page-*.js 2.51kB 82.77kB 3.12%
server/middleware-*.js 5.55kB 6.55kB 555.3% ⚠️
server/middleware-*.js -5.55kB 1.0kB -84.74%
static/wfQAaSroPzDZDj-*.js (New) 77 bytes 77 bytes 100.0% 🚀
static/wfQAaSroPzDZDj-*.js (New) 616 bytes 616 bytes 100.0% 🚀
static/2UYMZher5x9PrVjtFWl9V/_buildManifest.js (Deleted) -616 bytes 0 bytes -100.0% 🗑️
static/2UYMZher5x9PrVjtFWl9V/_ssgManifest.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️

Files in static/chunks/app/[[...path]]/page-*.js:

  • ./src/components/githubDomainChecker.tsx → Total Size: 6.29kB
view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
1729.js -3 bytes 1.64MB -0.0%
../instrumentation.js -3 bytes 973.36kB -0.0%
9523.js -3 bytes 949.31kB -0.0%
../app/[[...path]]/page.js 2.98kB 590.24kB 0.51%

Files in ../app/[[...path]]/page.js:

  • ./src/components/githubDomainChecker.tsx → Total Size: 6.2kB

  • ./src/mdxComponents.ts → Total Size: 3.7kB

  • ./src/components/githubDomainChecker.tsx → Total Size: 499 bytes

App Routes Affected:

App Route Size Change Total Size Change (%)
/[[...path]] 2.98kB 3.14MB 0.09%

@coolguyzone
Copy link
Contributor

Should the form input darken in dark mode, similar to the search input at the top of the page?

Screenshot 2025-06-12 at 1 37 06 PM

Copy link
Member

@leeandher leeandher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is cool! hopefully it makes things less confusing

Comment on lines 11 to 13
const isGitHubCom =
domain.toLowerCase().trim() === 'github.com' ||
domain.toLowerCase().trim() === 'https://github.com';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think maybe we should relax this a bit, if I add my GH user it recommends the wrong installation. probably user error by adding my username after but still!

image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i relazed this just a bit so it checks if the input starts with github.com

<div className="text-sm font-medium mb-2">Recommended Installation:</div>
{isGitHubCom ? (
<div className="text-green-700 bg-green-50 dark:text-green-300 dark:bg-green-900/30 p-3 rounded-md">
<div className="mb-2">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I dont think the margin here is necessary, it makes for uneven spacing.
image

</div>
) : (
<div className="text-blue-700 bg-blue-50 dark:text-blue-300 dark:bg-blue-900/30 p-3 rounded-md">
<div className="mb-2">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here neither

@iamrajjoshi iamrajjoshi enabled auto-merge (squash) June 17, 2025 20:14
@iamrajjoshi iamrajjoshi merged commit 93cd70c into master Jun 17, 2025
14 checks passed
@iamrajjoshi iamrajjoshi deleted the raj/gh-domain-checker branch June 17, 2025 20:30
antonpirker pushed a commit that referenced this pull request Jun 24, 2025
Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
@github-actions github-actions bot locked and limited conversation to collaborators Jul 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants