From 4c6332ddd2564e6517e3d7d3718dfb91ae3f6b0d Mon Sep 17 00:00:00 2001 From: cannonsh Date: Sat, 31 Oct 2026 19:27:32 +0100 Subject: [PATCH] Show the XP once on the profile rank row MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The header repeated the XP that the progress line below it already shows, which squeezed the rank to "ro…" and wrapped the unlocked count on narrow screens. --- resources/views/native/partials/achievements.blade.php | 6 ++---- tests/Feature/Screens/ProfileStandingTest.php | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/resources/views/native/partials/achievements.blade.php b/resources/views/native/partials/achievements.blade.php index 74674088..6afc70b1 100644 --- a/resources/views/native/partials/achievements.blade.php +++ b/resources/views/native/partials/achievements.blade.php @@ -1,5 +1,5 @@ {{-- - The achievements shelf under the streaks, as the web draws it: the Unix rank and level with the XP, how many badges + The achievements shelf under the streaks, as the web draws it: the Unix rank and level, how many badges are unlocked, a bar of the way to the next rank in the owner's lane, and the badges. An unlocked badge is a hairline chip in ink; a locked one is muted, with its progress when it takes more than one step. @@ -13,11 +13,9 @@ {{ $achievements->label() }} - · - {{ $achievements->xp }} XP - {{ $achievements->unlockedCount() }} / {{ count($achievements->badges) }} unlocked + {{ $achievements->unlockedCount() }} / {{ count($achievements->badges) }} unlocked diff --git a/tests/Feature/Screens/ProfileStandingTest.php b/tests/Feature/Screens/ProfileStandingTest.php index 6eb93177..f09af3f0 100644 --- a/tests/Feature/Screens/ProfileStandingTest.php +++ b/tests/Feature/Screens/ProfileStandingTest.php @@ -54,7 +54,6 @@ function standingJson(array $extra = []): array $screen = Native::visit('/log/users/ada', platform: 'ios') ->assertSee('Lv. 2 · user') - ->assertSee('120 XP') ->assertSee('1 / 3 unlocked') ->assertSee('120 / 250 XP') ->assertSee('130 XP to operator')