ZIm/crates/agent/src/ui
Danilo Leal 29f3e62850
ui: Refactor the Callout component (#32684)
What motivated me to refactor this component was the fact that I wanted
a new variant to allow having _two CTAs_ instead of just one. This
variant should work with either a single or multiline description. But,
given we were using a `Callout::single_line` and `Callout::multi_line`
API, I'd then need to have both `Callout::single_line_one_button` and
`Callout::single_line_two_buttons` type of variants, which just points
to a combinatorial problem.

With this refactor, the Callout now follows the same structure of the
Banner component, where it's all `Callout::new` and every method is
passed as if they were props in a React component, allowing for a more
flexible design where you can customize button styles. Also made it
slightly more robust for wrapping and removed the top border as that
should be defined by the place it is being used in.

Release Notes:

- N/A
2025-06-13 10:03:32 -03:00
..
preview ui: Refactor the Callout component (#32684) 2025-06-13 10:03:32 -03:00
agent_notification.rs agent: Show project name in the Agent notification (#29211) 2025-04-22 10:41:03 -03:00
animated_label.rs ui: Add inline_code method to label (#29306) 2025-04-23 19:27:56 -03:00
context_pill.rs agent: Show warning for image context pill if model doesn't support images (#31848) 2025-06-04 16:20:56 +00:00
max_mode_tooltip.rs agent: Add keybinding to toggle Burn Mode (#31630) 2025-05-28 18:08:58 -03:00
onboarding_modal.rs agent: Rename a number of constructs from Assistant to Agent (#30196) 2025-05-08 01:18:51 +00:00
preview.rs agent: Add UI for upsell scenarios (#29805) 2025-05-05 00:48:06 +00:00
upsell.rs Add Zed Pro Trial Upsell (#29938) 2025-05-05 18:46:54 -04:00