feat: add public leaderboards with opt-out privacy setting

This commit is contained in:
2026-03-07 15:06:42 -08:00
committed by Naomi Carrigan
parent bbdacf272c
commit 3515de62ee
12 changed files with 525 additions and 0 deletions
@@ -179,6 +179,21 @@ export const EditProfileModal = ({ onClose }: EditProfileModalProps): React.JSX.
</div>
</div>
<div className="edit-profile-section">
<p className="edit-profile-label">Privacy</p>
<p className="edit-profile-sublabel">Control your visibility on public leaderboards.</p>
<button
className={`stat-toggle-btn ${settings.showOnLeaderboards ? "stat-toggle-on" : "stat-toggle-off"}`}
onClick={() => { toggleSetting("showOnLeaderboards"); }}
type="button"
>
<span>🏆 Appear on Leaderboards</span>
<span className="stat-toggle-indicator">
{settings.showOnLeaderboards ? "✓ Shown" : "Hidden"}
</span>
</button>
</div>
<div className="edit-profile-section">
<p className="edit-profile-label">Number Format</p>
<p className="edit-profile-sublabel">How large numbers appear across the game.</p>