mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-28 23:50:08 +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:
@@ -68,12 +68,10 @@ export class AtlasPeopleService {
|
||||
|
||||
async people(ids: number[]): Promise<AtlasPerson[]> {
|
||||
if (!(await this.compareEnabled())) return [];
|
||||
const out: AtlasPerson[] = [];
|
||||
for (const id of [...new Set(ids)].slice(0, ATLAS_PEOPLE_MAX)) {
|
||||
if (await this.isHidden(id)) continue;
|
||||
out.push(await this.person(id));
|
||||
}
|
||||
return out;
|
||||
const asked = [...new Set(ids)].slice(0, ATLAS_PEOPLE_MAX);
|
||||
// Each traveller is read on their own; the order of the answer is the order asked.
|
||||
const answers = await Promise.all(asked.map(async (id) => ((await this.isHidden(id)) ? null : await this.person(id))));
|
||||
return answers.filter((p): p is AtlasPerson => p !== null);
|
||||
}
|
||||
|
||||
/** Every badge of one user, earned or not, the way their Passport judges them. */
|
||||
|
||||
Reference in New Issue
Block a user