SPB Git forge

spb/rareindex

Public
54commits 1branches 0releases
7.1 MBsize
maindefault branch
10 days agolast push
TypeScript 61.9% HTML 37.2% SQL 0.7%
1.2 KB · 15 lines typescript
Raw Blame History
1/**2 * Badges are computed from the member's real data (never hand-assigned). The worker recomputes3 * them daily (workers/account/badges.ts) and stores the evidence used.4 */5export const BADGE_DEFS: Record<string, { label: string; tone: 'neutral' | 'gain' | 'index' | 'rarity' | 'gold' | 'alert'; description: string }> = {6  early_member: { label: 'Early member', tone: 'gold', description: 'Joined RareIndex in its first year.' },7  ten_categories: { label: '10+ categories', tone: 'index', description: 'Holds items across ten or more categories.' },8  hundred_items: { label: '100+ items', tone: 'index', description: 'Tracks one hundred or more items.' },9  graded_collector: { label: 'Graded collector', tone: 'rarity', description: 'At least 10 items recorded with a grading certification number.' },10  documented: { label: 'Documented', tone: 'neutral', description: 'Every item has an acquisition date and price.' },11  public_profile: { label: 'Open vault', tone: 'gain', description: 'Shares at least one public collection.' },12  watcher: { label: 'Market watcher', tone: 'neutral', description: 'Follows 25+ assets or markets.' },13  two_factor: { label: 'Secured', tone: 'gain', description: 'Authenticator two-step verification enabled.' },14};15