Repository navigation
Show drawer failures as a floating notice - #130
Merged
Merged
Conversation
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".
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
docs/parity/drawer.mdnotes 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.