diff --git a/src/commands/ratingStats.tsx b/src/commands/ratingSession.tsx similarity index 89% rename from src/commands/ratingStats.tsx rename to src/commands/ratingSession.tsx index d50917e56..c328c17b9 100644 --- a/src/commands/ratingStats.tsx +++ b/src/commands/ratingSession.tsx @@ -17,7 +17,7 @@ import { CommandRegistry } from '../events/interactionCreate'; export const ratingStatsCommand = new Promise((resolve) => { resolve({ command: - createLocalizedCommand('rating-stats').addStringOption( + createLocalizedCommand('rating-session').addStringOption( addUsernameChoices, ), @@ -43,12 +43,13 @@ export const ratingStatsCommand = new Promise((resolve) => { const [statsB2] = (await getRatingNeighbors(region, id, 0)).neighbors; if (!statsA) { - return t`bot.commands.rating_stats.errors.unrecorded_stats`; + return t`bot.commands.rating_session.errors.unrecorded_stats`; } if (!statsB1) { - return translate('bot.commands.rating_stats.errors.no_participation', [ - markdownEscape(accountInfo.nickname), - ]); + return translate( + 'bot.commands.rating_session.errors.no_participation', + [markdownEscape(accountInfo.nickname)], + ); } const delta = deltaBkrlBlitzStats(statsA, accountInfo.statistics.rating!); @@ -58,7 +59,7 @@ export const ratingStatsCommand = new Promise((resolve) => { {delta.battles === 0 && ( diff --git a/src/components/AllStatsOverview/components/HeroStat/index.tsx b/src/components/AllStatsOverview/components/HeroStat/index.tsx index ecfdb34e8..b71b882b5 100644 --- a/src/components/AllStatsOverview/components/HeroStat/index.tsx +++ b/src/components/AllStatsOverview/components/HeroStat/index.tsx @@ -19,7 +19,6 @@ export function HeroStat({ stats, locale }: WN8DisplayProps) { let color: string; let heroStat: string | number; let subtitle: string | number | undefined; - let subtitleImage: string | undefined; if (stats.type === 'random') { const percentile = @@ -44,41 +43,52 @@ export function HeroStat({ stats, locale }: WN8DisplayProps) { flexDirection: 'column', alignItems: 'center', justifyContent: 'center', - gap: -16, + gap: stats.type === 'rating' ? -20 : -16, }} >
- - {heroStat} - - - {subtitle} - + + {heroStat} + + + {subtitle} + +
diff --git a/src/components/AllStatsOverview/index.tsx b/src/components/AllStatsOverview/index.tsx index f78af5bc6..cc1dc51bc 100644 --- a/src/components/AllStatsOverview/index.tsx +++ b/src/components/AllStatsOverview/index.tsx @@ -33,6 +33,7 @@ export default function AllStatsOverview({