diff --git a/resources/views/native/guilds.blade.php b/resources/views/native/guilds.blade.php index 81cd4623..cfba43a5 100644 --- a/resources/views/native/guilds.blade.php +++ b/resources/views/native/guilds.blade.php @@ -35,8 +35,9 @@ class="w-full text-theme-ink" Search names, #handles, and descriptions. - - Start a public group. + {{-- At large text sizes the button moves under the sentence rather than squeezing it. --}} + + Start a public group. Create a guild diff --git a/resources/views/native/onboarding.blade.php b/resources/views/native/onboarding.blade.php index f88f8ebf..fdc6ffa0 100644 --- a/resources/views/native/onboarding.blade.php +++ b/resources/views/native/onboarding.blade.php @@ -37,11 +37,12 @@ I agree to the terms of service and privacy policy. There's no tolerance for objectionable content or abusive users. - - + {{-- At large text sizes the privacy policy moves under the terms rather than being cut off. --}} + + Terms of service - + Privacy policy diff --git a/resources/views/native/partials/achievements.blade.php b/resources/views/native/partials/achievements.blade.php index 24db5c91..41558ccc 100644 --- a/resources/views/native/partials/achievements.blade.php +++ b/resources/views/native/partials/achievements.blade.php @@ -3,17 +3,19 @@ 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. - Like the web's compact shelf, only earned badges show here. Native rows don't wrap on iOS, so two fit beside + Like the web's compact shelf, only earned badges show here. Only two fit beside the count of the rest; every badge, locked or earned, is in the sheet (see achievements-sheet). Tapping an earned badge opens it marked. The empty shelf offers View achievements. --}} - - - {{ $achievements->label() }} - + {{-- At large text sizes the unlocked count moves under the rank rather than being cut off. --}} + + + + {{ $achievements->label() }} + {{ $achievements->unlockedCount() }} / {{ count($achievements->badges) }} unlocked @@ -21,9 +23,8 @@ - + {{ $achievements->xpLabel() }} - {{ $achievements->nextRankLabel() }} @include('native.partials.progress-bar', ['ref' => 'level-progress', 'percent' => $achievements->levelProgress, 'fill' => 'bg-theme-'.\App\Devnull\Lane::token($lane), 'label' => "{$achievements->levelProgress}% of the way to the next rank"]) diff --git a/resources/views/native/partials/activity.blade.php b/resources/views/native/partials/activity.blade.php index f1ff0dcc..aebf64ce 100644 --- a/resources/views/native/partials/activity.blade.php +++ b/resources/views/native/partials/activity.blade.php @@ -6,7 +6,8 @@ @php($gap = $activity->scale === 'year' ? 2 : 3) @php($summary = $activity->isEmpty() ? 'No commits yet' : \App\Devnull\Display::count($activity->total(), 'commit', 'commits').' '.$activity->window()) - + {{-- At large text sizes the summary moves under the heading rather than squeezing beside it. --}} + Commit activity @if ($activity->isEmpty()) No commits yet diff --git a/resources/views/native/partials/guild-badge.blade.php b/resources/views/native/partials/guild-badge.blade.php index 83f32786..c45fffb2 100644 --- a/resources/views/native/partials/guild-badge.blade.php +++ b/resources/views/native/partials/guild-badge.blade.php @@ -5,9 +5,11 @@ Tapping the pill opens the guild's own screen (see OpensGuilds). A guild's own board leaves the badge off its commits, since they're all posted there (see Guild). + + At large text sizes "· not shown in general logs" moves whole to the next line rather than squeezing. --}} @php($guild = $commit->guild) - + posted in @include('native.partials.guild-mark', ['guild' => $guild, 'size' => 14, 'ref' => 'guild-pill-mark-'.$commit->id]) diff --git a/resources/views/native/partials/guild-mention.blade.php b/resources/views/native/partials/guild-mention.blade.php index 58db442d..42d42348 100644 --- a/resources/views/native/partials/guild-mention.blade.php +++ b/resources/views/native/partials/guild-mention.blade.php @@ -2,12 +2,13 @@ A guild mentioned in a commit, as the web's guild mention: the guild's mark (see guild-mark), then its name in medium mono, in a rounded tag edged with a hairline on the wash, like the "posted in" pill and a bio's tags. A tap opens the guild. Scaled to $size, the size of the text around it. The tag is a little shorter than a line, - with the rest above and below it, so tags on wrapped lines don't touch. + with the rest above and below it, so tags on wrapped lines don't touch. Its height comes from its name plus + padding, not a fixed number, so it grows with the system text size instead of cutting the name off. --}} -@php($height = round($size * 1.35)) +@php($padding = round($size * 0.1)) @php($mark = round($size * 1.05)) - + @include('native.partials.guild-mark', ['guild' => $guild, 'size' => $mark, 'ref' => $ref.'-mark']) {{ $guild->name }} diff --git a/resources/views/native/partials/guild-row.blade.php b/resources/views/native/partials/guild-row.blade.php index 6f02386d..8b7a08ff 100644 --- a/resources/views/native/partials/guild-row.blade.php +++ b/resources/views/native/partials/guild-row.blade.php @@ -1,6 +1,7 @@ {{-- A guild in the directory, as the web's card shows it: its uploaded icon, or its emoji (see guild-mark). One - you've joined has a mark at the end of its row, apart from anything about moderating it, which doesn't need joining. + you've joined says so after its member count, apart from anything about moderating it, which doesn't need joining. + It sits on that line rather than at the end of the row so the description keeps the row's full width. Tapped, it opens the guild's screen (see OpensGuilds). --}} @@ -15,12 +16,11 @@ @if ($guild->description !== '') {{ $guild->description }} @endif - {{ $members }} - - {{-- Kept on every row, so a description wraps in the same place whether you've joined or not. --}} - - @if ($guild->isJoined) - - @endif + + {{ $members }} + @if ($guild->isJoined) + · Joined + @endif + diff --git a/resources/views/native/partials/profile-header.blade.php b/resources/views/native/partials/profile-header.blade.php index cee03f8c..cde7cd5f 100644 --- a/resources/views/native/partials/profile-header.blade.php +++ b/resources/views/native/partials/profile-header.blade.php @@ -63,11 +63,12 @@ {{ $user->name }} {{-- The handle, then what the web marks beside it: Follows you, Muted, and the Unix rank in the - owner's lane. EDGE's rows don't wrap on iOS, so the handle gives way first. + owner's lane. At large text sizes the rank's name gives way first, so the handle stays whole and + the level still shows. --}} - {{ $user->handle() }} + {{ $user->handle() }} @if ($profile->followsYou && ! $sketched) Follows you @@ -79,8 +80,11 @@ @endif @if ($profile->achievements && ! $sketched) - - {{ $profile->achievements->label() }} + + + Lv. {{ $profile->achievements->level }} + {{ "\u{00A0}· ".$profile->achievements->rank }} + @endif @@ -111,8 +115,8 @@ @if (! $sketched) - {{-- Following and followers open their lists, as the web links them. --}} - + {{-- Following and followers open their lists, as the web links them. At large text sizes a count that won't fit moves whole to the next line. --}} + @foreach ([[$profile->commitsCount, 'commit', 'commits', null], [$profile->followingCount, 'following', 'following', 'following'], [$profile->followersCount, 'follower', 'followers', 'followers']] as [$count, $singular, $plural, $list]) @if ($list === null) diff --git a/resources/views/native/partials/streaks.blade.php b/resources/views/native/partials/streaks.blade.php index 9a038c69..026e17fa 100644 --- a/resources/views/native/partials/streaks.blade.php +++ b/resources/views/native/partials/streaks.blade.php @@ -1,12 +1,17 @@ -{{-- The streaks under the activity strip, in mono: muted labels, ink numbers, a lane dot before a streak still going. --}} +{{-- + The streaks under the activity strip, in mono: muted labels, ink numbers, a lane dot before a streak still going. + At large text sizes the current streak moves whole, separator and all, to the next line rather than squeezing. +--}} @if ($streaks->longest > 0) - + longest streak {{ $streaks->longest }} {{ $streaks->longest === 1 ? 'day' : 'days' }} @if ($streaks->current > 0) - · - - - current {{ $streaks->current }} + + · + + + current {{ $streaks->current }} + @endif diff --git a/tests/Feature/Screens/GuildsTest.php b/tests/Feature/Screens/GuildsTest.php index f6d3f6c8..c03957ee 100644 --- a/tests/Feature/Screens/GuildsTest.php +++ b/tests/Feature/Screens/GuildsTest.php @@ -280,12 +280,12 @@ function serveGuilds(array $pages): void expect(app(Account::class)->guildsTabShown())->toBeFalse(); }); -it('marks the guilds you have joined at the end of their row', function () { +it('marks the guilds you have joined on their members line', function () { serveApi(['GET /api/v1/guilds' => [guildsPage([guildJson(['handle' => 'rust', 'is_joined' => true]), guildJson(['handle' => 'go'])])]]); $screen = finishRefreshes(Native::visit('/guilds')); expect(nodeByRef($screen, 'guild-rust')['props']['a11y_label'] ?? nodeByRef($screen, 'guild-rust')['a11y_label'] ?? null)->toBe('Rust, #rust, 3 members, joined') - ->and(findNode($screen->tree(), fn (array $node): bool => ($node['ref'] ?? null) === 'guild-joined-rust'))->not->toBeNull() + ->and(childRefs($screen, 'guild-members-rust'))->toContain('guild-joined-rust') ->and(findNode($screen->tree(), fn (array $node): bool => ($node['ref'] ?? null) === 'guild-joined-go'))->toBeNull(); });