Skip to content

Name the reconnect gesture the same everywhere - #29

Merged
d4rken merged 1 commit into
mainfrom
dashboard-reconnect-title
Jul 26, 2026
Merged

Name the reconnect gesture the same everywhere#29
d4rken merged 1 commit into
mainfrom
dashboard-reconnect-title

Conversation

@d4rken

@d4rken d4rken commented Jul 26, 2026

Copy link
Copy Markdown
Member

What changed

The quick-full-charge feature had two different names in the app. The dashboard card and the switch in Settings → Charging control the same thing but were both called "Reconnect for 100%", while the section heading directly above that switch called it "Reconnect gesture".

Both controls are now called "Reconnect gesture", and the section heading becomes "Quick full charge" — the same wording the ongoing notification already uses. So the settings screen now reads Charging › Quick full charge › Reconnect gesture, instead of a section and the switch inside it sharing one title.

No behaviour changes — text only.

Technical Context

Renaming only the dashboard card (the original intent) would have left it disagreeing with the settings switch for the same preference, so both were renamed together. That in turn collided with the section header, which the Robolectric UI tests caught immediately — three ChargingSettingsScreenTest cases failed with "Expected exactly 1 node but found 2" because the section title and the switch title became identical strings. Retitling the section resolves it, rather than loosening the test selectors: two identically-labelled elements one above the other was a real UI problem, not test brittleness.

formatted="false" was dropped from both renamed strings — it was only there for the literal % in "100%", which is gone.

Every reference goes through R.string.*, so no Kotlin changed. The committed store screenshot showing this screen was re-rendered; the dashboard shot was unaffected.

Restores work from an abandoned local branch (1aeda8b, 2026-07-23) that renamed only the dashboard card, extended for consistency.

Verification

739 unit tests, lint (both flavors, beta + release) and both flavor debug assembles pass.

The dashboard card and the settings switch drive the same preference but
were both labelled "Reconnect for 100%", while the settings section above
the switch was labelled "Reconnect gesture" - so the feature had two names
and the section duplicated nothing useful.

Both controls are now "Reconnect gesture". The section header becomes
"Quick full charge", matching the vocabulary the ongoing notification
already uses ("Quick full charge is on"), which also avoids a section and
the switch inside it sharing a title.

Dropped formatted="false" from both strings; neither contains a literal %
any more. Re-rendered the affected store screenshot.

Restores an abandoned local branch (1aeda8b) that renamed only the
dashboard card, extended to keep the naming consistent.
@d4rken d4rken added enhancement New feature or request ROM: Pixel Google Pixel labels Jul 26, 2026
@github-actions github-actions Bot added the Build/Deploy Build system / CI / release tooling label Jul 26, 2026
@d4rken
d4rken merged commit bed0b21 into main Jul 26, 2026
12 checks passed
@d4rken
d4rken deleted the dashboard-reconnect-title branch July 26, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Build/Deploy Build system / CI / release tooling enhancement New feature or request ROM: Pixel Google Pixel

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant