This PR refactors the callout component and improves how we display errors and warnings in the agent panel, along with improvements for specific cases (e.g., you have `zed.dev` as your LLM provider and is signed out). Still a work in progress, though, wrapping up some details. Release Notes: - N/A
11 lines
302 B
Rust
11 lines
302 B
Rust
/// Severity levels that determine the style of the component.
|
|
/// Usually, it affects the background. Most of the time,
|
|
/// it also follows with an icon corresponding the severity level.
|
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
|
pub enum Severity {
|
|
Info,
|
|
Success,
|
|
Warning,
|
|
Error,
|
|
}
|