From a7240368753edadf2d6209cf4171281c623c33da Mon Sep 17 00:00:00 2001 From: sanjay-kv Date: Sat, 24 Oct 2026 16:06:22 +1100 Subject: [PATCH] added leaderboard doc fix --- docs/how-the-leaderboard-works.mdx | 3 ++- .../LeaderboardGuide.module.css | 18 ++++++++++++++++++ src/components/leaderboardGuide/index.tsx | 8 +++++--- src/data/leaderboardGuide.ts | 2 +- 4 files changed, 26 insertions(+), 5 deletions(-) diff --git a/docs/how-the-leaderboard-works.mdx b/docs/how-the-leaderboard-works.mdx index db7b50fe..6f02aa13 100644 --- a/docs/how-the-leaderboard-works.mdx +++ b/docs/how-the-leaderboard-works.mdx @@ -50,7 +50,8 @@ The leaderboard orders contributors by points. The top three earn the leaderboar ## Achievement badges -13 badges, from your first merged pull request to the top of the leaderboard. The hexagon comes from a honeycomb: it connects every badge to the hive and stands for collaboration, structure and growing together. Merged PR counts include only pull requests that scored points. Tap a badge to see what it means. +13 badges, from your first merged pull request to the top of the leaderboard. The hexagon comes from a honeycomb: it connects every badge to the hive and stands for collaboration, structure and growing together. Merged PR counts include only pull requests that scored points. +Tap a badge to see what it means. diff --git a/src/components/leaderboardGuide/LeaderboardGuide.module.css b/src/components/leaderboardGuide/LeaderboardGuide.module.css index 0b9b7e51..9373274f 100644 --- a/src/components/leaderboardGuide/LeaderboardGuide.module.css +++ b/src/components/leaderboardGuide/LeaderboardGuide.module.css @@ -1392,6 +1392,12 @@ color: color-mix(in srgb, var(--c) 55%, #fff); } +.rIcon, +.rBody { + position: relative; + z-index: 1; +} + .rBody { display: flex; flex-direction: column; @@ -1755,6 +1761,18 @@ cursor: pointer; } +.faqQ:focus, +.faqQ:active { + outline: none; + box-shadow: none; +} + +.faqQ:focus-visible { + outline: none; + box-shadow: none; + background: color-mix(in srgb, var(--lg-green) 8%, transparent); +} + .chev, .chevOpen { flex-shrink: 0; diff --git a/src/components/leaderboardGuide/index.tsx b/src/components/leaderboardGuide/index.tsx index 7f2a9895..99157afd 100644 --- a/src/components/leaderboardGuide/index.tsx +++ b/src/components/leaderboardGuide/index.tsx @@ -14,6 +14,7 @@ import { BADGE_CREDIT, BADGE_GROUPS, FAQ, HERO_BADGES, LEVEL_COPY, MENTORSHIP_CLAIM, OFFERINGS, RANK_TITLES, SHORT_STEPS, SPONSOR_POST_URL, SPONSOR_RECIPIENTS, TIERS, WEEKLY_MVP, type OfferingIcon, type RewardIcon, } from '../../data/leaderboardGuide'; +import SponsorBadge from '../sponsors/SponsorBadge'; import s from './LeaderboardGuide.module.css'; type CSSVars = React.CSSProperties & Record<`--${string}`, string | number>; @@ -274,14 +275,15 @@ export function LabelSimulator() { /* ---------- 3d. What counts ---------- */ const DOS = [ - 'Merged PRs with the recode label and a level label', - 'Work on an issue you were assigned', + 'Merged PRs with recode label and a level label', + 'Only Work on an issue When it assigned assigned', 'Reviewing PRs and helping others in discussions (counts toward Weekly MVP)', ]; const DONTS = [ 'PRs without the recode label: 0 points', 'PRs with no level label: 0 points', 'PRs that are closed without merging', + 'Issues get assigned FIFO format, if it goes stale it goes to the next person' ]; export function DoDont() { @@ -690,7 +692,7 @@ export function SponsorFlow() { <>
- +
Sponsors
Support recode hive on GitHub Sponsors
diff --git a/src/data/leaderboardGuide.ts b/src/data/leaderboardGuide.ts index d8caa1b7..58a775b7 100644 --- a/src/data/leaderboardGuide.ts +++ b/src/data/leaderboardGuide.ts @@ -42,7 +42,7 @@ export const BADGE_CREDIT = { name: 'Sowmiya V', role: 'Brand Designer' }; export const WEEKLY_MVP = { title: 'Weekly MVP', - text: 'Top of the weekly dashboard, scored on PR volume, code quality and helping others.', + text: 'Top of the weekly dashboard, scored on PR volume. The MVP is not just about code quality, We look for collaboration & helping others.', reward: '₹500', via: 'through GitHub Sponsors', };