mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-27 10:59:53 +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
85 lines
2.6 KiB
TOML
85 lines
2.6 KiB
TOML
[package]
|
|
name = "collab_ui"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
publish = false
|
|
|
|
[lib]
|
|
path = "src/collab_ui.rs"
|
|
doctest = false
|
|
|
|
[features]
|
|
default = []
|
|
stories = ["dep:story"]
|
|
test-support = [
|
|
"call/test-support",
|
|
"client/test-support",
|
|
"collections/test-support",
|
|
"editor/test-support",
|
|
"gpui/test-support",
|
|
"project/test-support",
|
|
"settings/test-support",
|
|
"util/test-support",
|
|
"workspace/test-support",
|
|
]
|
|
|
|
[dependencies]
|
|
auto_update = { path = "../auto_update" }
|
|
db = { path = "../db" }
|
|
call = { path = "../call" }
|
|
client = { path = "../client" }
|
|
channel = { path = "../channel" }
|
|
clock = { path = "../clock" }
|
|
collections = { path = "../collections" }
|
|
# context_menu = { path = "../context_menu" }
|
|
# drag_and_drop = { path = "../drag_and_drop" }
|
|
editor = { path = "../editor" }
|
|
feedback = { path = "../feedback" }
|
|
fuzzy = { path = "../fuzzy" }
|
|
gpui = { path = "../gpui" }
|
|
language = { path = "../language" }
|
|
menu = { path = "../menu" }
|
|
notifications = { path = "../notifications" }
|
|
rich_text = { path = "../rich_text" }
|
|
picker = { path = "../picker" }
|
|
project = { path = "../project" }
|
|
recent_projects = { path = "../recent_projects" }
|
|
rpc = { path = "../rpc" }
|
|
settings = { path = "../settings" }
|
|
story = { path = "../story", optional = true }
|
|
feature_flags = { path = "../feature_flags"}
|
|
theme = { path = "../theme" }
|
|
theme_selector = { path = "../theme_selector" }
|
|
vcs_menu = { path = "../vcs_menu" }
|
|
ui = { path = "../ui" }
|
|
util = { path = "../util" }
|
|
workspace = { path = "../workspace" }
|
|
zed_actions = { path = "../zed_actions"}
|
|
|
|
anyhow.workspace = true
|
|
futures.workspace = true
|
|
lazy_static.workspace = true
|
|
log.workspace = true
|
|
schemars.workspace = true
|
|
postage.workspace = true
|
|
serde.workspace = true
|
|
serde_derive.workspace = true
|
|
serde_json.workspace = true
|
|
time.workspace = true
|
|
smallvec.workspace = true
|
|
|
|
[dev-dependencies]
|
|
call = { path = "../call", features = ["test-support"] }
|
|
client = { path = "../client", features = ["test-support"] }
|
|
collections = { path = "../collections", features = ["test-support"] }
|
|
editor = { path = "../editor", features = ["test-support"] }
|
|
gpui = { path = "../gpui", features = ["test-support"] }
|
|
notifications = { path = "../notifications", features = ["test-support"] }
|
|
project = { path = "../project", features = ["test-support"] }
|
|
rpc = { path = "../rpc", features = ["test-support"] }
|
|
settings = { path = "../settings", features = ["test-support"] }
|
|
util = { path = "../util", features = ["test-support"] }
|
|
workspace = { path = "../workspace", features = ["test-support"] }
|
|
|
|
pretty_assertions.workspace = true
|
|
tree-sitter-markdown.workspace = true
|