ZIm/crates/ui/src
Agus Zubiaga f31749c81b
edit predictions: Improve UX when there's no keybinding for accepting predictions (#25815)
If the user already binds `tab`/`alt-tab`/`alt-l` to a different action
in a conflicting context and hasn't assigned a different keybinding for
`editor::AcceptEditPrediction`, we would show broken popovers with no
bindings:

![CleanShot 2025-02-28 at 12 46
13@2x](https://github.com/user-attachments/assets/a2c6a8ad-5e11-46ef-8031-62e1e6900244)

Instead, they will now see an error-variant of every popover which
includes a tooltip with a short description and buttons to open the
keymap, and open a new docs section explaining the issue in detail and
how to fix it.

![CleanShot 2025-02-28 at 12 48
11@2x](https://github.com/user-attachments/assets/36329b1f-6374-4735-9fbc-8fccab70e881)

Note: I included the docs change in this PR because it's ok to deploy
before the release, as it also applies to existing versions.

Release Notes:

- edit predictions: Improve UX when there's no keybinding for accepting
predictions

---------

Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
Co-authored-by: Danilo <danilo@zed.dev>
2025-03-04 11:28:36 -03:00
..
components edit predictions: Improve UX when there's no keybinding for accepting predictions (#25815) 2025-03-04 11:28:36 -03:00
styles git_ui: New panel design (#25821) 2025-02-28 20:00:39 +00:00
tests ui crate docs & spring cleaning (#18768) 2024-10-05 23:28:34 -04:00
traits git_ui: Commit modal refinement (#25484) 2025-02-24 19:19:06 +00:00
utils ui: More component previews, UI component cleanup (#25302) 2025-02-21 09:20:53 -05:00
components.rs Move PopoverButton into ui (#25724) 2025-02-27 02:51:19 +00:00
prelude.rs New commit review flow in project diff view (#25229) 2025-02-21 06:52:34 +00:00
styles.rs Improve experience when themes provide transparent status colors (#13996) 2024-07-09 11:27:47 -04:00
tests.rs ui crate docs & spring cleaning (#18768) 2024-10-05 23:28:34 -04:00
traits.rs component: Add component and component_preview crates to power UI components (#24456) 2025-02-09 13:25:03 -05:00
ui.rs ui: More component previews, UI component cleanup (#25302) 2025-02-21 09:20:53 -05:00
utils.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00