Repository navigation
feat(app): settings in parts, with Enter to send, panels that follow the bot and less motion - #41
Merged
Merged
Conversation
…the bot and less motion as choices Settings lists its parts on the left: General (the background switches and the language), Chat, Appearance and About. Chat gets "Enter sends the message" (off, Ctrl+Enter sends and Enter starts a line) and "Open the browser and screens when a bot starts using them"; Appearance gets "Less motion", which marks the root so motion-less.css and reducedMotion() still the window as Windows would. The app's own choices share one prefs module in localStorage.
This was referenced Sep 29, 2026
A Select in the look of the app's menus: a button with the choice opens the list under it; the arrow keys, Enter and Escape work, and Escape closes only the list, not the dialog. The language moves to the top of General, so the list opens with room.
…es test room The Select test named its value type, so onChange keeps it. The routines form test passes alone and ran past 5 s in the full suite; it gets 15 s, as on the tray branch.
Merged
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.
What
Settings now lists its parts on the left: General, Chat, Appearance and About. Three choices are new:
General holds the background switches from #40 and the language.
How
shell/prefs.tskeeps them in localStorage, like the theme, with one typed entry each (whenClosed,enterSends,followBot,lessMotion) and ausePrefhook.whenClosedmoved there fromclosing.ts.data-motion="less".motion-less.cssrepeats the reduced-motion rules for that attribute.motion.cssdoes not grow.reducedMotion()checks the attribute too, so view transitions stop as well.Tests
pnpm checkpasses (162 tests).reducedMotion()on.