Skip to content
This repository was archived by the owner on Jan 2, 2025. It is now read-only.

Commit e671d31

Browse files
save onboarding status on user profile (#1210)
1 parent a53012f commit e671d31

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

server/bleep/src/user.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ pub struct UserProfile {
1414
prompt_guide: PromptGuideState,
1515
#[serde(default = "default_allow_session_recordings")]
1616
allow_session_recordings: bool,
17+
#[serde(default = "default_is_tutorial_finished")]
18+
is_tutorial_finished: bool,
1719
}
1820

1921
impl Default for UserProfile {
@@ -22,10 +24,14 @@ impl Default for UserProfile {
2224
username: None,
2325
prompt_guide: PromptGuideState::Active,
2426
allow_session_recordings: default_allow_session_recordings(),
27+
is_tutorial_finished: default_is_tutorial_finished(),
2528
}
2629
}
2730
}
2831

2932
fn default_allow_session_recordings() -> bool {
3033
true
3134
}
35+
fn default_is_tutorial_finished() -> bool {
36+
false
37+
}

0 commit comments

Comments
 (0)