From 7af84786a303cb2d01d0f0c1095b036dfd0bd9ff Mon Sep 17 00:00:00 2001 From: Shane Smith Date: Mon, 30 Nov 2026 14:22:37 +1030 Subject: [PATCH] Start shared Nata Nu//ers scores with a capital I A shared high score now reads "I got a new high score on Nata Nu//ers: 50" rather than starting with a lowercase "i". Only the sentence changes. The signed run block under it stays the same, so older score commits still show their card. --- app/Devnull/NataNullers/ScoreCommit.php | 2 +- tests/Feature/Devnull/NataNullers/RunTest.php | 2 +- tests/Feature/Screens/NataNullersTest.php | 2 +- tests/Feature/Screens/ScoreCardTest.php | 2 +- tests/Unit/Devnull/ScoreCardTest.php | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Devnull/NataNullers/ScoreCommit.php b/app/Devnull/NataNullers/ScoreCommit.php index 94854d37..54ea9418 100644 --- a/app/Devnull/NataNullers/ScoreCommit.php +++ b/app/Devnull/NataNullers/ScoreCommit.php @@ -17,7 +17,7 @@ final class ScoreCommit public static function body(Run $run): string { - return "i got a new high score on Nata Nu//ers: {$run->score}\n\n```".self::Fence."\n" + return "I got a new high score on Nata Nu//ers: {$run->score}\n\n```".self::Fence."\n" .implode('.', ['v1', $run->id, $run->score, $run->endedAt, $run->signature]) ."\n```"; } diff --git a/tests/Feature/Devnull/NataNullers/RunTest.php b/tests/Feature/Devnull/NataNullers/RunTest.php index b8167cb9..f3550dcd 100644 --- a/tests/Feature/Devnull/NataNullers/RunTest.php +++ b/tests/Feature/Devnull/NataNullers/RunTest.php @@ -17,7 +17,7 @@ $run = Run::sign(testKey(), 'user-1', 1234, 1760000000); $body = ScoreCommit::body($run); - expect($body)->toStartWith("i got a new high score on Nata Nu//ers: 1234\n\n```nata-nullers\nv1.") + expect($body)->toStartWith("I got a new high score on Nata Nu//ers: 1234\n\n```nata-nullers\nv1.") ->and(ScoreCommit::parse($body, 'user-1'))->toEqual($run) ->and(ScoreCommit::parse($body, 'user-1')->signer())->toBe(testKey()->fingerprint()); }); diff --git a/tests/Feature/Screens/NataNullersTest.php b/tests/Feature/Screens/NataNullersTest.php index a426b643..c0cadf17 100644 --- a/tests/Feature/Screens/NataNullersTest.php +++ b/tests/Feature/Screens/NataNullersTest.php @@ -365,7 +365,7 @@ function tapResult(TestableComponent $screen, string $button): TestableComponent $run = app(HighScore::class)->best('0199e5c4-0000-7000-8000-000000000001'); - expect(skiaText(shownResults()))->toContain('i got a new high score on Nata Nu//ers: 1', 'Post to /dev/null'); + expect(skiaText(shownResults()))->toContain('I got a new high score on Nata Nu//ers: 1', 'Post to /dev/null'); Http::assertNotSent(fn (Request $request): bool => str_ends_with($request->url(), '/api/v1/commits')); tapResult($screen, 'post')->assertSet('shared', true); diff --git a/tests/Feature/Screens/ScoreCardTest.php b/tests/Feature/Screens/ScoreCardTest.php index 6eec7499..ae443b67 100644 --- a/tests/Feature/Screens/ScoreCardTest.php +++ b/tests/Feature/Screens/ScoreCardTest.php @@ -35,7 +35,7 @@ function logWithScore(int $score = 1234, string $signedFor = 'u2'): TestableComp skipWithoutSkia(); $screen = logWithScore() - ->assertSee('i got a new high score on Nata Nu//ers: 1234') + ->assertSee('I got a new high score on Nata Nu//ers: 1234') ->assertSee('Beat 1,234') ->assertSee('Signed by their device'); diff --git a/tests/Unit/Devnull/ScoreCardTest.php b/tests/Unit/Devnull/ScoreCardTest.php index 8ed3fbde..9b241dd3 100644 --- a/tests/Unit/Devnull/ScoreCardTest.php +++ b/tests/Unit/Devnull/ScoreCardTest.php @@ -34,7 +34,7 @@ function scoreBody(int $score = 1234, string $userId = 'u1'): string $commit = Commit::fromArray(scoreCommitJson(scoreBody())); expect($commit->scoreCard)->toEqual(new ScoreCard(1234, signed: true)) - ->and($commit->plainText())->toBe('i got a new high score on Nata Nu//ers: 1234') + ->and($commit->plainText())->toBe('I got a new high score on Nata Nu//ers: 1234') ->and(array_filter($commit->content, fn ($block) => $block->isCode()))->toBeEmpty() ->and($commit->isFolded())->toBeFalse(); }); @@ -43,7 +43,7 @@ function scoreBody(int $score = 1234, string $userId = 'u1'): string $commit = Commit::fromArray(scoreCommitJson($body, $authorId)); expect($commit->scoreCard->signed)->toBeFalse() - ->and($commit->plainText())->toStartWith('i got a new high score'); + ->and($commit->plainText())->toStartWith('I got a new high score'); })->with([ 'lifted into another author\'s commit' => fn () => [scoreBody(10, 'u1'), 'u2'], 'score edited' => fn () => [str_replace('.10.', '.9999.', scoreBody(10)), 'u1'],