Skip to content

Conversation

@SanidhyaMadheshia
Copy link
Contributor

@SanidhyaMadheshia SanidhyaMadheshia commented Sep 7, 2025

Fix Broken Links on Ambassadors & Events Pages

Description
This PR fixes two broken links on the AsyncAPI website:

Resolves issue(s)
Resolves : #4382
Resolves : #4384

Ambassadors Page

Fixed the broken "Become AsyncAPI Ambassador" button.
Previously pointed to an outdated/non-existent path.
Updated to the correct Ambassador Program page.

Events Page

Fixed the broken "Read FAQ" link.
Previously pointed to an outdated/non-existent path.
Updated to the correct page.

Old links:

https://github.com/asyncapi/community/blob/master/MEETINGS_ORGANIZATION.md
https://github.com/asyncapi/community/blob/master/docs/050-mentorship-program/ambassador-program/AMBASSADOR_PROGRAM.md

Updated to:

https://github.com/asyncapi/community/blob/master/docs/060-meetings-and-communication/MEETINGS_ORGANIZATION.md
https://github.com/asyncapi/community/blob/master/docs/020-governance-and-policies/AMBASSADOR_PROGRAM.md

Preview

Screenshot from 2025-09-07 12-31-46

On Clicking now goes to

Screenshot from 2025-09-07 12-31-55

and

image

now goes to

image

Summary by CodeRabbit

  • Bug Fixes

    • Corrected the “Become an AsyncAPI Ambassador” button link to the latest governance and policies documentation.
    • Updated the Events page FAQ link to the correct documentation path. Both changes ensure users reach the intended resources without altering UI or behavior.
  • Chores

    • Updated internal TypeScript environment references to improve development tooling reliability.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 7, 2025

Walkthrough

Adds an ambient TypeScript reference to generated route types and updates two community page links to new document locations. No runtime logic or component behavior changes.

Changes

Cohort / File(s) Summary
TypeScript ambient types
next-env.d.ts
Adds reference to ./.next/types/routes.d.ts alongside existing Next.js type references.
Community page link updates
pages/community/ambassadors/index.tsx, pages/community/events/index.tsx
Updates hrefs to new document paths: Ambassador program and meetings organization docs moved to new locations.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Suggested labels

ready-to-merge

Suggested reviewers

  • derberg
  • akshatnema
  • anshgoyalevil
  • Mayaleeeee
  • sambhavgupta0705
  • devilkiller-ag
  • vishvamsinh28

Poem

I hop through routes with gentle might,
A nibble of types to make things right.
Two links now burrow to fresher ground,
Docs relocated, neatly found.
Thump-thump—ship it, clean and bright! 🥕✨


📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 0f74829 and 473e925.

📒 Files selected for processing (3)
  • next-env.d.ts (1 hunks)
  • pages/community/ambassadors/index.tsx (1 hunks)
  • pages/community/events/index.tsx (1 hunks)
⏰ Context from checks skipped due to timeout of 180000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Test NodeJS PR - windows-latest
  • GitHub Check: Lighthouse CI
🔇 Additional comments (3)
pages/community/ambassadors/index.tsx (1)

67-67: Link updated correctly to new documentation path.

The Ambassador Program link has been properly updated to reflect the new document location in the community repository structure.

pages/community/events/index.tsx (1)

54-54: Link updated correctly to new documentation path.

The MEETINGS_ORGANIZATION.md link has been properly updated to reflect the new document location in the community repository structure.

next-env.d.ts (1)

3-3: Verify the purpose of adding the routes type reference.

While the addition of this TypeScript reference for generated route types is syntactically correct, it's unclear why this change is included in a PR focused on fixing broken links. This ambient reference typically relates to Next.js's type-safe routing features.

Can you clarify if this change is related to the link fixes or if it should be part of a separate commit?

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@netlify
Copy link

netlify bot commented Sep 7, 2025

Deploy Preview for asyncapi-website ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 473e925
🔍 Latest deploy log https://app.netlify.com/projects/asyncapi-website/deploys/68bd2f7601b5d50008452190
😎 Deploy Preview https://deploy-preview-4394--asyncapi-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov
Copy link

codecov bot commented Sep 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (0f74829) to head (473e925).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #4394   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           22        22           
  Lines          778       778           
  Branches       144       144           
=========================================
  Hits           778       778           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@asyncapi-bot
Copy link
Contributor

⚡️ Lighthouse report for the changes in this PR:

Category Score
🔴 Performance 38
🟢 Accessibility 98
🟢 Best practices 92
🟢 SEO 100
🔴 PWA 33

Lighthouse ran on https://deploy-preview-4394--asyncapi-website.netlify.app/

@SanidhyaMadheshia SanidhyaMadheshia changed the title fix: Broken "Become AsyncAPI Ambassador" on Ambassadors page and Brok… fix(events): update broken Become Ambassador link on Ambassadors page and broken FAQs link on Events Page Sep 7, 2025
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (3)
next-env.d.ts (1)

3-3: Remove manual .next/types/routes.d.ts reference

  • Delete line 3 in next-env.d.ts (/// <reference path="./.next/types/routes.d.ts" />)
  • Instead enable the built-in experimental typedRoutes: true flag in your Next.js config (v15.5.2+) or install/configure an official typed-routes plugin to generate route types reliably
  • If you opt to keep a manual reference, ensure your CI pipeline runs next build (or otherwise generates .next/types/routes.d.ts) before type-checking
  • Update the PR title’s subject to start with a lowercase verb for Conventional Commits compliance
pages/community/events/index.tsx (1)

54-56: Switch GitHub branch segment to HEAD for resilience

Using blob/HEAD/... avoids future breakage if the default branch renames from master.

Apply:

-                href='https://github.com/asyncapi/community/blob/master/docs/060-meetings-and-communication/MEETINGS_ORGANIZATION.md'
+                href='https://github.com/asyncapi/community/blob/HEAD/docs/060-meetings-and-communication/MEETINGS_ORGANIZATION.md'

If TextLink doesn’t automatically set rel, consider adding rel="noopener noreferrer" alongside target="_blank" for security.

pages/community/ambassadors/index.tsx (1)

64-69: Great fix; also prefer HEAD to decouple from branch name

The updated path resolves the broken link. For future-proofing, use blob/HEAD/... instead of blob/master/....

-              href='https://github.com/asyncapi/community/blob/master/docs/020-governance-and-policies/AMBASSADOR_PROGRAM.md'
+              href='https://github.com/asyncapi/community/blob/HEAD/docs/020-governance-and-policies/AMBASSADOR_PROGRAM.md'

Optional: For consistency, consider updating other GitHub links on this page (e.g., the later “Become an Ambassador now” button) to blob/HEAD as well.

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 0f74829 and 473e925.

📒 Files selected for processing (3)
  • next-env.d.ts (1 hunks)
  • pages/community/ambassadors/index.tsx (1 hunks)
  • pages/community/events/index.tsx (1 hunks)

@sambhavgupta0705 sambhavgupta0705 merged commit cf11f17 into asyncapi:master Sep 7, 2025
35 of 38 checks passed
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.

[BUG] Broken "Become AsyncAPI Ambassador" link leads to 404 [BUG] Broken FAQ link on Events page leads to 404 on GitHub

3 participants