Skip to content

feat(desktop): restyle toasts on composer glass and add a position setting - #4303

Merged
LHagfoss merged 2 commits into
mainfrom
feat/desktop-toast-redesign
Nov 24, 2026
Merged

LHagfoss merged 2 commits into
mainfrom
feat/desktop-toast-redesign

Conversation

@LHagfoss

Copy link
Copy Markdown
Owner

What

Toasts looked heavy and hard to tell apart (grey icon, accent pill, faint glass). This makes them a small sibling of the composer and lets the user choose where they appear.

  • Look: the composer's surface, edge and glass with a soft lift; a 6px tone dot (grey info, green success, red error, a spinner while in progress) instead of the icon; the action as an outlined pill (label only); the × collapsed until the card is hovered or the button focused. Clicking the card, swiping it and Escape still dismiss it. 340px wide, 16px corners.
  • Position: Settings › Appearance › Toast position (Bottom right default, Bottom left, Top right, Top center). Picking one shows a sample toast there. Top positions sit under the header, stack and fan out downward, and enter and leave from above (with a flat variant on Linux). In the bottom-left corner a swipe dismisses to the left.
  • state/toastPosition.ts stores the choice next to the sidebar prefs; dragState takes the swipe direction; docs/design.md describes the new toast.

Changelog

Toasts are lighter, frosted like the composer, and can be moved to another corner in Settings › Appearance.

Testing

  • bun run check in apps/desktop: lint, typecheck and build pass. Of the tests, only stopTrace.store.test.ts › "a harness that ignores the Stop is forced" fails in the full local run; it passes on its own, depends on timing, and has nothing to do with toasts.
  • Checked in the mock window: all four positions at rest and fanned out on hover, the × appearing on hover, and the Settings row with its sample toast.

@github-actions github-actions Bot added the feature New feature or request label Nov 24, 2026
@LHagfoss
LHagfoss merged commit b742771 into main Nov 24, 2026
9 checks passed
@LHagfoss
LHagfoss deleted the feat/desktop-toast-redesign branch November 24, 2026 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant