diff --git a/.github/workflows/autocomment-iss-raise.yml b/.github/workflows/autocomment-iss-raise.yml index a2f2dad8..623bdfd5 100644 --- a/.github/workflows/autocomment-iss-raise.yml +++ b/.github/workflows/autocomment-iss-raise.yml @@ -21,6 +21,6 @@ jobs: issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: "Thanks for opening this issue! πŸŽ‰ We'll look into it as soon as possible, estimated time for response is 5–8 hrs. \n\n Don't raise PR unless assigned to you.\n\nIn the meantime, please provide all necessary details and context to your issue β€” screenshots or videos of your changes help speed up the review and assignment. If you have questions, reach out to [LinkedIn](https://www.linkedin.com/in/sanjay-k-v/). Your contributions are highly appreciated!😊 \n\n Note: I maintain the repo issue every day twice at 8:00 AM IST and 9:00 PM IST. If your issue goes stale for more than one day, you can tag and comment on this same issue by tagging **@sanjay-kv**.\n\nWe are here to help you on this journey of open source. Consistent contributions are eligible for sponsorship πŸ’° \n\n 🎁 check our list of amazing people we sponsored so far: [GitHub Sponsorship](https://www.recodehive.com/our-sponsors). ✨ \n\n πŸ“šResources which can help you know more about Github πŸ‘‡πŸ» \n\n 1. End to End GitHub Beginner Playlist: [GitHub Playlist](https://www.youtube.com/watch?v=GrTV59Y84S8&list=PLrLTYhoDFx-kiuFiGQqVpYYZ56pIhUW63&ab_channel=RecodeHive). \n\n 2. Build your GitHub Profile: [GitHub Profile Optimisation](https://www.youtube.com/watch?v=w1zFVtthiYc&list=PLrLTYhoDFx-lTIzox5agrJgd9QbKHKPOI&ab_channel=RecodeHive). \n\n 3. GitHub Handbook for dummies: [GitHub Blog for Beginners.](https://www.recodehive.com/docs/GitHub/intro-github)" + body: "Thanks for opening this issue! πŸŽ‰ We'll look into it as soon as possible, estimated time for response is 5–8 hrs. \n\n Don't raise PR unless assigned to you.\n\nIn the meantime, please provide all necessary details and context to your issue β€” screenshots or videos of your changes help speed up the review and assignment. If you have questions, reach out to [LinkedIn](https://www.linkedin.com/in/sanjay-k-v/). Your contributions are highly appreciated!😊 \n\n Note: I maintain the repo issue every day twice at 8:00 AM IST and 9:00 PM IST. If your issue goes stale for more than one day, you can tag and comment on this same issue by tagging **@sanjay-kv**.\n\nWe are here to help you on this journey of open source. Consistent contributions are eligible for sponsorship πŸ’° \n\n 🎁 check our list of amazing people we sponsored so far: [GitHub Sponsorship](https://www.recodehive.com/our-sponsors/#people-we-sponsored). ✨ \n\n πŸ“šResources which can help you know more about Github πŸ‘‡πŸ» \n\n 1. End to End GitHub Beginner Playlist: [GitHub Playlist](https://www.youtube.com/watch?v=GrTV59Y84S8&list=PLrLTYhoDFx-kiuFiGQqVpYYZ56pIhUW63&ab_channel=RecodeHive). \n\n 2. Build your GitHub Profile: [GitHub Profile Optimisation](https://www.youtube.com/watch?v=w1zFVtthiYc&list=PLrLTYhoDFx-lTIzox5agrJgd9QbKHKPOI&ab_channel=RecodeHive). \n\n 3. GitHub Handbook for dummies: [GitHub Blog for Beginners.](https://www.recodehive.com/docs/GitHub/intro-github)" }); diff --git a/.github/workflows/autocomment-pr-raise.yml b/.github/workflows/autocomment-pr-raise.yml index a32c4ae8..f28e2191 100644 --- a/.github/workflows/autocomment-pr-raise.yml +++ b/.github/workflows/autocomment-pr-raise.yml @@ -18,7 +18,7 @@ jobs: run: | COMMENT=$(cat < { // Filter for current sponsors (exclude isWeSponsor) const currentSponsors = sponsors.filter( - (s) => !s.isPastSponsor && !s.isWeSponsor, + (s) => !s.isPastSponsor && !s.isWeSponsor ); const pastSponsors = sponsors.filter((s) => s.isPastSponsor); @@ -29,7 +29,7 @@ const OurSponsors: React.FC = () => { const handlePaymentSuccess = () => { setShowScanner(false); alert( - "Thanks, we will redirect to Github Sponsors page, upon sponsoring you will be added to our sponsors list.", + "Thanks, we will redirect to Github Sponsors page, upon sponsoring you will be added to our sponsors list." ); window.location.href = "https://github.com/sponsors/sanjay-kv?o=esb"; }; @@ -40,6 +40,7 @@ const OurSponsors: React.FC = () => { setActiveTab(tab); }; + // Handle popup modal close on Escape key and click outside useEffect(() => { if (!showScanner) return; @@ -62,6 +63,16 @@ const OurSponsors: React.FC = () => { return () => controller.abort(); }, [showScanner]); + // Auto-switch tab if hash is "#people-we-sponsored" + useEffect(() => { + if (window.location.hash === "#people-we-sponsored") { + setActiveTab("past"); + // Optionally scroll into view for a nice effect + const el = document.getElementById("people-we-sponsored"); + if (el) el.scrollIntoView({ behavior: "smooth" }); + } + }, []); + return ( @@ -181,7 +192,9 @@ const OurSponsors: React.FC = () => { + {/* --- Explicit anchor for "People We Sponsored" --- */}
{weSponsorPeople.length > 0 ? (