mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 05:15:00 +00:00
4afa5fb23e
This PR adds some basic stories for collab notifications to make them easier to work on: <img width="1076" alt="Screenshot 2024-01-08 at 9 43 39 PM" src="https://github.com/zed-industries/zed/assets/1486634/4a0adcfa-1134-49c2-b589-74ac1d52af4c"> I factored out a `CollabNotification` component that defines the general structure for one of these notifications, and this is the component that we use in the stories, with representative values passed to it to simulate the different instances of the notification. We can't use the actual notification components in the stories due to their data dependencies. Release Notes: - N/A
18 lines
429 B
Rust
18 lines
429 B
Rust
mod collab_notification;
|
|
pub mod incoming_call_notification;
|
|
pub mod project_shared_notification;
|
|
|
|
#[cfg(feature = "stories")]
|
|
mod stories;
|
|
|
|
use gpui::AppContext;
|
|
use std::sync::Arc;
|
|
use workspace::AppState;
|
|
|
|
#[cfg(feature = "stories")]
|
|
pub use stories::*;
|
|
|
|
pub fn init(app_state: &Arc<AppState>, cx: &mut AppContext) {
|
|
incoming_call_notification::init(app_state, cx);
|
|
project_shared_notification::init(app_state, cx);
|
|
}
|