mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 01:28:55 +00:00
fix(atlas): clear the client gates of the globe Atlas
Client lint, checks and tests were red on the globe Atlas: - The views own the globe and sky refs and hand them into useAtlasGlobe, so reading its state while rendering no longer counts as reading refs. - Helpers that shared a file with components move to their own modules (badge tiers, medal label, Dawarich notes, hub tabs, period label). - The place search derives its loading state, the search resets its active row on input, and the two silenced hook dependencies are named. - placeLabels, the hover chip and the overview figures are split up. - Raw text sizes become type tiers, the badge unlock docks on --z-overlay. - The stats card test follows the GlobeStat props; baselines lowered to the counts the run reported.
This commit is contained in:
@@ -255,7 +255,7 @@ const TIERS: BadgeTier[] = ['bronze', 'silver', 'gold'];
|
||||
function steps(values: number[]): Array<{ target: number; tier: BadgeTier }> {
|
||||
return values.map((target, i) => ({
|
||||
target,
|
||||
tier: i === values.length - 1 && values.length > 3 ? 'aurora' : TIERS[Math.min(i, 2)],
|
||||
tier: i === values.length - 1 && values.length > 3 ? 'aurora' : (TIERS[Math.min(i, 2)] ?? 'gold'),
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user