Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/how-the-leaderboard-works.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<BadgeExplorer />

Expand Down
18 changes: 18 additions & 0 deletions src/components/leaderboardGuide/LeaderboardGuide.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
8 changes: 5 additions & 3 deletions src/components/leaderboardGuide/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
Expand Down Expand Up @@ -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() {
Expand Down Expand Up @@ -690,7 +692,7 @@ export function SponsorFlow() {
<>
<div className={s.flow}>
<div className={s.fNode}>
<div className={s.fEmoji} aria-hidden="true">💚</div>
<SponsorBadge size={56} />
<div className={s.fTitle}>Sponsors</div>
<div className={s.fSub}>Support recode hive on GitHub Sponsors</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/data/leaderboardGuide.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};
Expand Down
Loading