Skip to content

Show drawer failures as a floating notice - #130

Merged
Tarquinen merged 1 commit into
archive-ignored-errorfrom
drawer-failure-notice
Nov 18, 2026
Merged

Tarquinen merged 1 commit into
archive-ignored-errorfrom
drawer-failure-notice

Conversation

@Tarquinen

Copy link
Copy Markdown
Member

Stacked on #129.

A failed archive, unarchive or delete showed as red text in a row at the top of the session list. The row pushed the sessions down and back up, named only the last session when several failed, and ran the reason into the same sentence.

Now the failure is a floating notice above New Session, styled like the session's connection pill: a red icon, what failed, then why in grey.

  • It slides in and out without moving the list, and stays 5 s instead of 3.
  • Sessions that fail together share one notice ("Couldn’t archive 3 sessions").
  • TalkBack announces it as a polite live region.
  • iOS still has the red row; docs/parity/drawer.md notes the difference.

notice-before-after.mp4

Verified with scripts/check.sh :feature:drawer, and on an emulator against an OpenCode 2.0.24 server: archiving three sessions shows one notice in light and dark, and deleting two with the server frozen shows "Couldn’t delete 2 sessions". A failed unarchive wasn't triggered on a device; it uses the same notice and is covered by the reducer test.

A failed archive, unarchive or delete showed as red text in a row at the
top of the session list. The row pushed the sessions down and back, named
only the last session when several failed, and ran the reason into the
same sentence.

Now the failure is a floating notice above New Session, styled like the
session's connection pill: a red icon, what failed, then why in grey. It
slides in and out without moving the list, stays 5 s instead of 3, and
sessions that fail together share one notice ("Couldn’t archive 3
sessions").

- DrawerFailure replaces the error strings in HomeFeature.State and
  InboxSidebarFeature.Status.
- The in-list error rows (DrawerListItem.DeletionError and the inbox
  list's error item) are gone.
- The three error strings lose their reason placeholder and gain plurals;
  translations redone.

Verified: scripts/check.sh :feature:drawer. On an emulator against an
OpenCode 2.0.24 server, archiving three sessions shows one notice in light
and dark, and deleting two with the server frozen shows "Couldn’t delete 2
sessions".
@Tarquinen
Tarquinen merged commit 296071e into archive-ignored-error Nov 18, 2026
3 checks passed
@Tarquinen
Tarquinen deleted the drawer-failure-notice branch November 18, 2026 04:42

This branch was previously deployed

1 inactive deployment
release — 296071eb Deployed Nov 18, 2026 by Tarquinen via check #425
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