feat(minimize): collapse the chat to a floating mascot with edge-aware restore#187
Merged
Conversation
…d command Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
…owControls Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
…dicator Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
…mize Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
…rver mechanism Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
…he window snap Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
…s as a morph not a cut Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
…the handoff is clean Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
…e jump and tiny-chat Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
…of the bare corner Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
…ossfade Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
… not clipped Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
…verlay Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
…hout jumping Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
… handoff Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
…typewriter Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
… 8px gaps Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
… cases Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
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.
Overview
Adds minimize / restore to the overlay. Instead of dismissing the chat (which cancels generation and starts a fresh session), the user can park an in-progress conversation as a small floating mascot icon and bring it back later, with the response still streaming in the background. The transition is one connected morph: the chat dissolves into the mascot on collapse and blooms back on restore, running as a GPU transform while the native window only snap-resizes at the endpoints.
Highlights
How it works
A
morphPhasestate machine (idle → collapsing → minimized → expanding → idle) inApp.tsxdrives Framer Motion; positioning math lives in a puremorphGeometry.ts. AnOVERLAY_MINIMIZEDatomic inlib.rsroutes activations to a restore while parked and is kept in sync with the React phase at every transition.Testing
bun run test:all:coverageandbun run validate-buildpass clean. Frontend is at 100% coverage (lines/branches/functions/statements); new suites cover the full lifecycle, edge-aware geometry, the unseen indicator, and focus wiring.