Skip to content

Keep the bottom bar's pill 64 dp and every button as wide as its text, and say what two emulators made of #201 and #202 - #241

Merged
lumenpearson merged 3 commits into
mainfrom
dev
Oct 2, 2026
Merged

lumenpearson merged 3 commits into
mainfrom
dev

Conversation

@lumenpearson

@lumenpearson lumenpearson commented Oct 2, 2026 •

Copy link
Copy Markdown
Owner

Description

Two things the owner saw in the bottom bar on 2 October, each filed and then fixed:

This pull request is also the close-out of the session that made it. That session walked what #214 and #239 shipped on two API 37 emulators, and ran #201's Keystore seal and #202's https-only release on a device for the first time. HANDOVER.md has it.

Closes #240
Closes #242

What is affected

  • android/core/designsystem — theme and components
  • docs/, README.md — HANDOVER.md, docs/history.md, the test counts, the README's honest status, the github-pr skill's milestone row

Boundaries

  • :core:data does not depend on :widget
  • There is no token, class code, password or keystore path in the diff
  • No string, no model, no server code, so the other boxes do not apply.

Verification

cd android && ./gradlew test assembleDebug assembleRelease detekt → BUILD SUCCESSFUL (on 40889c2)
tests: 1587, 0 failures (:core:model 125, :core:data 615, :core:designsystem 130, :widget 126, :app 591) — 1579 before
ToolbarPillHeightTest (3), against the toolbar before #240's fix: pill 80 px for 64; its centre 40 px for 48
ToolbarLabelFitTest (5), against the toolbar before #242's fix: 84 px box for a 4 px «Sync»; a 128 px tab for «Today»; pills of 322 px where the caps said 379 and 388; a 776 px tab where it said 348
./gradlew :core:designsystem:connectedDebugAndroidTest on the API 37 emulator → 3/3 on 4d792df
server: tests/test_schema_version.py and test_requirements_mirror.py (they read the documents) → 22 passed; no server code changed
  • ./gradlew assembleDebug
  • ./gradlew assembleRelease
  • Checked on an emulator: API 37, 1080×2424 at 420 dpi. The settings pill was 210 px before and is 168 px after, the same as the tab bar's. «Today», «← Sync», «← Settings», «← Настройки» and «← Взаимодействие» are each as wide as their text.
  • The widget checked at two sizes — not touched

What is NOT covered

Documentation

🤖 Generated with Claude Code

…button sits beside it

Every settings page of a reader who does not manage the class drew the pill
holding «←» and the page's name 80 dp tall, where the tab bar it morphed from,
and the same page with the debug button beside it, drew 64 dp (#240).

The two cases go through different Material overloads, and only the one
without a button wraps the content in Material's minimumInteractiveBalancedPadding.
That modifier reads the interactive alignment lines off the content and pads
the pill vertically by twice the amount the side inset exceeds the top one.
Since #183 the pill's ends were drawn inside our rows and its top and bottom
outside them, so the 48 dp back button's lines said 8 dp from the side and
nothing from the top, and Material added 16 dp.

All of Material's padding is now drawn inside the rows, on all four sides, so
the insets it reads agree and it adds nothing; the pill keeps #183's round
ends. With the height fixed, a second difference showed: Material's slot for
a button is 80 dp with the pill centred in it, and a bar that wrapped the pill
alone was 16 dp shorter and carried its pill 8 dp lower, so the pill would have
dropped as settings opened. The bar now keeps that slot's height without a
button too, which also keeps the space the shell reserves under the lists the
same on every page.

ToolbarPillHeightTest measures the pill through a test tag, the only node it
has: without a button, back mode and tabs, it is Material's 64 dp container,
and its centre is where the pill beside a button has its own. Against the old
code the back-mode case read 80 px for 64, and the position case 40 px for 48;
the tabs never showed it, because `ToolbarTab` is not an interactive-size node
and reports no line.

Checked on an API 37 emulator at 420 dpi before and after: the settings pill
210 px, now 168 px, the same as the tab bar's. Not covered: the pill beside
the debug button after the fix was not seen on a screen, because the local
class gives no manager; Material holds it at 64 dp by construction.

Closes #240

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
lessons Ready Ready Preview Oct 2, 2026 4:02pm UTC

…w on a phone and 30 % of a tablet

A short label sat in a box much wider than itself (#242). The back pill's
title was never under 100 dp, so «← Sync» was as wide a pill as
«← Settings», with a gap after «Sync» about as wide as the word; the
selected tab's label was never under 80 dp — the floor #227 kept when it let
long labels grow — so «Today», about 39 dp, left the rest of its pill empty.
Russian titles are mostly wider than either floor, which is why it went
unseen until the app was read in English.

Neither floor is there any more. The owner set the ceiling on 2 October 2026:
a label or a title grows with its text until, on a tablet (smallest width
600 dp and up), it reaches 30 % of the window, and on a phone until it fills
what the row leaves it — the window less the bar's margins, the pill's ends,
the back button or the other tabs, and the button beside the pill. Past that
it scrolls, as `MarqueeText` already does for a line that does not fit. The
documentation's scrolling bar takes the same rule, its spare being the
scrolling window less the selected tab's icon, where it was a flat 80 dp.

ToolbarLabelFitTest holds five cases: a short title and a short label are as
wide as their laid-out line; a long title on a phone fills the window less
32 dp; a long title and a long label on a tablet stop at 300 dp of a 1000 dp
window. Against the toolbar before this commit all five were red — 84 px for
a 4 px «Sync», a 128 px tab for «Today», 322 px pills where the cap said 379
and 388, a 776 px tab where it said 348. Robolectric lays text out at about a
pixel a letter, so the long title is a long string; the comparison is between
the box and the line inside it, which one engine measures and draws.

ToolbarOverflowTest's marquee-clock note said a label was drawn at a fixed
80 dp; it is drawn at its own width now, which in that test's window is far
wider than its eight-letter labels, so none of them can start a marquee.

Seen on the API 37 emulator at 420 dpi, in English and in Russian: «Today»,
«← Sync», «← Settings», «← Настройки», «← Взаимодействие», each pill as wide
as its text. Not seen: a tablet — the cap there is held by the test only —
and a title long enough to reach the phone's cap.

Closes #242

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…and the bottom bar's two fixes

HANDOVER.md takes this batch on top — #240 and #242 fixed, #201's seal run
through an upgrade in place and a reboot on an emulator, #202's release
build refusing http:// and reading production over TLS from a second AVD
that holds the owner-signed build, #209's splits walked, and how the
emulators were driven from a shell on this machine. #239's section moves
down a place with its merge SHA, and #234's goes verbatim to the top of
docs/history.md.

Section 5's bullet on #201 and #202 now says what the emulators saw and
what still waits for a phone; the bullet as it stood moves to a new
«Moved out of section 5 on 2 October 2026» at the end of the history. The
keystore paragraph leaves section 7 for the same reason — the owner gave the
key its passwords, and both the local release and the APK workflow's now
sign CN=lumenpearson — and the history's introduction says the sections at
its end are dated rather than all of 27 September.

The Android count is 1587 in HANDOVER.md, the README and
docs/architecture.md; milestone 9's row in HANDOVER.md and the github-pr
skill names #241, #240 and #242. The README's honest status names the two
emulator runs and that no phone has made either.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lumenpearson lumenpearson changed the title Keep the bottom bar's pill 64 dp without a button beside it, and say what two emulators made of #201 and #202 Keep the bottom bar's pill 64 dp and every button as wide as its text, and say what two emulators made of #201 and #202 Oct 2, 2026
@lumenpearson
lumenpearson marked this pull request as ready for review October 2, 2026 16:14
@lumenpearson
lumenpearson merged commit c21f601 into main Oct 2, 2026
@github-project-automation github-project-automation Bot moved this from Now to Done in lessons Oct 2, 2026
lumenpearson added a commit that referenced this pull request Oct 2, 2026
…path

HANDOVER.md takes #245 on top — back closing one settings page at a time,
the guide returning to the page it was opened from, the back pill naming
where back goes, and the room C: was given, item by item, with where each
moved item went. #241's section moves down a place with its merge SHA, and
#239's goes verbatim to the top of docs/history.md.

Section 5 gains what this leaves unseen: nothing composes the shell, so the
path is held by its rules and one walk on an emulator. Section 7's note on
C: says what was moved to F:\MovedFromC and that it is the owner's to keep.
The Android count is 1600 in the three places it lives, and milestone 9's
row names #245 and #243–#244.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lumenpearson added a commit that referenced this pull request Oct 2, 2026
…mation

HANDOVER.md takes #248 on top — the selected tab's label revealed rather
than squeezed, the five animations that ignored «Анимации» put under it,
and the rows and list items that now open, close, fade and slide. #245's
section moves down a place with its merge SHA, and #241's goes verbatim to
the top of docs/history.md. Section 5 says that the new animations were
seen in two frames on an emulator and no more. The Android count is 1609
in its three places; milestone 9's row names #248, #246 and #247.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch was successfully deployed

1 active deployment
Preview — ff1712d6 Deployed Oct 2, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

1 participant