Skip to content

feat: the inbox gets a back-to-top shortcut - #511

Merged
an1ndra merged 1 commit into
Developfrom
feat/back-to-top
Nov 19, 2026
Merged

an1ndra merged 1 commit into
Developfrom
feat/back-to-top

Conversation

@an1ndra

@an1ndra an1ndra commented Nov 19, 2026

Copy link
Copy Markdown
Owner

What changed

Scrolling a long inbox back to the top meant flicking through every row again. Past eight rows out of sight, a small round shortcut appears in the middle of the bottom edge; tapping it animates the list back to the top, where it disappears again.

  • Middle of the bottom edge, not the corner: the start-chat button owns the corner, and a shortcut tucked beside it is one more thing to aim at.
  • 70% opacity: it floats over the rows, and at full strength the disc read as a hole punched through the list.
  • A Surface, not a floating-action-button: the FAB's own container added a corner shape and a minimum touch target around the content, which drew a square edge around a round button — the bug that came up in review. It is a circle now.
  • Hidden on the archived view, and while the list is at the top.

Why

Scrolled far down, the top is a chore to reach; a shortcut is worth one small disc once it is. Two design notes came from review: bottom-centre placement, and 70% opacity.

Testing

  • ./gradlew testDebugUnitTest passes
  • JUnit test added under app/src/test/java/ (BackToTopTest: the threshold either side, the 0.7 alpha)
  • scripts/test-*.sh added, and it fails before the fix / passes after

scripts/test-back-to-top.sh on emulator-5556 — 6 passed, 0 failed:

[PASS] seeded 40 conversations to scroll through
[PASS] no button at the top of the list
[PASS] scrolled down, the 'Back to top' button is there
[PASS] the button sits in the middle of the bottom edge
[PASS] tapping it returns the list to the top
[PASS] the first conversation is on screen again

On the previous build it fails at the top of the run — there is no button and no label for it.

Measured on the emulator: bounds [479,2097][605,2223], centre x = 542 against a 540 px screen centre, and the screenshot shows a circular, 70%-transparent disc with the up chevron, with the row behind it legible through it.

Related issue

None — requested directly.

New string: conversations_back_to_top (all 13 locales).

Scrolling a long inbox back to the top meant flicking through every row
again. Past eight rows out of sight, a small round button appears in the
middle of the bottom edge with an up chevron; tapping it animates the list
back to the top, where the button disappears again.

- It sits in the middle of the bottom edge, at 70% opacity: it floats over
  the rows, and at full strength the disc read as a hole punched through
  the list. The start-chat button keeps its corner.
- Drawn as a Surface rather than a floating-action-button: the FAB's own
  container added a corner shape and a minimum touch target around the
  content, which drew a square edge around a round button.
- It is hidden on the archived view, and while the list is at the top.

JUnit: BackToTopTest (the eight-row threshold either side, and the 70%
alpha the design asks for) and a preview so PreviewCoverageTest stays
green.

scripts/test-back-to-top.sh: 6 checks on emulator-5556, 0 failed — no
button at the top, one after three screens, centred on the bottom edge,
and the list back at its first row after a tap. The same run fails on the
previous build, which has no button at all.

The new label is in all 13 locales.
@an1ndra
an1ndra merged commit a629235 into Develop Nov 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant