chat_notice.rs

 1use story::{StoryContainer, StoryItem, StorySection};
 2use ui::prelude::*;
 3
 4use crate::ui::ChatNotice;
 5
 6pub struct ChatNoticeStory;
 7
 8impl Render for ChatNoticeStory {
 9    fn render(&mut self, _cx: &mut ViewContext<Self>) -> impl IntoElement {
10        StoryContainer::new(
11            "ChatNotice Story",
12            "crates/assistant2/src/ui/stories/chat_notice.rs",
13        )
14        .child(
15            StorySection::new().child(StoryItem::new(
16                "Project index request",
17                ChatNotice::new("Allow assistant to index your project?")
18                    .meta("Enabling will allow responses more relevant to this project."),
19            )),
20        )
21    }
22}