Repository navigation
The desktop composer takes ⌥↩ for a line, its search clears with ✕, its buttons have tooltips, and Settings opens from every screen - #249
Conversation
…ts buttons have tooltips, and Settings opens from every screen Alt-Enter adds a line as Shift-Enter does. The sidebar search uses gpui-component's clear button, which empties the field as typing it away does. Send, sticker packs and stickers, and the colour swatches get the Mac app's tooltips. The link, unlinked and failed screens get the chat list's Settings gear in the window's corner. GPUI's file picker has no type filter: both pickers say so in a shortcut comment.
…he composer Alt-Enter was the same action as Shift-Enter, so the mention picker took it and one-line fields submitted on it. On the Mac it is AppKit's insertNewlineIgnoringFieldEditor:, which the picker lets through. It is now an action of its own that only the composer handles. A sticker pack without a title gets no empty tooltip, and the review's comment wording is applied.
Review (
|
What changed
Four small gaps between the desktop app and the Mac app:
insertNewlineIgnoringFieldEditor:andComposerFieldlets it through. It is a composer-only action (compose::NewLine) that inserts a line. ↩ and ⌘↩ still send..searchable(gpui-component's ownInput::cleanable). Clicking it does what emptying the field by hand does: the results go, the field keeps the keys, and a chat-scoped search ends once the field is left empty (Esc or blur), as on the Mac..help). Chat colour and wallpaper swatches show their names ("Chat colour 3").Dropped
.hushbackup, the group picture picker only pictures). GPUI'sPathPromptOptionshas no type filter (files,directories,multiple,promptonly). Each picker now has ashortcut:comment. No dialog dependency was added. A wrong file is still refused after it is picked: the restore fails with the core's error, and a non-picture is refused with "That file isn't a picture Hush can read".How it was tested
Test first. Each new window test failed before the change:
compose::window_tests::option_return_adds_a_line_as_shift_return_does: before,"ab\nc"(⌥↩ did nothing). After review, it also presses ⌥↩ with the picker open, which failed on the first version (the member was picked).search::window_tests::the_fields_x_clears_it_as_emptying_it_by_hand_does: before, the query stayed"pot".settings::window_tests::the_gear_opens_it_from_every_screen(chats, link, unlinked, failed): before, "the link screen has the gear" failed.Tooltips have no window test. GPUI gives tests no way to read a tooltip that is showing. They were checked in a snapshot instead (below).
Gate (the Rust half of
make check, fromcore/):cargo fmt --check: passcargo clippy --all-targets -q -- -D warnings: passcargo clippy --all-targets --features hush-desktop/snapshot -q -- -D warnings: passcargo test --features hush-desktop/snapshot -q: pass (desktop 311, sig-core 537 + 4 ignored)The Swift leg (xcodebuild) was skipped: nothing in
app/changed.Snapshots looked at (
--snapshot, light and dark):linkandunlinkedshow the gear in the top-right corner, in light and dark.searchshows the ✕ at the end of the field while "book" is typed. A local-only render hovered the controls and showed the tooltips "Send (↩)", "Chat colour 3", and a sticker's 😂. The renderer change for that was not committed.Closes #232