onboarding: Create basic onboarding page (#34723)
Release Notes: - N/A --------- Co-authored-by: Ben Kunkle <ben@zed.dev>
This commit is contained in:
parent
bf8aba566c
commit
bc5c5cf5d6
8 changed files with 409 additions and 0 deletions
|
@ -99,6 +99,7 @@ nc.workspace = true
|
|||
nix = { workspace = true, features = ["pthread", "signal"] }
|
||||
node_runtime.workspace = true
|
||||
notifications.workspace = true
|
||||
onboarding.workspace = true
|
||||
outline.workspace = true
|
||||
outline_panel.workspace = true
|
||||
parking_lot.workspace = true
|
||||
|
|
|
@ -24,6 +24,7 @@ use reqwest_client::ReqwestClient;
|
|||
|
||||
use assets::Assets;
|
||||
use node_runtime::{NodeBinaryOptions, NodeRuntime};
|
||||
use onboarding::show_onboarding_view;
|
||||
use parking_lot::Mutex;
|
||||
use project::project_settings::ProjectSettings;
|
||||
use recent_projects::{SshSettings, open_ssh_project};
|
||||
|
@ -619,6 +620,7 @@ pub fn main() {
|
|||
markdown_preview::init(cx);
|
||||
svg_preview::init(cx);
|
||||
welcome::init(cx);
|
||||
onboarding::init(cx);
|
||||
settings_ui::init(cx);
|
||||
extensions_ui::init(cx);
|
||||
zeta::init(cx);
|
||||
|
@ -1039,6 +1041,10 @@ async fn restore_or_create_workspace(app_state: Arc<AppState>, cx: &mut AsyncApp
|
|||
);
|
||||
}
|
||||
}
|
||||
} else if matches!(KEY_VALUE_STORE.read_kvp(FIRST_OPEN), Ok(None)) {
|
||||
let state = app_state.clone();
|
||||
cx.update(|cx| show_onboarding_view(state, cx))?.await?;
|
||||
// cx.update(|cx| show_welcome_view(app_state, cx))?.await?;
|
||||
} else if matches!(KEY_VALUE_STORE.read_kvp(FIRST_OPEN), Ok(None)) {
|
||||
cx.update(|cx| show_welcome_view(app_state, cx))?.await?;
|
||||
} else {
|
||||
|
|
|
@ -3957,6 +3957,7 @@ mod tests {
|
|||
language::init(cx);
|
||||
workspace::init(app_state.clone(), cx);
|
||||
welcome::init(cx);
|
||||
onboarding::init(cx);
|
||||
Project::init_settings(cx);
|
||||
app_state
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue