ui_init: Use OnboardingStep for narrowing on first web app load.

We plan to remove the 'tutorial_status' field from UserProfile
table as it is no longer used to show tutorial.

The field is also used to narrow a new user in DM with
welcome bot on the first load.

This prep commit updates the logic to use a new OnboardingStep
for the narrowing behaviour on the first load. This will help
in removing the 'tutorial_status' field.
This commit is contained in:
Prakhar Pratyush
2024-07-24 17:21:19 +05:30
committed by Tim Abbott
parent 13c0571183
commit ee806c49b9
11 changed files with 157 additions and 38 deletions

View File

@@ -669,7 +669,9 @@ export function initialize_everything(state_data) {
});
drafts.initialize_ui();
drafts_overlay_ui.initialize();
onboarding_steps.initialize(state_data.onboarding_steps);
// This needs to happen after activity_ui.initialize, so that user_filter
// is defined. Also, must happen after people.initialize()
onboarding_steps.initialize(state_data.onboarding_steps, message_view.show);
typing.initialize();
starred_messages_ui.initialize();
user_status_ui.initialize();